From: Brian Paul Date: Mon, 15 Aug 2016 17:38:39 +0000 (-0600) Subject: svga: use the sws local var to simplify some code X-Git-Tag: upstream/17.1.0~7364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5;p=platform%2Fupstream%2Fmesa.git svga: use the sws local var to simplify some code Signed-off-by: Brian Paul --- diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 4344a87..bce46df 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);