From 302907e347612c3d748c88aed90fd6ab60a638f5 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 1 Sep 2023 19:10:56 +0200 Subject: [PATCH] tu: Expose VK_KHR_maintenance5 Part-of: --- docs/features.txt | 2 +- src/freedreno/vulkan/tu_device.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index b68a31d9a81..46451b192a5 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -518,7 +518,7 @@ Khronos extensions that are not part of any Vulkan version: VK_KHR_get_surface_capabilities2 DONE (anv, lvp, nvk, pvr, radv, tu, v3dv, vn) VK_KHR_global_priority DONE (radv, tu) VK_KHR_incremental_present DONE (anv, hasvk, lvp, radv, tu, v3dv, vn) - VK_KHR_maintenance5 DONE (anv, lvp, radv) + VK_KHR_maintenance5 DONE (anv, lvp, radv, tu) VK_KHR_performance_query DONE (anv/gen8+, radv/gfx10.3+, tu, v3dv) VK_KHR_pipeline_executable_properties DONE (anv, hasvk, radv, tu, v3dv) VK_KHR_pipeline_library DONE (anv, lvp, radv, tu) diff --git a/src/freedreno/vulkan/tu_device.cc b/src/freedreno/vulkan/tu_device.cc index eb9bd3b9371..ec40f455996 100644 --- a/src/freedreno/vulkan/tu_device.cc +++ b/src/freedreno/vulkan/tu_device.cc @@ -161,6 +161,7 @@ get_device_extensions(const struct tu_physical_device *device, .KHR_maintenance2 = true, .KHR_maintenance3 = true, .KHR_maintenance4 = true, + .KHR_maintenance5 = true, .KHR_multiview = TU_DEBUG(NOCONFORM) ? true : device->info->a6xx.has_hw_multiview, .KHR_performance_query = TU_DEBUG(PERFC), .KHR_pipeline_executable_properties = true, @@ -576,6 +577,9 @@ tu_get_features(struct tu_physical_device *pdevice, features->fragmentDensityMap = true; features->fragmentDensityMapDynamic = false; features->fragmentDensityMapNonSubsampledImages = true; + + /* VK_KHR_maintenance5 */ + features->maintenance5 = true; } static const struct vk_pipeline_cache_object_ops *const cache_import_ops[] = {