summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-01-10 15:54:25 +0800
committerEric Anholt <eric@anholt.net>2014-03-17 14:30:57 -0700
commit7eb2bafe22dcc90c2fb94d2d9cae370b683dba7c (patch)
tree00cdd8da65d0c4a7f59f1d4ac769492fd334f42b /glamor
parent923c8db7ed1adfe4689f0a36496262faca44b79d (diff)
glamor: Fix ignoring the ALU during SetSpans().
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus@selfnet.de>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_setspans.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/glamor/glamor_setspans.c b/glamor/glamor_setspans.c
index ced302a50..a51e4c5be 100644
--- a/glamor/glamor_setspans.c
+++ b/glamor/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;