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 {