svga: fix memory leak with sampler state
authorCharmaine Lee <charmainel@vmware.com>
Wed, 7 Sep 2016 18:46:26 +0000 (11:46 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:24:12 +0000 (10:24 -0600)
commit5947d9083038683618eb69c9e624e185069df794
treec1b6ad37d6d261e39c94f165ac9d3e6958dc5319
parent12689efbbee1f7e4816b1f49030991bc61be7bb4
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>
src/gallium/drivers/svga/svga_pipe_sampler.c