pco: enable all expected types for vertex i/o

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-02-24 13:20:35 +00:00 committed by Marge Bot
parent 24de22d0de
commit 7370254d5a

View file

@ -190,7 +190,8 @@ trans_load_input_vs(trans_ctx *tctx, nir_intrinsic_instr *intr, pco_ref dest)
assert(!base);
ASSERTED nir_alu_type type = nir_intrinsic_dest_type(intr);
assert(type == nir_type_float32);
assert(type == nir_type_float32 || type == nir_type_uint32 ||
type == nir_type_int32);
/* TODO: f16 support. */
ASSERTED const nir_src offset = intr->src[0];
@ -223,7 +224,8 @@ trans_store_output_vs(trans_ctx *tctx, nir_intrinsic_instr *intr, pco_ref src)
assert(!base);
ASSERTED nir_alu_type type = nir_intrinsic_src_type(intr);
assert(type == nir_type_float32);
assert(type == nir_type_float32 || type == nir_type_uint32 ||
type == nir_type_int32);
/* TODO: f16 support. */
ASSERTED const nir_src offset = intr->src[1];