summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-19 17:09:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-19 17:10:34 +0100
commit47d948f5df0cd0e975cfe5183b6ce79cd3fd27ee (patch)
tree3d5bbb4da38b7e2e9b0b9c9d6bac5c4719e86e67
parent02963f489b177d0085006753e91e240545933387 (diff)
sna: Update maybe_inplace to recognise more types of handled pixel formats
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_trapezoids.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index a1141f1d..0dcb971a 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -4674,8 +4674,14 @@ trapezoid_spans_maybe_inplace(CARD8 op, PicturePtr src, PicturePtr dst,
if (!sna_picture_is_solid(src, NULL))
return false;
- if (dst->format != PICT_a8)
+ switch ((int)dst->format) {
+ case PICT_a8:
+ case PICT_x8r8g8b8:
+ case PICT_a8r8g8b8:
+ break;
+ default:
return false;
+ }
switch (op) {
case PictOpIn: