diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2020-05-07 09:24:44 +0300 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2020-05-08 08:36:45 +0300 |
commit | ee2aef3ea531a03dbd50a78c943ca6e7cc99c7a7 (patch) | |
tree | 8c18486fd08d348a74ec38e6f5f9ccff3c9ea0cb /src | |
parent | a885ee5258241d7ec4b9288cb15955e59d526d1a (diff) |
anv: call base finish only if pass given in DestroyRenderPass
Fixes: 682c81bdfb7 ("vulkan,anv: Add a base object struct type")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4936>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_pass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c index 3820cbfe5dd..49ad6043573 100644 --- a/src/intel/vulkan/anv_pass.c +++ b/src/intel/vulkan/anv_pass.c @@ -593,6 +593,9 @@ void anv_DestroyRenderPass( ANV_FROM_HANDLE(anv_device, device, _device); ANV_FROM_HANDLE(anv_render_pass, pass, _pass); + if (!pass) + return; + vk_object_base_finish(&pass->base); vk_free2(&device->vk.alloc, pAllocator, pass); } |