From: Karol Herbst Date: Mon, 31 Aug 2020 16:16:31 +0000 (+0200) Subject: nir: use nir_var_all to get rid of casting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24dfd798d6205fd545dd988eb6c9dd2eae5b7929;p=mesa.git nir: use nir_var_all to get rid of casting Signed-off-by: Karol Herbst Reviewed-by: Jason Ekstrand Part-of: --- 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);