commit | b8b1ca881b13bc00683803ca201e2fe3d4151df0 | [log] [tgz] |
---|---|---|
author | Arcady Goldmints-Orlov <agoldmints@igalia.com> | Tue Dec 10 15:37:53 2019 -0500 |
committer | Craig Stout <cstout@google.com> | Wed Jul 08 14:18:02 2020 +0000 |
tree | 0273ca177093098f75591e3bd46cd649db657b7b | |
parent | 5ce55d06dd3238bec128e2373175e414589b7925 [diff] |
compiler/nir: Add support for variable initialization from a pointer Cherry-pick'd from 7acc81056f7ac6a869ef6403573b2572c77dbecf Add a pointer_initializer field to nir_variable analogous to constant_initializer, which can be used to initialize the nir_variable to a pointer to another nir_variable. Just like the constant_initializer, the pointer_initializer gets eliminated in the nir_lower_constant_initializers pass. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3047> Change-Id: Id8a25889835b81df870daeaa1825523fd9977a56 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/403110 Reviewed-by: John Bauman <jbauman@google.com>