From eca05750698e584310bcd70bad8e75cbc808c4da Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 2 Apr 2026 10:19:02 -0400 Subject: [PATCH] pan/nir: Stop doing manual optimization after resize_varying_io We call bi_optimize_nir() a few lines later. Reviewed-by: Christoph Pillmayer Reviewed-by: Lars-Ivar Hesselberg Simonsen Reviewed-by: Lorenzo Rossi Part-of: --- src/panfrost/compiler/bifrost/bifrost_nir.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/panfrost/compiler/bifrost/bifrost_nir.c b/src/panfrost/compiler/bifrost/bifrost_nir.c index 127e6e9be1b..b75b8219db9 100644 --- a/src/panfrost/compiler/bifrost/bifrost_nir.c +++ b/src/panfrost/compiler/bifrost/bifrost_nir.c @@ -1094,19 +1094,9 @@ bifrost_compile_shader_nir(nir_shader *nir, * fragment shader of something that isn't written by the vertex shader. * In that case, we just return zero. */ - if (pan_arch(inputs->gpu_id) >= 9 && inputs->varying_layout) { + if (pan_arch(inputs->gpu_id) >= 9 && inputs->varying_layout) NIR_PASS(_, nir, pan_nir_resize_varying_io, inputs->varying_layout); - /* pan_nir_resize_varying_io may generate vector conversions which we - * need to clean up so the back-end doesn't see them. - */ - uint64_t gpu_id = inputs->gpu_id; - NIR_PASS(_, nir, nir_lower_alu_width, bi_vectorize_filter, &gpu_id); - NIR_PASS(_, nir, nir_lower_load_const_to_scalar); - NIR_PASS(_, nir, nir_opt_copy_prop); - NIR_PASS(_, nir, nir_opt_dce); - } - if (nir->info.stage == MESA_SHADER_VERTEX) { info->vs.idvs = bi_should_idvs(nir, inputs);