sna: Update maybe_inplace to recognise more types of handled pixel formats

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-19 17:09:21 +01:00
parent 02963f489b
commit 47d948f5df
1 changed files with 7 additions and 1 deletions

View File

@ -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: