nir: use nir_var_all to get rid of casting
[mesa.git] / src / compiler / glsl / glsl_to_nir.cpp
index 12ce0dec2e66f1e8b4a54430ea0e67bd9ec1e26b..afadfa99bb35c94b89f55fb9994dfa3217a49598 100644 (file)
@@ -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);