r600g: fix lockups with dual_src_blend v2
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 21 Aug 2012 11:39:25 +0000 (15:39 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Wed, 22 Aug 2012 08:12:22 +0000 (12:12 +0400)
commit8d1a9a984f33d8e45f932a9f47cdd57da617a919
tree7388bf485857208049374e4d0e6e5dcb42ba1fe1
parentc4610e9f927caa679f34f0d3135d7b1b8cb8bd29
r600g: fix lockups with dual_src_blend v2

Disable blending when dual_src_blend is enabled and number of color exports
in the current fragment shader is less than 2.

Fixes lockups with ext_framebuffer_multisample-
alpha-to-coverage-dual-src-blend piglit test.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c