From 2751d488cef437503286364a220dabfd18c87dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 9 Jun 2025 17:43:54 -0400 Subject: [PATCH] radv: enable nir_opt_clip_cull_const for GS too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pass also supports GS now. Reviewed-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_pipeline_graphics.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline_graphics.c b/src/amd/vulkan/radv_pipeline_graphics.c index 6d996ce5c26..a5e5b998ed2 100644 --- a/src/amd/vulkan/radv_pipeline_graphics.c +++ b/src/amd/vulkan/radv_pipeline_graphics.c @@ -2766,8 +2766,9 @@ radv_graphics_shaders_compile(struct radv_device *device, struct vk_pipeline_cac /* Optimize constant clip/cull distance after linking to operate on scalar io in the last * pre raster stage. */ - radv_foreach_stage (i, - active_nir_stages & (VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)) { + radv_foreach_stage ( + i, active_nir_stages & + (VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT | VK_SHADER_STAGE_GEOMETRY_BIT)) { if (stages[i].key.optimisations_disabled) continue;