nir: use nir_var_all to get rid of casting
authorKarol Herbst <kherbst@redhat.com>
Mon, 31 Aug 2020 16:16:31 +0000 (18:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 17:45:08 +0000 (17:45 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6520>

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);