From 5dd1461ca48178ffaf5b7c20dd395f0a533a5fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 11 Apr 2024 09:53:59 +0200 Subject: [PATCH] nir/opt_varyings: Add early return when producer stage is task. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_opt_varyings.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler/nir/nir_opt_varyings.c b/src/compiler/nir/nir_opt_varyings.c index e7e98c94353..beffbf40ccc 100644 --- a/src/compiler/nir/nir_opt_varyings.c +++ b/src/compiler/nir/nir_opt_varyings.c @@ -4161,6 +4161,12 @@ nir_opt_varyings_progress nir_opt_varyings(nir_shader *producer, nir_shader *consumer, bool spirv, unsigned max_uniform_components, unsigned max_ubos_per_stage) { + /* Task -> Mesh I/O uses payload variables and not varying slots, + * so this pass can't do anything about it. + */ + if (producer->info.stage == MESA_SHADER_TASK) + return 0; + /* Producers before a fragment shader must have up-to-date vertex * divergence information. */