From e4e796880625f09af3298aabca0793f5617a01cf Mon Sep 17 00:00:00 2001 From: Lorenzo Rossi Date: Wed, 18 Mar 2026 12:49:20 +0100 Subject: [PATCH] pan/compiler: Remove dead ABI function The function was a leftover from the varying ABI rework. Fixes: 7fc6af99ea4 ("pan: Remove dead code for sso_abi builder and fixed_varyings") Signed-off-by: Lorenzo Rossi Reviewed-by: Faith Ekstrand Reviewed-by: Christoph Pillmayer Part-of: --- .../compiler/pan_nir_collect_varyings.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/panfrost/compiler/pan_nir_collect_varyings.c b/src/panfrost/compiler/pan_nir_collect_varyings.c index c13e14f6939..c490b83eb98 100644 --- a/src/panfrost/compiler/pan_nir_collect_varyings.c +++ b/src/panfrost/compiler/pan_nir_collect_varyings.c @@ -210,25 +210,6 @@ pan_nir_collect_noperspective_varyings_fs(nir_shader *s) return noperspective_varyings; } -/* - * ABI: Special (desktop GL) slots come first, tightly packed. General varyings - * come later, sparsely packed. This handles both linked and separable shaders - * with a common code path, with minimal keying only for desktop GL. Each slot - * consumes 16 bytes (TODO: fp16, partial vectors). - */ -static unsigned -bi_varying_base_bytes(gl_varying_slot slot, uint32_t fixed_varyings) -{ - if (slot >= VARYING_SLOT_VAR0) { - unsigned nr_special = util_bitcount(fixed_varyings); - unsigned general_index = (slot - VARYING_SLOT_VAR0); - - return 16 * (nr_special + general_index); - } else { - return 16 * (util_bitcount(fixed_varyings & BITFIELD_MASK(slot))); - } -} - static const struct pan_varying_slot hw_varying_slots[] = {{ .location = VARYING_SLOT_POS, .alu_type = nir_type_float32,