summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-10-30 11:58:52 +1100
committerTimothy Arceri <[email protected]>2017-12-04 12:52:18 +1100
commitf13790c92ff1433a0fbff35788761b75df567c44 (patch)
treede2d5cc75d9e59f6c8b518df6bd50be04d2f288a /src/amd
parent6648bd68fd27fce9cdcdbf9cb7a370907fb30dd9 (diff)
radv: enable nir varying array splitting
Acked-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_pipeline.c3
1 files changed, 3 insertions, 0 deletions
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],