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/mesa | |
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/mesa')
-rw-r--r-- | src/mesa/main/glspirv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index 08886954d33..4a8165fa4e1 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -284,7 +284,7 @@ _mesa_spirv_to_nir(struct gl_context *ctx, * inline functions. That way they get properly initialized at the top * of the function and not at the top of its caller. */ - 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); |