v3dv: don't leak the texture shader state BO from image views

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-04-23 10:59:55 +02:00 committed by Marge Bot
parent a9ce6adf94
commit 71a75a5e78

View file

@ -650,6 +650,9 @@ v3dv_DestroyImageView(VkDevice _device,
V3DV_FROM_HANDLE(v3dv_device, device, _device);
V3DV_FROM_HANDLE(v3dv_image_view, image_view, imageView);
if (image_view->texture_shader_state)
v3dv_bo_free(device, image_view->texture_shader_state);
vk_free2(&device->alloc, pAllocator, image_view);
}