From 7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 15 Aug 2016 11:38:39 -0600 Subject: [PATCH] svga: use the sws local var to simplify some code Signed-off-by: Brian Paul --- src/gallium/drivers/svga/svga_screen_cache.c | 5 ++--- 1 file 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); -- 2.30.2