nir/opt_if: also rewrite uniform uses for read_invocation
authorGeorg Lehmann <dadschoorse@gmail.com>
Thu, 10 Aug 2023 19:05:32 +0000 (21:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 12 Aug 2023 07:16:28 +0000 (07:16 +0000)
commit95856898393782a14da6062bfce3ee92d88497d6
tree7cecbdf8d5a8c494fe2787d80f60285e12c08a3b
parentce0c70fb0c696d311e624fadc3890dad0534d8c5
nir/opt_if: also rewrite uniform uses for read_invocation

No Foz-DB changes, but maybe it matters in the future because dxil-spirv
will use read_invocation for WaveReadLaneFirst in fragment shaders.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24618>
src/compiler/nir/nir_opt_if.c