gallium/postprocess: Fix resource freeing
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 26 May 2016 09:16:28 +0000 (11:16 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 1 Sep 2016 05:59:49 +0000 (07:59 +0200)
commitfc6be400115c0caa4e5cbb810917d6b8a11596a4
treede21f639cef958e90509642ff7e61ef0b1784065
parente3db41545676d0b7961ac4caa5ef645cdbf12691
gallium/postprocess: Fix resource freeing

The code was triggering asserts in DEBUG builds of the SVGA driver since
the reference count of the resource was never decremented before destroy.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/postprocess/pp_mlaa.c