From 1e7f1c2039ffd0e55a46b673b8b7a9823ca5007f Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Fri, 30 Aug 2024 12:09:22 -0700 Subject: [PATCH] nir: Allow Mesh/Task to use implicit LOD when DERIVATIVE_GROUP is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Lionel Landwerlin Reviewed-by: Daniel Schürmann Reviewed-by: Faith Ekstrand Part-of: --- src/compiler/nir/nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index d7755958927..fc0b018dd29 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -2198,7 +2198,7 @@ bool nir_shader_supports_implicit_lod(nir_shader *shader) { return (shader->info.stage == MESA_SHADER_FRAGMENT || - (shader->info.stage == MESA_SHADER_COMPUTE && + (gl_shader_stage_uses_workgroup(shader->info.stage) && shader->info.derivative_group != DERIVATIVE_GROUP_NONE)); }