radv: enable nir varying array splitting
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 30 Oct 2017 00:58:52 +0000 (11:58 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 4 Dec 2017 01:52:18 +0000 (12:52 +1100)
Acked-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c

index 6490b04863070f8005911513468be77d4b7095fb..0146d6935e00f47b87b36143f0b52a783387d5c0 100644 (file)
@@ -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],