nir/lower_io: Add a build_addr_for_var helper
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 15 Aug 2020 05:53:45 +0000 (00:53 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 20:50:03 +0000 (20:50 +0000)
commitef142c68e1161bfa1fbe1ff19419a54cb1e8ea73
treec8d73aaa1553eb4bb518c722488d6b872939d761
parent965c2688657016cc313baac8b26de5141d5684c0
nir/lower_io: Add a build_addr_for_var helper

The new version is more verbose but also more extensible.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6379>
src/compiler/nir/nir_lower_io.c