summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i965/brw_state_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_state_cache.c b/src/gallium/drivers/i965/brw_state_cache.c
index 1cb1b5e7215..071a942e5ca 100644
--- a/src/gallium/drivers/i965/brw_state_cache.c
+++ b/src/gallium/drivers/i965/brw_state_cache.c
@@ -462,6 +462,7 @@ brw_init_surface_cache(struct brw_context *brw)
struct brw_cache *cache = &brw->surface_cache;
cache->brw = brw;
+ cache->sws = brw->sws;
cache->size = 7;
cache->n_items = 0;