vk/meta: Support VkShaderExt objects to allow tracking internal shaders
PanVK has a few internal shaders that don't fit in the vk_meta compute/graphics pipeline model. Teaching vk_meta about VkShaderEXT allows us to keep track of those internal shaders without using yet another hash table. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31441>
This commit is contained in:

committed by
Marge Bot

parent
c58bfb355a
commit
7fe4f64c3b
@@ -35,6 +35,9 @@ vk_meta_destroy_object(struct vk_device *device, struct vk_object_base *obj)
|
||||
case VK_OBJECT_TYPE_SAMPLER:
|
||||
disp->DestroySampler(_device, (VkSampler)(uintptr_t)obj, NULL);
|
||||
break;
|
||||
case VK_OBJECT_TYPE_SHADER_EXT:
|
||||
disp->DestroyShaderEXT(_device, (VkShaderEXT)(uintptr_t)obj, NULL);
|
||||
break;
|
||||
default:
|
||||
unreachable("Unsupported object type");
|
||||
}
|
||||
|
Reference in New Issue
Block a user