diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-16 17:56:53 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-17 21:26:34 +0000 |
commit | 300586b229ae941ac31850af00d120d8c441c583 (patch) | |
tree | fba885572da203d6e830fda76737b62b966b5fac /src/sna/gen7_render.c | |
parent | 0de7604d8ecfc73ef9e92059340d00ce5cfcdd75 (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.c | 3 |
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; |