radv: make sure to load the Primitive ID for VS+GS as NGG
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Sep 2021 11:24:55 +0000 (13:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 Oct 2021 06:38:51 +0000 (06:38 +0000)
commit07d2c152bcb58ceb1626b15d664afd77ecbc4af4
treee0c543749905bed6719f37abfe2304cef1918e26
parentce2e2296ab61558f02ea2d05ae0cf4a922df84a7
radv: make sure to load the Primitive ID for VS+GS as NGG

When the VS doesn't export the Primitive ID but the FS needs it.

Fixes dEQP-VK.pipeline.framebuffer_attachment.no_attachments*.

Fixes: 7ad69e2f7ee ("radv: stop loading invocation ID for NGG vertex shaders")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13116>
src/amd/vulkan/radv_shader.c