summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-08-14 22:10:35 +0200
committerMarek Olšák <maraeo@gmail.com>2012-08-16 20:44:53 +0200
commit0d7e00281505b4537a8aee9002792d56619269a4 (patch)
tree4604c17dfbf725bee88ceaeba4b0b684c7ebe38c
parent951ac46a6a0a901b53a518c8dcde734578cbf228 (diff)
downloadmesa-0d7e00281505b4537a8aee9002792d56619269a4.tar.gz
mesa-0d7e00281505b4537a8aee9002792d56619269a4.tar.xz
mesa-0d7e00281505b4537a8aee9002792d56619269a4.zip
r600g: set CB_COLOR_INFO to INVALID for disabled colorbuffers on r600-r700
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/gallium/drivers/r600/r600_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 989350e4b7..d06c25000f 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -1436,6 +1436,9 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
surf->cb_color_info, res, RADEON_USAGE_READWRITE);
i++;
}
+ for (; i < 8 ; i++) {
+ r600_pipe_state_add_reg(rstate, R_0280A0_CB_COLOR0_INFO + i * 4, 0);
+ }
/* Update alpha-test state dependencies.
* Alpha-test is done on the first colorbuffer only. */