nouveau/nv50: Enable mesa/st alpha test lowering on nv50 with NIR.
authorEmma Anholt <emma@anholt.net>
Thu, 14 Apr 2022 17:55:12 +0000 (10:55 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Apr 2022 21:58:33 +0000 (21:58 +0000)
commit814b0edae5a76ab4bc5f9d7673adc81f70c77178
tree8e77735e92811062a761e81eb6954d20736314ec
parent6040107dc1e8374b7be60c0f9704fe593f00cd9b
nouveau/nv50: Enable mesa/st alpha test lowering on nv50 with NIR.

With TGSI, the driver allocates space for the alpha ref as a uniform and
adds a conditional discard to the shader.  We could either replicate that
with NIR, or just set the flag saying we need the shader lowering and get
the same thing.

Reviewed-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_screen.c