pvr: Fix vtxin special var allocation count
authorJames Glanville <james.glanville@imgtec.com>
Fri, 28 Apr 2023 08:21:50 +0000 (09:21 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 08:51:42 +0000 (08:51 +0000)
commit71980739a10d44eec5f5d9e5b2b9a4e7d9989cca
tree51303ce5a26e37a727fa01df84c128805b0a0262
parentddd3c66f5390b9e6b9aa84a2f15c05886ebaf455
pvr: Fix vtxin special var allocation count

When pvr_graphics_pipeline_alloc_vertex_special_vars() was
allocating vtxin regs for special vars, it wasn't returning back
the updated amount of allocated regs so when the PDS was filling
them in, it would try to write out of bounds.

Signed-off-by: James Glanville <james.glanville@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22750>
src/imagination/vulkan/pvr_pipeline.c