i965: Set the correct WM GRF start reg on gen6.

This commit is contained in:
Zhenyu Wang
2010-06-12 21:19:38 -07:00
committed by Eric Anholt
parent 0f59b9a95d
commit 7ba2ecb32b
+2 -1
View File
@@ -98,7 +98,8 @@ upload_wm_state(struct brw_context *brw)
/* CACHE_NEW_SAMPLER */
dw2 |= (ALIGN(brw->wm.sampler_count, 4) / 4) << GEN6_WM_SAMPLER_COUNT_SHIFT;
dw4 |= (1 << GEN6_WM_DISPATCH_START_GRF_SHIFT_0);
dw4 |= (brw->wm.prog_data->first_curbe_grf <<
GEN6_WM_DISPATCH_START_GRF_SHIFT_0);
dw5 |= (40 - 1) << GEN6_WM_MAX_THREADS_SHIFT;
dw5 |= GEN6_WM_DISPATCH_ENABLE;