radv: advertise VK_EXT_primitive_topology_list_restart
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Aug 2021 15:16:55 +0000 (17:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Aug 2021 18:39:20 +0000 (18:39 +0000)
Everything should be already supported, except patch list.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12611>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_device.c

index ac5d90f..abd83b2 100644 (file)
@@ -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.
index a436619..6bf2b80 100644 (file)
@@ -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;
       }