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:
parent
15da983653
commit
24dfd798d6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue