diff options
author | Eric Anholt <eric@anholt.net> | 2014-02-28 13:02:23 -0500 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@gmail.com> | 2014-03-13 21:52:28 +0800 |
commit | 860c08b797fde2c94461b088745ff173e7d22d40 (patch) | |
tree | 1cd194e5dc4f6186958f702fb81ea64699c969c8 | |
parent | 307ad4776c02aa8fffc585bef834f060ef37c369 (diff) |
glamor: Fix ignoring the ALU during SetSpans().
Ported from Eric's xserver glamor tree.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | src/glamor_setspans.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glamor_setspans.c b/src/glamor_setspans.c index b1abfee..a9709e6 100644 --- a/src/glamor_setspans.c +++ b/src/glamor_setspans.c @@ -48,7 +48,11 @@ _glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src, goto fail; } - /* XXX Shall we set alu here? */ + if (gc->alu != GXcopy) { + glamor_fallback("SetSpans with non-copy ALU.\n"); + goto fail; + } + if (!glamor_set_planemask(dest_pixmap, gc->planemask)) goto fail; |