r600g: eg+ support for FS_COLOR0_WRITES_ALL_CBUFS
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 24 Jun 2011 22:05:53 +0000 (18:05 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 24 Jun 2011 22:22:47 +0000 (18:22 -0400)
commitfeec48114b261f43c8dc94c06cfccea3b6ef1689
tree95bf5e0bd3b519065b12ae9dc783dbb7ff732ace
parent6062692cc6cd2a88d854b304d9a85bcf4bab0d11
r600g: eg+ support for FS_COLOR0_WRITES_ALL_CBUFS

Evergreen+ don't support multi-writes so we need to emulate
it in the shader. Fixes the following piglit tests:
fbo-drawbuffers-fragcolor
ati_draw_buffers-arbfp-no-option

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_shader.h
src/gallium/drivers/r600/r600_state_common.c