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,