xf86-video-intel: src/sna/gen2_render.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Jun 6 02:21:38 PDT 2011


 src/sna/gen2_render.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8f97157d2e807d6c9acb521ec59757f419e6518b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jun 6 10:21:17 2011 +0100

    sna/gen2: Replicate alpha for non-CA masks
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c
index 3b3a472..0eabf40 100644
--- a/src/sna/gen2_render.c
+++ b/src/sna/gen2_render.c
@@ -370,7 +370,7 @@ gen2_get_blend_factors(const struct sna_composite_op *op,
 
 	if (op->mask.bo) {
 		cblend |= TB0C_ARG2_SEL_TEXEL1;
-		if (op->dst.format == PICT_a8 || op->has_component_alpha)
+		if (op->dst.format == PICT_a8 || !op->has_component_alpha)
 			cblend |= TB0C_ARG2_REPLICATE_ALPHA;
 		ablend |= TB0A_ARG2_SEL_TEXEL1;
 	} else {


More information about the xorg-commit mailing list