summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharmaine Lee <charmainel@vmware.com>2016-09-07 18:46:26 (GMT)
committerBrian Paul <brianp@vmware.com>2016-09-17 16:24:12 (GMT)
commit5947d9083038683618eb69c9e624e185069df794 (patch)
treec1b6ad37d6d261e39c94f165ac9d3e6958dc5319
parent12689efbbee1f7e4816b1f49030991bc61be7bb4 (diff)
downloadmesa-5947d9083038683618eb69c9e624e185069df794.tar.gz
mesa-5947d9083038683618eb69c9e624e185069df794.tar.xz
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 <bhenden@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/gallium/drivers/svga/svga_pipe_sampler.c3
1 files changed, 0 insertions, 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;