From 82d3e7515ef98c1ec0b29e63190ba31f34de1639 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 14 Mar 2022 15:47:53 -0400 Subject: [PATCH] lavapipe: EXT_shader_demote_to_helper_invocation Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_device.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index f0f6337e96a..66165104a4d 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -153,6 +153,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported = .EXT_sampler_filter_minmax = true, .EXT_scalar_block_layout = true, .EXT_separate_stencil_usage = true, + .EXT_shader_demote_to_helper_invocation= true, .EXT_shader_stencil_export = true, .EXT_shader_viewport_index_layer = true, .EXT_texel_buffer_alignment = true, @@ -790,6 +791,12 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2( features->extendedDynamicState = true; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT: { + VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT *features = + (VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT *)ext; + features->shaderDemoteToHelperInvocation = true; + break; + } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: { VkPhysicalDevice4444FormatsFeaturesEXT *features = (VkPhysicalDevice4444FormatsFeaturesEXT*)ext;