pan/compiler: Remove dead ABI function

The function was a leftover from the varying ABI rework.

Fixes: 7fc6af99ea ("pan: Remove dead code for sso_abi builder and fixed_varyings")
Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40515>
This commit is contained in:
Lorenzo Rossi 2026-03-18 12:49:20 +01:00 committed by Marge Bot
parent e1fd5a4a57
commit e4e7968806

View file

@ -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,