pan/bi: Stop pretending to support f16 gl_Position

It's always a full vec4 in the varying buffer.

Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Acked-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38681>
This commit is contained in:
Faith Ekstrand 2025-12-03 14:00:19 -05:00 committed by Marge Bot
parent 1efba676b1
commit a094c15270

View file

@ -1115,8 +1115,8 @@ bi_emit_store_vary(bi_builder *b, nir_intrinsic_instr *instr)
if (b->shader->arch <= 8 && b->shader->idvs == BI_IDVS_POSITION) {
/* Bifrost position shaders have a fast path */
assert(T == nir_type_float16 || T == nir_type_float32);
unsigned regfmt = (T == nir_type_float16) ? 0 : 1;
assert(T == nir_type_float32);
unsigned regfmt = 1;
unsigned identity = (b->shader->arch == 6) ? 0x688 : 0;
unsigned snap4 = 0x5E;
uint32_t format = identity | (snap4 << 12) | (regfmt << 24);