agx: Assert vertex_id, instance_id are VS-only
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 26 Jul 2023 20:08:42 +0000 (16:08 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Aug 2023 15:06:54 +0000 (15:06 +0000)
commitc363fcbe1e462b4ab6548ed3544345deb91e9f21
treee609cd24dfac00147ead08f77c40fd2c11291adc
parent4c36f9052b29273a6d61dd704794b1b8f8ea3c41
agx: Assert vertex_id, instance_id are VS-only

We can get them in other shaders transiently due to merging shader stages, but
they need to be lowered since the hardware versions only exist in the hardware
VS. So the compiler should never see them outside VS.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24847>
src/asahi/compiler/agx_compile.c