radv: Disable lower_io_to_temporaries during deref changes.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 3 Jun 2018 23:10:05 +0000 (01:10 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/amd/vulkan/radv_shader.c

index 9ffb4fb61579c899413f791774b7dc76119343d0..147092511deecc5e862d5995ce646a7a7ec49850 100644 (file)
@@ -291,6 +291,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
 
        nir_lower_vars_to_ssa(nir);
 
+       /* Temporarily disabled during deref changes */
+#if 0
        if (nir->info.stage == MESA_SHADER_VERTEX ||
            nir->info.stage == MESA_SHADER_GEOMETRY) {
                NIR_PASS_V(nir, nir_lower_io_to_temporaries,
@@ -300,6 +302,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                NIR_PASS_V(nir, nir_lower_io_to_temporaries,
                           nir_shader_get_entrypoint(nir), true, false);
        }
+#endif
 
        nir_split_var_copies(nir);
        nir_lower_var_copies(nir);