From: Timothy Arceri Date: Mon, 30 Oct 2017 00:58:52 +0000 (+1100) Subject: radv: enable nir varying array splitting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f13790c92ff1433a0fbff35788761b75df567c44;p=mesa.git radv: enable nir varying array splitting Acked-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 6490b048630..0146d6935e0 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1682,6 +1682,9 @@ radv_link_shaders(struct radv_pipeline *pipeline, nir_shader **shaders) } for (int i = 1; i < shader_count; ++i) { + nir_lower_io_arrays_to_elements(ordered_shaders[i], + ordered_shaders[i - 1]); + nir_remove_dead_variables(ordered_shaders[i], nir_var_shader_out); nir_remove_dead_variables(ordered_shaders[i - 1],