summaryrefslogtreecommitdiff
path: root/src/sna/gen7_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/gen7_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/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 25851dad..121f137c 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -1794,7 +1794,8 @@ gen7_composite_create_blend_state(struct sna_static_stream *stream)
blend->blend0.dest_blend_factor = dst;
blend->blend0.source_blend_factor = src;
blend->blend0.blend_func = GEN7_BLENDFUNCTION_ADD;
- blend->blend0.blend_enable = 1;
+ blend->blend0.blend_enable =
+ !(dst == GEN7_BLENDFACTOR_ZERO && src == GEN7_BLENDFACTOR_ONE);
blend->blend1.post_blend_clamp_enable = 1;
blend->blend1.pre_blend_clamp_enable = 1;