summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_wm.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-01-30 21:13:17 -0800
committerEric Anholt <eric@anholt.net>2011-02-04 12:18:38 -0600
commit1b80622c4e94e8c59eb2f7ee9989d99712baff8f (patch)
treecdb3e1db0dd030d6f9a13c3897d7faafaf990ab2 /src/mesa/drivers/dri/i965/brw_wm.c
parent95cdce7f703ff24ee39ec9a341141622842d61b9 (diff)
i965: Drop the dead tracking of color_regions[].
We pull the draw regions right out of the renderbuffers these days.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 656501b4f7..ee8212f6f1 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -431,7 +431,8 @@ static void brw_wm_populate_key( struct brw_context *brw,
key->render_to_fbo = ctx->DrawBuffer->Name != 0;
}
- key->nr_color_regions = brw->state.nr_color_regions;
+ /* _NEW_BUFFERS */
+ key->nr_color_regions = ctx->DrawBuffer->_NumColorDrawBuffers;
/* CACHE_NEW_VS_PROG */
key->vp_outputs_written = brw->vs.prog_data->outputs_written;