Mesa (master): panfrost/midgard: Only copyprop without an outmod

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Apr 28 21:41:47 UTC 2019


Module: Mesa
Branch: master
Commit: bdaa23b32be9f1631da795b59dae7ef5e5183ef5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdaa23b32be9f1631da795b59dae7ef5e5183ef5

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 27 23:49:52 2019 +0000

panfrost/midgard: Only copyprop without an outmod

With an outmod, we would need to propagate that through, which is for
future work.

Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>

---

 src/gallium/drivers/panfrost/midgard/midgard_compile.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 0a9978655a7..b5e29fee91d 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -3165,6 +3165,7 @@ midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block)
                 bool is_int = midgard_is_integer_op(ins->alu.op);
 
                 if (mir_nontrivial_mod(src, is_int, mask)) continue;
+                if (ins->alu.outmod != midgard_outmod_none) continue;
 
                 mir_foreach_instr_in_block_from(block, v, mir_next_op(ins)) {
                         if (v->ssa_args.src0 == to) {




More information about the mesa-commit mailing list