diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-24 14:59:20 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-24 16:42:05 +0000 |
commit | 5537079c29a56133446f1874d24d9e6516825edb (patch) | |
tree | 53f9e2d2502dafafc7612fc2229a880df356ba26 /uxa/uxa-render.c | |
parent | 90a971c60769781f53827b469a9be3aab14cf71c (diff) |
uxa: After filling the alpha channel xrgb src is compatible with argb dst.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa-render.c')
-rw-r--r-- | uxa/uxa-render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index bcfe20eb..30934d0d 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -963,6 +963,10 @@ compatible_formats (CARD8 op, PicturePtr dst, PicturePtr src) if (src->format == PICT_a8b8g8r8 && dst->format == PICT_x8b8g8r8) return 1; + + /* xrgb is promoted to argb during image upload... */ + if (dst->format == PICT_a8r8g8b8 && src->format == PICT_x8r8g8b8) + return 1; } else if (op == PictOpOver) { if (src->alphaMap || dst->alphaMap) return 0; |