summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-15 11:38:39 -0600
committerBrian Paul <[email protected]>2016-08-16 08:24:52 -0600
commit7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5 (patch)
tree2e77395a71437aea4ddc066a477f4b0223b8009d
parent7b821941f63907524c3671cc964f4c1eb2ec9e59 (diff)
svga: use the sws local var to simplify some code
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/gallium/drivers/svga/svga_screen_cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c
index 4344a87348c..bce46df91d7 100644
--- a/src/gallium/drivers/svga/svga_screen_cache.c
+++ b/src/gallium/drivers/svga/svga_screen_cache.c
@@ -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);