From f621b3de841f6037d387ca1439a0abe12ef29811 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 22 Dec 2011 11:19:45 +0000 Subject: sna: flatten source alphamaps Replace the source picture+alpha with a bo that contains the RGB channels from source and A from the alpha map. Signed-off-by: Chris Wilson --- src/sna/gen5_render.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sna/gen5_render.c') diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index e1117cc6..180b561a 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -1785,6 +1785,12 @@ gen5_composite_picture(struct sna *sna, return sna_render_picture_fixup(sna, picture, channel, x, y, w, h, dst_x, dst_y); + if (picture->alphaMap) { + DBG(("%s -- fallback, alphamap\n", __FUNCTION__)); + return sna_render_picture_fixup(sna, picture, channel, + x, y, w, h, dst_x, dst_y); + } + if (!gen5_check_repeat(picture)) return sna_render_picture_fixup(sna, picture, channel, x, y, w, h, dst_x, dst_y); -- cgit v1.2.3