mesa/st: temporarily disable lower_io_to_elements()
authorRob Clark <robdclark@gmail.com>
Thu, 17 May 2018 18:22:01 +0000 (14:22 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
Not required for correctness, and makes the order of converting passes
to deref instructions hard to get right for both prog_to_nir and
glsl_to_nir cases.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index 55615728da7f5ca11d44b950937e73184f703f83..56d53bd7db3aff3448587d3be42ec9a5e9f659df 100644 (file)
@@ -596,7 +596,7 @@ st_nir_get_mesa_program(struct gl_context *ctx,
 static void
 st_nir_link_shaders(nir_shader **producer, nir_shader **consumer, bool scalar)
 {
-   nir_lower_io_arrays_to_elements(*producer, *consumer);
+   /* nir_lower_io_arrays_to_elements(*producer, *consumer); */
 
    NIR_PASS_V(*producer, nir_remove_dead_variables, nir_var_shader_out);
    NIR_PASS_V(*consumer, nir_remove_dead_variables, nir_var_shader_in);