From 7eb2bafe22dcc90c2fb94d2d9cae370b683dba7c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 10 Jan 2014 15:54:25 +0800 Subject: [PATCH] glamor: Fix ignoring the ALU during SetSpans(). Signed-off-by: Eric Anholt Reviewed-by: Markus Wick --- glamor/glamor_setspans.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;