From 906f7f4296dee343fc86f725eca71cda25054642 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 27 Aug 2021 17:16:55 +0200 Subject: [PATCH] radv: advertise VK_EXT_primitive_topology_list_restart Everything should be already supported, except patch list. Signed-off-by: Samuel Pitoiset Reviewed-By: Mike Blumenkrantz Part-of: --- docs/relnotes/new_features.txt | 1 + src/amd/vulkan/radv_device.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index ac5d90fc375..abd83b286f4 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -6,3 +6,4 @@ VK_KHR_timeline_semaphore on lavapipe VK_EXT_external_memory_host on lavapipe GL_AMD_pinned_memory on llvmpipe GL 4.5 compatibility on llvmpipe +VK_EXT_primitive_topology_list_restart on RADV. diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index a4366192cbd..6bf2b80045c 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -486,6 +486,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device .EXT_pipeline_creation_cache_control = true, .EXT_pipeline_creation_feedback = true, .EXT_post_depth_coverage = device->rad_info.chip_class >= GFX10, + .EXT_primitive_topology_list_restart = true, .EXT_private_data = true, .EXT_provoking_vertex = true, .EXT_queue_family_foreign = true, @@ -1692,6 +1693,13 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice, features->sparseImageFloat32AtomicMinMax = has_shader_float_minmax; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT: { + VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT *features = + (VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT *)ext; + features->primitiveTopologyListRestart = true; + features->primitiveTopologyPatchListRestart = false; + break; + } default: break; }