mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 03:30:30 +01:00
radv: Only call remove_dead_variables once.
Port of 43e0b0d4b2
"anv/pipeline: Only call remove_dead_variables once"
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
970556292b
commit
18e70edd8c
1 changed files with 3 additions and 3 deletions
|
|
@ -219,9 +219,9 @@ radv_shader_compile_to_nir(struct radv_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);
|
||||
|
||||
nir_lower_system_values(nir);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue