nir/lower_non_uniform: Use nir_read_first_invocation helper.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Dec 2020 19:00:15 +0000 (11:00 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Dec 2020 19:27:56 +0000 (19:27 +0000)
commit562e07db38499eaa377c0ad88ab789c701ab8927
tree4cf47170731b7bda4d4e1084a66812500fc2b21c
parent3abac03d49b5dc4a6642fe0637da5a19ad60dd4f
nir/lower_non_uniform: Use nir_read_first_invocation helper.

We now have a general helper for this, and don't need to roll our own.

Suggested by Rhys Perry in the review for MR !7592.

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