v3dv: don't leak state BO from samplers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
committed by
Marge Bot
parent
71a75a5e78
commit
63086287e2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user