pvr: Handle special built-in variable loading in vertex shader
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Mon, 27 Feb 2023 17:46:08 +0000 (17:46 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 17:26:22 +0000 (17:26 +0000)
commit957009978ef6d7121fc0d710d03bc20097d4d46b
treecf6e2a3b15360ff834cb5cc3b7e556c756bd66df
parentd6b30d42b05a93aa80c93c7fcc1782f9c59a6f1a
pvr: Handle special built-in variable loading in vertex shader

For now always allocate space for the special built-in variables
that need filling in for the vertex shader. Ideally we should get
the compiler to analyze the shader and tell the driver if they are
used so that we don't reserve and fill them needlessly.

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/21590>
src/imagination/vulkan/pvr_pipeline.c