nouveau/nv50: Set the primid sysval flag if it's in the sysval list, too.
authorEmma Anholt <emma@anholt.net>
Thu, 14 Apr 2022 18:13:14 +0000 (11:13 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Apr 2022 21:58:33 +0000 (21:58 +0000)
commitd9b6b2acd7b4f81e315e762ed1248edf3039519c
treed8518d9c212ccbefdd008ec0796021ceb4adaa43
parent814b0edae5a76ab4bc5f9d7673adc81f70c77178
nouveau/nv50: Set the primid sysval flag if it's in the sysval list, too.

It's declared an input in TGSI, even though it's an SV in the backend.  In
NIR, it shows up as an SV, so it's in this list.  Fixes NIR regressions in
primitive-id-in and primitive-id-restart.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16063>
src/gallium/drivers/nouveau/nv50/nv50_program.c