summaryrefslogtreecommitdiff
path: root/src/sna/gen5_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-16 17:56:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-17 21:26:34 +0000
commit300586b229ae941ac31850af00d120d8c441c583 (patch)
treefba885572da203d6e830fda76737b62b966b5fac /src/sna/gen5_render.c
parent0de7604d8ecfc73ef9e92059340d00ce5cfcdd75 (diff)
sna/gen4+: disable the blend unit for PictOpSrc
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen5_render.c')
-rw-r--r--src/sna/gen5_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index 99a8f7cc..89b7bef0 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -3358,7 +3358,8 @@ static uint32_t gen5_create_cc_unit_state(struct sna_static_stream *stream)
struct gen5_cc_unit_state *state =
(struct gen5_cc_unit_state *)ptr;
- state->cc3.blend_enable = 1; /* enable color blend */
+ state->cc3.blend_enable =
+ !(j == GEN5_BLENDFACTOR_ZERO && i == GEN5_BLENDFACTOR_ONE);
state->cc4.cc_viewport_state_offset = vp >> 5;
state->cc5.logicop_func = 0xc; /* COPY */