aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-09-07 11:46:26 -0700
committerBrian Paul <[email protected]>2016-09-17 10:24:12 -0600
commit5947d9083038683618eb69c9e624e185069df794 (patch)
treec1b6ad37d6d261e39c94f165ac9d3e6958dc5319 /src/gallium
parent12689efbbee1f7e4816b1f49030991bc61be7bb4 (diff)
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]>
Diffstat (limited to 'src/gallium')
-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 5d7af701ad4..0c53c1d2645 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;