nir: Allow Mesh/Task to use implicit LOD when DERIVATIVE_GROUP is set

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30956>
This commit is contained in:
Caio Oliveira 2024-08-30 12:09:22 -07:00 committed by Marge Bot
parent 1cece2691f
commit 1e7f1c2039

View file

@ -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));
}