[Mesa-dev] [PATCH 070.1/129] FIXUP: nir: convert lower_io_to_scalar to deref instructions
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun Jun 3 23:10:09 UTC 2018
---
src/amd/vulkan/radv_pipeline.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 43719449784..34249bf843d 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -2025,8 +2025,6 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
nir[i] = nir_shader_clone(NULL, nir[i]);
}
- NIR_PASS_V(nir[i], nir_lower_deref_instrs, ~0);
-
if (first != last) {
nir_variable_mode mask = 0;
@@ -2040,9 +2038,9 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
nir_lower_io_to_scalar_early(nir[i], mask);
radv_optimize_nir(nir[i], false);
}
-
- NIR_PASS_V(nir[i], nir_lower_deref_instrs, ~0);
}
+
+ NIR_PASS_V(nir[i], nir_lower_deref_instrs, ~0);
}
if (nir[MESA_SHADER_TESS_CTRL]) {
--
2.17.0
More information about the mesa-dev
mailing list