From 84fd6b67ddb99258b7abf457afb1b8f34984afd3 Mon Sep 17 00:00:00 2001 From: Lars-Ivar Hesselberg Simonsen Date: Wed, 2 Jul 2025 14:35:11 +0200 Subject: [PATCH] panvk: Advertise VK_KHR_unified_image_layouts We're currently not using image layouts in PanVK so we can advertise this extension without additional changes. Reviewed-by: Erik Faye-Lund Reviewed-by: John Anthony Part-of: --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 2 +- src/panfrost/vulkan/panvk_vX_physical_device.c | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index e756f563182..1927700d6d9 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -574,7 +574,7 @@ Khronos extensions that are not part of any Vulkan version: VK_KHR_surface_protected_capabilities DONE (anv, hk, lvp, nvk, radv, tu, v3dv, vn) VK_KHR_swapchain DONE (anv, dzn, hasvk, hk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn) VK_KHR_swapchain_mutable_format DONE (anv, hasvk, hk, lvp, nvk, radv, tu, v3dv, vn) - VK_KHR_unified_image_layouts DONE (radv/gfx11+, tu) + VK_KHR_unified_image_layouts DONE (panvk, radv/gfx11+, tu) VK_KHR_wayland_surface DONE (anv, dzn, hk, lvp, nvk, panvk, radv, tu, v3dv, vn) VK_KHR_workgroup_memory_explicit_layout DONE (anv, hk, nvk, hasvk, radv, tu, v3dv, vn) VK_KHR_win32_keyed_mutex not started diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 891a325f5ba..21a11de6e07 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -45,7 +45,7 @@ VK_EXT_depth_clamp_zero_one on panvk VK_KHR_depth_clamp_zero_one on panvk VK_EXT_depth_clip_control on panvk VK_KHR_maintenance9 on RADV -VK_KHR_unified_image_layouts on RADV (RDNA3+) and tu +VK_KHR_unified_image_layouts on RADV (RDNA3+), tu and panvk VK_KHR_vulkan_memory_model on panvk VK_KHR_present_wait2 VK_EXT_descriptor_indexing on panvk/v10+ diff --git a/src/panfrost/vulkan/panvk_vX_physical_device.c b/src/panfrost/vulkan/panvk_vX_physical_device.c index 6b43b6c58cf..a0cd1fa1742 100644 --- a/src/panfrost/vulkan/panvk_vX_physical_device.c +++ b/src/panfrost/vulkan/panvk_vX_physical_device.c @@ -111,6 +111,7 @@ panvk_per_arch(get_physical_device_extensions)( #endif .KHR_synchronization2 = true, .KHR_timeline_semaphore = true, + .KHR_unified_image_layouts = true, .KHR_uniform_buffer_standard_layout = true, .KHR_variable_pointers = true, .KHR_vertex_attribute_divisor = true, @@ -478,6 +479,11 @@ panvk_per_arch(get_physical_device_features)( /* VK_EXT_non_seamless_cube_map */ .nonSeamlessCubeMap = true, + + /* VK_KHR_unified_image_layouts */ + .unifiedImageLayouts = true, + /* Video is not currently supported, so set to false */ + .unifiedImageLayoutsVideo = false, }; }