nir: use nir_var_all to get rid of casting

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>
This commit is contained in:
Karol Herbst 2020-08-31 18:16:31 +02:00 committed by Marge Bot
parent 15da983653
commit 24dfd798d6
1 changed files with 1 additions and 1 deletions

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