aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_wm.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-29 14:53:53 -0600
committerBrian Paul <[email protected]>2009-10-29 15:33:43 -0600
commit9ef33b86855c4d000271774030bd1b19b6d79687 (patch)
tree8b94f2620f7797cf1f64804c8445ade56d8bca25 /src/mesa/drivers/dri/i965/brw_wm.c
parenta8d233e509a2c1aada7cd4e83b126ba06cb90565 (diff)
i965: don't use context state in emit_fb_write()
Put the state that we care about in the hash key. Issue spotted by Keith Whitwell.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 5a2ac1a6519..eeb25980fa0 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -325,6 +325,8 @@ static void brw_wm_populate_key( struct brw_context *brw,
key->drawable_height = brw->intel.driDrawable->h;
}
+ key->nr_color_regions = brw->state.nr_color_regions;
+
/* CACHE_NEW_VS_PROG */
key->vp_outputs_written = brw->vs.prog_data->outputs_written & DO_SETUP_BITS;