nvk: Advertise VK_EXT_primitive_topology_list_restart
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 18 Oct 2023 10:56:15 +0000 (05:56 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 18 Oct 2023 12:33:51 +0000 (12:33 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9645
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25786>

docs/features.txt
src/nouveau/vulkan/nvk_physical_device.c

index edac939..40f4cab 100644 (file)
@@ -592,7 +592,7 @@ Khronos extensions that are not part of any Vulkan version:
   VK_EXT_pipeline_library_group_handles                 DONE (anv, radv)
   VK_EXT_pipeline_robustness                            DONE (anv, radv, v3dv)
   VK_EXT_post_depth_coverage                            DONE (anv/gfx10+, lvp, radv/gfx10+)
-  VK_EXT_primitive_topology_list_restart                DONE (anv, hasvk, lvp, radv, tu, v3dv, vn)
+  VK_EXT_primitive_topology_list_restart                DONE (anv, hasvk, lvp, nvk, radv, tu, v3dv, vn)
   VK_EXT_primitives_generated_query                     DONE (anv, hasvk, lvp, radv, tu, vn)
   VK_EXT_provoking_vertex                               DONE (anv, hasvk, lvp, nvk, radv, tu, v3dv, vn)
   VK_EXT_queue_family_foreign                           DONE (anv, hasvk, radv, tu, vn)
index 355f2a5..ff72046 100644 (file)
@@ -123,6 +123,7 @@ nvk_get_device_extensions(const struct nv_device_info *info,
       .EXT_non_seamless_cube_map = true,
       .EXT_pci_bus_info = info->type == NV_DEVICE_TYPE_DIS,
       .EXT_physical_device_drm = true,
+      .EXT_primitive_topology_list_restart = true,
       .EXT_private_data = true,
       .EXT_provoking_vertex = true,
       .EXT_robustness2 = true,
@@ -352,6 +353,10 @@ nvk_get_device_features(const struct nv_device_info *info,
       /* VK_EXT_non_seamless_cube_map */
       .nonSeamlessCubeMap = true,
 
+      /* VK_EXT_primitive_topology_list_restart */
+      .primitiveTopologyListRestart = true,
+      .primitiveTopologyPatchListRestart = true,
+
       /* VK_EXT_provoking_vertex */
       .provokingVertexLast = true,
       .transformFeedbackPreservesProvokingVertex = true,