From 5c0977d2304b299c4c7dc2c93f13ce51c097db78 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 10 May 2022 12:21:58 -0400 Subject: [PATCH] pan/bi: Expand MAX_DESTS to 4 For splits. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_schedule.c | 2 +- src/panfrost/bifrost/compiler.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c index 8bd349c5842..1f511d8eee5 100644 --- a/src/panfrost/bifrost/bi_schedule.c +++ b/src/panfrost/bifrost/bi_schedule.c @@ -125,7 +125,7 @@ struct bi_clause_state { /* Indices already accessed, this needs to be tracked to avoid hazards * around message-passing instructions */ unsigned access_count; - bi_index accesses[(BI_MAX_SRCS + 2) * 16]; + bi_index accesses[(BI_MAX_SRCS + BI_MAX_DESTS) * 16]; unsigned tuple_count; struct bi_const_state consts[8]; diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 6aab2c4ac9e..ca704960831 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -371,7 +371,8 @@ bi_is_value_equiv(bi_index left, bi_index right) } } -#define BI_MAX_DESTS 2 +#define BI_MAX_VEC 8 +#define BI_MAX_DESTS 4 #define BI_MAX_SRCS 5 typedef struct {