From b7bc7852d77d597221b5fb2ca7bc7c6cec4f075a Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 10 Oct 2024 17:01:03 -0700 Subject: [PATCH] panvk: advertise VK_KHR_image_format_list Since panvk does not treat VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT specially, we can just advertise the extension. When AFBC is supported in the future, we will want to check the list to see if we can keep AFBC even when VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT is set. Part-of: --- docs/features.txt | 2 +- src/panfrost/vulkan/panvk_physical_device.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 6f27a6575d3..e70d1eadca2 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -459,7 +459,7 @@ Vulkan 1.2 -- all DONE: anv, nvk, tu, vn VK_KHR_depth_stencil_resolve DONE (anv, dzn, hasvk, lvp, nvk, radv, tu, v3dv, vn) VK_KHR_draw_indirect_count DONE (anv, dzn, hasvk, lvp, nvk, radv, tu, vn) VK_KHR_driver_properties DONE (anv, dzn, hasvk, lvp, nvk, panvk, radv, tu, v3dv, vn) - VK_KHR_image_format_list DONE (anv, dzn, hasvk, lvp, nvk, pvr, radv, tu, v3dv, vn) + VK_KHR_image_format_list DONE (anv, dzn, hasvk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn) VK_KHR_imageless_framebuffer DONE (anv, dzn, hasvk, lvp, nvk, radv, tu, v3dv, vn) VK_KHR_sampler_mirror_clamp_to_edge DONE (anv, dzn, hasvk, lvp, nvk, panvk, radv, tu, v3dv, vn) VK_KHR_separate_depth_stencil_layouts DONE (anv, dzn, hasvk, lvp, nvk, radv, tu, v3dv, vn) diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index e11ddfe7d74..29dd7cbd58c 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -160,6 +160,7 @@ get_device_extensions(const struct panvk_physical_device *device, .KHR_external_semaphore = true, .KHR_external_semaphore_fd = true, .KHR_get_memory_requirements2 = true, + .KHR_image_format_list = true, .KHR_maintenance1 = true, .KHR_maintenance2 = true, .KHR_maintenance3 = true,