aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/bifrost/bi_schedule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c
index 4adab3bc60e..589c84897ac 100644
--- a/src/panfrost/bifrost/bi_schedule.c
+++ b/src/panfrost/bifrost/bi_schedule.c
@@ -110,7 +110,10 @@ bi_schedule(bi_context *ctx)
ids = ids & 1;
last_id = u->scoreboard_id;
u->back_to_back = true;
- u->data_register_write_barrier = true;
+
+ /* Rule: first instructions cannot have write barriers */
+ if (!is_first)
+ u->data_register_write_barrier = true;
u->constant_count = 1;
u->constants[0] = ins->constant.u64;