radv: track if the rasterization primitive is known at compile time
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 5 Jun 2023 07:47:09 +0000 (09:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 14:40:35 +0000 (14:40 +0000)
commit116ee981068d115ca3ba520d899780ed4b475c61
treeb8d84e37e7806345e91d788091ecec3af0c1d103
parent958cc879542693d0b82ac1b87c6c165133b2c7cc
radv: track if the rasterization primitive is known at compile time

For fast-linking with GPL, we might not know the pre-rasterization
stages at compile time (when only the FS is compiled) and we will need
to load the rasterization primitive through an user SGPR.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16742>
src/amd/vulkan/radv_pipeline_graphics.c
src/amd/vulkan/radv_shader.h