Module: Mesa
Branch: master
Commit: 24dfd798d6205fd545dd988eb6c9dd2eae5b7929
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=24dfd798d6205fd545dd988eb6c9dd2eae5b7929

Author: Karol Herbst <kher...@redhat.com>
Date:   Mon Aug 31 18:16:31 2020 +0200

nir: use nir_var_all to get rid of casting

Signed-off-by: Karol Herbst <kher...@redhat.com>
Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6520>

---

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

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to