From b58b6d2d32d3a7bfdf41875b97e50a68aeacd1e5 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Tue, 21 Nov 2023 12:10:26 -0800 Subject: [PATCH] anv: Enable VK_KHR_shader_quad_control Reviewed-by: Ian Romanick Part-of: --- src/intel/vulkan/anv_device.c | 4 ++++ src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index bc51b17c8a1..39bc8baebc1 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -304,6 +304,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_shader_integer_dot_product = true, .KHR_shader_maximal_reconvergence = true, .KHR_shader_non_semantic_info = true, + .KHR_shader_quad_control = true, .KHR_shader_subgroup_extended_types = true, .KHR_shader_subgroup_rotate = true, .KHR_shader_subgroup_uniform_control_flow = true, @@ -909,6 +910,9 @@ get_features(const struct anv_physical_device *pdevice, .memoryMapPlaced = true, .memoryMapRangePlaced = false, .memoryUnmapReserve = true, + + /* VK_KHR_shader_quad_control */ + .shaderQuadControl = true, }; /* The new DOOM and Wolfenstein games require depthBounds without diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 82eec309404..56fbbb61687 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -174,6 +174,7 @@ anv_shader_stage_to_nir(struct anv_device *device, .multiview = true, .physical_storage_buffer_address = true, .post_depth_coverage = true, + .quad_control = true, .runtime_descriptor_array = true, .float_controls = true, .ray_cull_mask = rt_enabled,