From: Samuel Pitoiset Date: Mon, 2 Dec 2019 15:33:06 +0000 (+0100) Subject: radv: remove dead shader input/output variables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b51259f06b0df97cc79d5255e6696631d378239;p=mesa.git radv: remove dead shader input/output variables No pipeline-db changes. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index ee09a0fa62b..6466bad5cae 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -249,7 +249,7 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively, NIR_PASS(progress, shader, nir_opt_copy_prop_vars); NIR_PASS(progress, shader, nir_opt_dead_write_vars); NIR_PASS(progress, shader, nir_remove_dead_variables, - nir_var_function_temp); + nir_var_function_temp | nir_var_shader_in | nir_var_shader_out); NIR_PASS_V(shader, nir_lower_alu_to_scalar, NULL, NULL); NIR_PASS_V(shader, nir_lower_phis_to_scalar);