[Mesa-dev] [PATCH 066.9/129] radv: Disable lower_io_to_temporaries during deref changes.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sun Jun 3 23:10:05 UTC 2018


The ordering of passes is such that this already generates deref_var
based stores before the lower_io_to_scalar pass is ready for it.
---
 src/amd/vulkan/radv_shader.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 68f2a55e810..42623c950b7 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -278,6 +278,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,
@@ -287,6 +289,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);
-- 
2.17.0



More information about the mesa-dev mailing list