Module: Mesa Branch: master Commit: 5947d9083038683618eb69c9e624e185069df794 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5947d9083038683618eb69c9e624e185069df794
Author: Charmaine Lee <[email protected]> Date: Wed Sep 7 11:46:26 2016 -0700 svga: fix memory leak with sampler state This patch fixes a memory leak with sampler state when piglit is run with HW version 11. Sampler state clean up was incorrectly skipped in svga_cleanup_sampler_state() for vgpu9. Tested with piglit. Reviewed-by: Neha Bhende <[email protected]> Reviewed-by: Brian Paul <[email protected]> --- src/gallium/drivers/svga/svga_pipe_sampler.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_pipe_sampler.c b/src/gallium/drivers/svga/svga_pipe_sampler.c index 5d7af70..0c53c1d 100644 --- a/src/gallium/drivers/svga/svga_pipe_sampler.c +++ b/src/gallium/drivers/svga/svga_pipe_sampler.c @@ -531,9 +531,6 @@ svga_cleanup_sampler_state(struct svga_context *svga) { enum pipe_shader_type shader; - if (!svga_have_vgpu10(svga)) - return; - for (shader = 0; shader <= PIPE_SHADER_GEOMETRY; shader++) { unsigned i; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
