From 24dfd798d6205fd545dd988eb6c9dd2eae5b7929 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 31 Aug 2020 18:16:31 +0200 Subject: [PATCH] nir: use nir_var_all to get rid of casting Signed-off-by: Karol Herbst Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/glsl/glsl_to_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 12ce0dec2e6..afadfa99bb3 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -224,7 +224,7 @@ glsl_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_lower_variable_initializers(shader, (nir_variable_mode)~0); + nir_lower_variable_initializers(shader, nir_var_all); nir_lower_returns(shader); nir_inline_functions(shader); nir_opt_deref(shader); -- 2.30.2