commit | 4f4e90bfbb919e178db570d83b17d87976e80fce | [log] [tgz] |
---|---|---|
author | Gert Wollny <gert.wollny@collabora.com> | Tue Sep 22 09:01:48 2020 +0200 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Sep 22 14:32:45 2020 +0000 |
tree | 9a10ab9402eb8680d3448de0a449862916e464c1 | |
parent | 8a9876a29ad3df49c69e48b34cd3d447e37989d3 [diff] |
r600/sfn: run late algebraic optimizations Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6814>
diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp index 091f4ff..d774943 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
@@ -803,7 +803,10 @@ auto sh = nir_shader_clone(sel->nir, sel->nir); + NIR_PASS_V(sh, nir_opt_algebraic_late); + NIR_PASS_V(sh, nir_lower_locals_to_regs); + //NIR_PASS_V(sel->nir, nir_opt_algebraic); //NIR_PASS_V(sel->nir, nir_copy_prop); NIR_PASS_V(sh, nir_lower_to_source_mods, nir_lower_float_source_mods);