Mesa (master): radv: call nir_split_var_copies() before nir_lower_var_copies()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Thu May 24 07:19:29 UTC 2018
Module: Mesa
Branch: master
Commit: ded150958740e47cb7bc4ba868289b88268f666c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ded150958740e47cb7bc4ba868289b88268f666c
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Wed May 23 14:31:55 2018 +0200
radv: call nir_split_var_copies() before nir_lower_var_copies()
This doesn't nothing special currently because we don't create
any copy_var instructions, but this is needed for the next patch.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
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 6ccbe81eff..7ed5d2a421 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -277,7 +277,10 @@ radv_shader_compile_to_nir(struct radv_device *device,
nir_lower_tex(nir, &tex_options);
nir_lower_vars_to_ssa(nir);
+
+ nir_split_var_copies(nir);
nir_lower_var_copies(nir);
+
nir_lower_global_vars_to_local(nir);
nir_remove_dead_variables(nir, nir_var_local);
nir_lower_subgroups(nir, &(struct nir_lower_subgroups_options) {
More information about the mesa-commit
mailing list