Mesa (main): zink: run copy_prop_vars during optimization

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 10 22:03:39 UTC 2022


Module: Mesa
Branch: main
Commit: 98d7a9a9e4fe25395207a7a88061f15328cc77eb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=98d7a9a9e4fe25395207a7a88061f15328cc77eb

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu May 19 15:38:10 2022 -0400

zink: run copy_prop_vars during optimization

Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16973>

---

 src/gallium/drivers/zink/zink_compiler.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c
index 18567f3400e..8c9269d0afb 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -474,6 +474,7 @@ optimize_nir(struct nir_shader *s)
          NIR_PASS_V(s, nir_lower_int64);
       NIR_PASS_V(s, nir_lower_vars_to_ssa);
       NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_pack_instr, NULL);
+      NIR_PASS(progress, s, nir_opt_copy_prop_vars);
       NIR_PASS(progress, s, nir_copy_prop);
       NIR_PASS(progress, s, nir_opt_remove_phis);
       if (s->options->lower_int64_options) {



More information about the mesa-commit mailing list