diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-02 23:17:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-02 23:17:32 +0100 |
commit | 158095ff2b2d38f54ca91d2a728f919cd705ff62 (patch) | |
tree | 0bdd48351dbed2122a0d79672e0d56e42d95854c /src/sna/gen2_render.c | |
parent | 2b0d36c63817c08990b8ae4efd60df4a11619e0f (diff) |
sna/gen2: Fix alpha replication in the copy pipeline
When copying into an a8 surface we need to replicate the result into the
green channel. It helps to tell the GPU from where to source the value
to be replicated.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen2_render.c')
-rw-r--r-- | src/sna/gen2_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 71e8a222..ba57643b 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -3105,7 +3105,7 @@ gen2_emit_copy_pipeline(struct sna *sna, const struct sna_composite_op *op) blend = TB0C_LAST_STAGE | TB0C_RESULT_SCALE_1X | TB0C_OP_ARG1 | TB0C_OUTPUT_WRITE_CURRENT; if (op->dst.format == PICT_a8) - blend |= TB0C_ARG1_REPLICATE_ALPHA; + blend |= TB0C_ARG1_REPLICATE_ALPHA | TB0C_ARG1_SEL_TEXEL0; else if (PICT_FORMAT_RGB(op->src.pict_format) != 0) blend |= TB0C_ARG1_SEL_TEXEL0; else |