pvr: Remove some magic numbers and increments from km stream
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Thu, 29 Jun 2023 14:17:57 +0000 (15:17 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Jul 2023 10:45:49 +0000 (10:45 +0000)
commit87e7f6abbe195689d7302d0844e5b25d920809a8
tree2c24a9e90b718fea912245162ed97e19ce14c02a
parentf1e45f4bbdd8218af8aa8b25d71e51630ad23f19
pvr: Remove some magic numbers and increments from km stream

 - Update and add csbgen definitions to make the content of the
   geom and frag km stream more obvious.

 - Replace some of the hard coded constants with defines.

 - Adds some static assert to make the provenance of definitions
   more clear as well as making sure things fit properly.

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/24138>
src/imagination/csbgen/rogue_cr.xml
src/imagination/csbgen/rogue_kmd_stream.xml
src/imagination/vulkan/pvr_job_render.c
src/imagination/vulkan/pvr_job_render.h
src/imagination/vulkan/pvr_job_transfer.c
src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_transfer.c