summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-06 10:21:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-06 10:21:17 +0100
commit8f97157d2e807d6c9acb521ec59757f419e6518b (patch)
treeb6a73dde1bf96a1221073b40838a96e4ec1caf55
parentc8a2fa3a2e3f22e12f363e8ea060c70585156190 (diff)
sna/gen2: Replicate alpha for non-CA masks
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen2_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c
index 3b3a4720..0eabf403 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 {