Module: Mesa Branch: master Commit: 7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5
Author: Brian Paul <bri...@vmware.com> Date: Mon Aug 15 11:38:39 2016 -0600 svga: use the sws local var to simplify some code Signed-off-by: Brian Paul <bri...@vmware.com> --- 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 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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit