From 925bd5f990a49929a29f5ff6da02eba445645459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Fri, 7 May 2021 13:06:08 +0200 Subject: [PATCH] radv: Ignore GS copy shader when determining NGG GS wave size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GS copy shader is not used with NGG GS. This fixes a big bug when NGG GS is running in Wave32 mode. Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 4f676917642..5a07d652a0e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -5075,7 +5075,7 @@ radv_pipeline_generate_vgt_shader_config(struct radeon_cmdbuf *ctx_cs, if (pipeline->shaders[MESA_SHADER_GEOMETRY]) { vs_size = gs_size = pipeline->shaders[MESA_SHADER_GEOMETRY]->info.wave_size; - if (pipeline->gs_copy_shader) + if (radv_pipeline_has_gs_copy_shader(pipeline)) vs_size = pipeline->gs_copy_shader->info.wave_size; } else if (pipeline->shaders[MESA_SHADER_TESS_EVAL]) vs_size = pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.wave_size;