From 5537079c29a56133446f1874d24d9e6516825edb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 24 Mar 2010 14:59:20 +0000 Subject: uxa: After filling the alpha channel xrgb src is compatible with argb dst. Signed-off-by: Chris Wilson --- uxa/uxa-render.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3