radeonsi: write VS/TES system values into LDS after culling
authorMarek Olšák <marek.olsak@amd.com>
Thu, 15 Oct 2020 18:52:16 +0000 (14:52 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 17 Oct 2020 01:58:19 +0000 (01:58 +0000)
commit8094367988932b071ec482fe717eebddeaaf58ca
treef66785f05fe928dd621a3cc270bf0fc62883cc60
parent1de0bf0a56d630fa1d070eaff55c40053032cd6b
radeonsi: write VS/TES system values into LDS after culling

The system values are written into LDS after the new thread ID is known,
so it removes pointer indirection with the old thread ID.

Also, the LDS stores are skipped entirely if vertices are culled.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7172>
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c