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

Author: Connor Abbott <[email protected]>
Date:   Fri Mar 19 16:37:30 2021 +0100

ir3/cp_postsched: Set address of uses for relative mov's

Fixes: 680ca5b ("freedreno/ir3: add post-scheduler cp pass")
Reviewed-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10076>

---

 src/freedreno/ir3/ir3_cp_postsched.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/freedreno/ir3/ir3_cp_postsched.c 
b/src/freedreno/ir3/ir3_cp_postsched.c
index f761dc19880..ba5ff6b97b4 100644
--- a/src/freedreno/ir3/ir3_cp_postsched.c
+++ b/src/freedreno/ir3/ir3_cp_postsched.c
@@ -167,11 +167,14 @@ instr_cp_postsched(struct ir3_instruction *mov)
                        removed = true;
                }
 
-               /* the use could have been only a false-dep, only add to
-                * the newdeps array if we've actually updated a real
-                * src reg for the use:
+               /* the use could have been only a false-dep, only add to the 
newdeps
+                * array and update the address if we've actually updated a 
real src
+                * reg for the use:
                 */
                if (removed) {
+                       if (src->flags & IR3_REG_RELATIV)
+                               ir3_instr_set_address(use, mov->address);
+
                        util_dynarray_append(&newdeps, struct ir3_instruction 
*, use);
 
                        /* Remove the use from the src instruction: */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to