nir/lower_io: Add support for nir_var_mem_constant
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 18 Aug 2020 19:43:39 +0000 (14:43 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 20:50:03 +0000 (20:50 +0000)
commit4360a8a2b3fce819e93c2844077ac0b26d234ead
tree856e0181bbbc02224b8a50a8ca6cce8a7ec58ce4
parentef142c68e1161bfa1fbe1ff19419a54cb1e8ea73
nir/lower_io: Add support for nir_var_mem_constant

This commit adds support for nir_var_mem_constant various places.  It
also adds a pass similar to nir_lower_vars_to_explicit_types except it
also scrapes out the constants and stuffs them into constant_data.

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.h
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_io.c