mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue