diff options
author | Jason Ekstrand <[email protected]> | 2017-01-06 17:25:35 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-01-07 15:45:09 -0800 |
commit | 43e0b0d4b255d910616c10e3e01bfec5db469e0e (patch) | |
tree | eaa36567f0a158e6e0830f951b17fc97c103aa7d | |
parent | 957ec00243ec8ccc0a94f68106d079b54685fe5a (diff) |
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 <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index db35d7004f8..fadc76a79af 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -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 |