mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
anv/pipeline: Only call remove_dead_variables once
It can handle multiple modes at a time now so there's no reason to call it repeatedly. Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
957ec00243
commit
43e0b0d4b2
1 changed files with 3 additions and 3 deletions
|
|
@ -157,9 +157,9 @@ anv_shader_compile_to_nir(struct anv_device *device,
|
|||
assert(exec_list_length(&nir->functions) == 1);
|
||||
entry_point->name = ralloc_strdup(entry_point, "main");
|
||||
|
||||
nir_remove_dead_variables(nir, nir_var_shader_in);
|
||||
nir_remove_dead_variables(nir, nir_var_shader_out);
|
||||
nir_remove_dead_variables(nir, nir_var_system_value);
|
||||
nir_remove_dead_variables(nir, nir_var_shader_in |
|
||||
nir_var_shader_out |
|
||||
nir_var_system_value);
|
||||
nir_validate_shader(nir);
|
||||
|
||||
/* Now that we've deleted all but the main function, we can go ahead and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue