Mesa (main): ir3/legalize: Support multi-mov instructions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 29 08:25:32 UTC 2021
Module: Mesa
Branch: main
Commit: 7036e4fd31ad76464925c7725cafe2d30e8e9667
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7036e4fd31ad76464925c7725cafe2d30e8e9667
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Thu Apr 22 19:14:42 2021 +0200
ir3/legalize: Support multi-mov instructions
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11565>
---
src/freedreno/ir3/ir3_legalize.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c
index b354cda886d..24fe37ab320 100644
--- a/src/freedreno/ir3/ir3_legalize.c
+++ b/src/freedreno/ir3/ir3_legalize.c
@@ -206,8 +206,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
last_rel = n;
}
- if (n->dsts_count > 0) {
- struct ir3_register *reg = n->dsts[0];
+ foreach_dst (reg, n) {
if (regmask_get(&state->needs_ss_war, reg)) {
n->flags |= IR3_INSTR_SS;
last_input_needs_ss = false;
More information about the mesa-commit
mailing list