v3dv: don't leak state BO from samplers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga
2020-04-23 11:00:14 +02:00
committed by Marge Bot
parent 71a75a5e78
commit 63086287e2
+3
View File
@@ -2109,6 +2109,9 @@ v3dv_DestroySampler(VkDevice _device,
if (!sampler)
return;
if (sampler->state)
v3dv_bo_free(device, sampler->state);
vk_free2(&device->alloc, pAllocator, sampler);
}