From 300586b229ae941ac31850af00d120d8c441c583 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 16 Dec 2011 17:56:53 +0000 Subject: sna/gen4+: disable the blend unit for PictOpSrc Signed-off-by: Chris Wilson --- src/sna/gen7_render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sna/gen7_render.c') 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; -- cgit v1.2.3