Mesa (main): anv: support EXT_primitive_topology_list_restart
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 1 22:02:25 UTC 2021
Module: Mesa
Branch: main
Commit: 2f7ea2c493c909659c53709db8737ee7003e4d99
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f7ea2c493c909659c53709db8737ee7003e4d99
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Aug 30 15:27:16 2021 -0400
anv: support EXT_primitive_topology_list_restart
Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Tested-by: Ivan Briano <ivan.briano at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12628>
---
src/intel/vulkan/anv_device.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 686f351b3a6..ff8a61e60e6 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -266,6 +266,7 @@ get_device_extensions(const struct anv_physical_device *device,
.EXT_pipeline_creation_cache_control = true,
.EXT_pipeline_creation_feedback = true,
.EXT_post_depth_coverage = device->info.ver >= 9,
+ .EXT_primitive_topology_list_restart = true,
.EXT_private_data = true,
.EXT_provoking_vertex = true,
.EXT_queue_family_foreign = true,
@@ -1744,6 +1745,14 @@ void anv_GetPhysicalDeviceFeatures2(
break;
}
+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT: {
+ VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT *features =
+ (VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT *)ext;
+ features->primitiveTopologyListRestart = true;
+ features->primitiveTopologyPatchListRestart = true;
+ break;
+ }
+
default:
anv_debug_ignored_stype(ext->sType);
break;
More information about the mesa-commit
mailing list