i965g: initialize winsys pointer in surface cache
authorKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:27:50 +0000 (23:27 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:27:50 +0000 (23:27 +0000)
src/gallium/drivers/i965/brw_state_cache.c

index 1cb1b5e721595a5e8ca8819760aaf8bbef9a669c..071a942e5ca2e6f2350d59c894ee47c66b8d1ad1 100644 (file)
@@ -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;