svga: use the sws local var to simplify some code
authorBrian Paul <brianp@vmware.com>
Mon, 15 Aug 2016 17:38:39 +0000 (11:38 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Aug 2016 14:24:52 +0000 (08:24 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_screen_cache.c

index 4344a87348c9737a743fbb08c2c6d4255deb0a9d..bce46df91d7a8e9ea31e8313d90a7235a881967a 100644 (file)
@@ -332,7 +332,7 @@ svga_screen_cache_flush(struct svga_screen *svgascreen,
          /* remove entry from the invalidated list */
          LIST_DEL(&entry->head);
 
-         svgascreen->sws->fence_reference(svgascreen->sws, &entry->fence, fence);
+         sws->fence_reference(sws, &entry->fence, fence);
 
          /* Add entry to the unused list */
          LIST_ADD(&entry->head, &cache->unused);
@@ -393,8 +393,7 @@ svga_screen_cache_cleanup(struct svga_screen *svgascreen)
       }
 
       if (cache->entries[i].fence)
-         svgascreen->sws->fence_reference(svgascreen->sws,
-                                          &cache->entries[i].fence, NULL);
+         sws->fence_reference(sws, &cache->entries[i].fence, NULL);
    }
 
    pipe_mutex_destroy(cache->mutex);