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

Author: Rob Clark <[email protected]>
Date:   Sun Mar 22 12:37:12 2020 -0700

freedreno/ir3/ra: fix array liveranges

Fixes: 1b658533e11 ("freedreno/ir3: extend liverange of arrays")
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4272>

---

 src/freedreno/ir3/ir3_ra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c
index fa379c3495b..a26c5914f8e 100644
--- a/src/freedreno/ir3/ir3_ra.c
+++ b/src/freedreno/ir3/ir3_ra.c
@@ -795,7 +795,7 @@ ra_add_interference(struct ir3_ra_ctx *ctx)
                                if (BITSET_TEST(bd->livein, i + arr->base)) {
                                        arr->start_ip = MIN2(arr->start_ip, 
block->start_ip);
                                }
-                               if (BITSET_TEST(bd->livein, i + arr->base)) {
+                               if (BITSET_TEST(bd->liveout, i + arr->base)) {
                                        arr->end_ip = MAX2(arr->end_ip, 
block->end_ip);
                                }
                        }

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

Reply via email to