radeonsi: fix NGG VS primitive ID load
authorQiang Yu <yuq825@gmail.com>
Sat, 23 Jul 2022 10:30:45 +0000 (18:30 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Dec 2022 04:37:23 +0000 (04:37 +0000)
commit3542d5ce6b39309aa02844a4eaf9a1eafaec9280
tree02e050ca5a03a26920651eb1f040842592b33371
parent7e1b804992d6f0d906ca2bce859e7b37b1f3ffbd
radeonsi: fix NGG VS primitive ID load

When NGG VS need to export primitive ID, it will load it in GS
threads, so need to use gs_prim_id arg. Current nir to llvm
translator check vs_prim_id present to use vs_prim_id first.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17109>
src/gallium/drivers/radeonsi/si_shader.c