panfrost: Don't allocate storage for PSIZ on Valhall

It's implicit.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16035>
This commit is contained in:
Alyssa Rosenzweig 2022-01-13 17:42:15 -05:00 committed by Marge Bot
parent 44689b222a
commit af6071053b

View file

@ -124,6 +124,13 @@ collect_varyings(nir_shader *s, nir_variable_mode varying_mode,
if (PAN_ARCH >= 6 && var->data.interpolation == INTERP_MODE_FLAT)
type = nir_type_uint;
/* Point size is handled specially on Valhall (with malloc
* IDVS).. probably though this entire linker should be bypassed
* for Valhall in the future.
*/
if (PAN_ARCH >= 9 && var->data.location == VARYING_SLOT_PSIZ)
continue;
/* Demote to fp16 where possible. int16 varyings are TODO as the hw
* will saturate instead of wrap which is not conformant, so we need to
* insert i2i16/u2u16 instructions before the st_vary_32i/32u to get