From cd4400e27b097fb52d0f634a9673c28c143f662f Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 24 Apr 2025 09:51:06 +0200 Subject: [PATCH] pan/bi: Lower is_helper_invocation Needed for VK_EXT_shader_demote_to_helper_invocation. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- src/panfrost/compiler/bifrost_compile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 9609b653603..ac1b16581a2 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -5796,7 +5796,11 @@ bifrost_preprocess_nir(nir_shader *nir, unsigned gpu_id) NIR_PASS(_, nir, nir_lower_ssbo, &ssbo_opts); NIR_PASS(_, nir, pan_lower_sample_pos); - NIR_PASS(_, nir, pan_lower_helper_invocation); + + if (nir->info.stage == MESA_SHADER_FRAGMENT) { + NIR_PASS(_, nir, nir_lower_is_helper_invocation); + NIR_PASS(_, nir, pan_lower_helper_invocation); + } /* * Lower subgroups ops before lowering int64: nir_lower_int64 doesn't know