diff options
author | Arcady Goldmints-Orlov <[email protected]> | 2020-02-07 14:18:49 -0600 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2020-02-12 15:41:49 +0000 |
commit | e9f83185a221b446717c96c4df8dc64ced43e24f (patch) | |
tree | a2ed0de3dd09b2eea186c7fd8b58e591aeb71875 /src/gallium/state_trackers/clover/nir | |
parent | e459c7f0a14b65617e16b92f42abad2fe5878872 (diff) |
Rename nir_lower_constant_initializers to nir_lower_variable_initalizers
This is naming is more clear as nir_variables can be initializes not
just with a nir_constant but with a pointer to another nir_variable.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3047>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3047>
Diffstat (limited to 'src/gallium/state_trackers/clover/nir')
-rw-r--r-- | src/gallium/state_trackers/clover/nir/invocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/nir/invocation.cpp b/src/gallium/state_trackers/clover/nir/invocation.cpp index 0522115a58d..87a98046cc1 100644 --- a/src/gallium/state_trackers/clover/nir/invocation.cpp +++ b/src/gallium/state_trackers/clover/nir/invocation.cpp @@ -104,7 +104,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev, // Inline all functions first. // according to the comment on nir_inline_functions - NIR_PASS_V(nir, nir_lower_constant_initializers, nir_var_function_temp); + NIR_PASS_V(nir, nir_lower_variable_initializers, nir_var_function_temp); NIR_PASS_V(nir, nir_lower_returns); NIR_PASS_V(nir, nir_inline_functions); NIR_PASS_V(nir, nir_opt_deref); @@ -118,7 +118,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev, nir_validate_shader(nir, "clover after function inlining"); - NIR_PASS_V(nir, nir_lower_constant_initializers, + NIR_PASS_V(nir, nir_lower_variable_initializers, static_cast<nir_variable_mode>(~nir_var_function_temp)); // copy propagate to prepare for lower_explicit_io |