summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen6_urb.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2010-12-06 15:15:55 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2010-12-06 15:20:48 +0800
commit2b1469340bbf910469449354eeb5c02a9acfedba (patch)
tree8e49970e6e7ddfc8768d090f2dd81ff456891ddf /src/mesa/drivers/dri/i965/gen6_urb.c
parent08be8d64509f60d2cc80112f5b94f43e06e94ff2 (diff)
downloadexternal_mesa3d-2b1469340bbf910469449354eeb5c02a9acfedba.zip
external_mesa3d-2b1469340bbf910469449354eeb5c02a9acfedba.tar.gz
external_mesa3d-2b1469340bbf910469449354eeb5c02a9acfedba.tar.bz2
i965: Fix GS state uploading on Sandybridge
Need to check the required primitive type for GS on Sandybridge, and when GS is disabled, the new state has to be issued too, instead of only updating URB state with no GS entry, that caused hang on Sandybridge. This fixes hang issue during conformance suite testing.
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_urb.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_urb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_urb.c b/src/mesa/drivers/dri/i965/gen6_urb.c
index a341234..de97fd3 100644
--- a/src/mesa/drivers/dri/i965/gen6_urb.c
+++ b/src/mesa/drivers/dri/i965/gen6_urb.c
@@ -72,7 +72,7 @@ const struct brw_tracked_state gen6_urb = {
.dirty = {
.mesa = 0,
.brw = BRW_NEW_CONTEXT,
- .cache = CACHE_NEW_VS_PROG,
+ .cache = (CACHE_NEW_VS_PROG | CACHE_NEW_GS_PROG),
},
.prepare = prepare_urb,
.emit = upload_urb,