Module: Mesa
Branch: master
Commit: 5947d9083038683618eb69c9e624e185069df794
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5947d9083038683618eb69c9e624e185069df794

Author: Charmaine Lee <charmai...@vmware.com>
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 <bhen...@vmware.com>
Reviewed-by: Brian Paul <bri...@vmware.com>

---

 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
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to