From ec6c6f610c4e8fc69e3d86bef56cf64eeaccbd4a Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 25 Jan 2021 11:38:14 +0100 Subject: [PATCH] panfrost: Fix tiler job injection (again) 2f1947b39ca5 ("panfrost: Fix tiler job injection") had the tests inverted: WRITE_VALUE jobs are only needed on Midgard, not Bifrost. Cc: mesa-stable Fixes: 2f1947b39ca5 ("panfrost: Fix tiler job injection") Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/pan_scoreboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/lib/pan_scoreboard.c b/src/panfrost/lib/pan_scoreboard.c index 27967fca536..a12f823151e 100644 --- a/src/panfrost/lib/pan_scoreboard.c +++ b/src/panfrost/lib/pan_scoreboard.c @@ -123,12 +123,12 @@ panfrost_add_job( * job must depend on the write value job, whose index we * reserve now */ - if (is_bifrost && !scoreboard->write_value_index) + if (!is_bifrost && !scoreboard->write_value_index) scoreboard->write_value_index = ++scoreboard->job_index; if (scoreboard->tiler_dep && !inject) global_dep = scoreboard->tiler_dep; - else if (is_bifrost) + else if (!is_bifrost) global_dep = scoreboard->write_value_index; }