From 7ba81b5f954bfe05e0eaa8635b0832c8ebe61b61 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Wed, 13 Aug 2025 09:57:17 +0000 Subject: [PATCH] pan/bi: Move pan_lower_sample_pos to next block This should only run on frag shaders, let's group it the same way we have it in midgard compiler. Signed-off-by: Mary Guillemard Reviewed-by: Olivia Lee Part-of: --- src/panfrost/compiler/bifrost_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 25cda1c04fb..194d9b05f55 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -5995,11 +5995,10 @@ bifrost_preprocess_nir(nir_shader *nir, unsigned gpu_id) }; NIR_PASS(_, nir, nir_lower_ssbo, &ssbo_opts); - NIR_PASS(_, nir, pan_lower_sample_pos); - if (nir->info.stage == MESA_SHADER_FRAGMENT) { NIR_PASS(_, nir, nir_lower_is_helper_invocation); NIR_PASS(_, nir, pan_lower_helper_invocation); + NIR_PASS(_, nir, pan_lower_sample_pos); } /*