From f13790c92ff1433a0fbff35788761b75df567c44 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 30 Oct 2017 11:58:52 +1100 Subject: [PATCH] radv: enable nir varying array splitting Acked-by: Dave Airlie --- src/amd/vulkan/radv_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) 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], -- 2.30.2