Mesa (master): panfrost: Drop dependency on nonexistant write_value
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 13 15:55:28 UTC 2020
Module: Mesa
Branch: master
Commit: 3025ea6abe97b42bc85fc7f6e6c47bf916da0738
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3025ea6abe97b42bc85fc7f6e6c47bf916da0738
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Fri Apr 10 17:10:24 2020 -0400
panfrost: Drop dependency on nonexistant write_value
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4530>
---
src/gallium/drivers/panfrost/pan_scoreboard.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/panfrost/pan_scoreboard.c b/src/gallium/drivers/panfrost/pan_scoreboard.c
index 6ba1634cc93..4141f9c19c4 100644
--- a/src/gallium/drivers/panfrost/pan_scoreboard.c
+++ b/src/gallium/drivers/panfrost/pan_scoreboard.c
@@ -115,15 +115,18 @@ panfrost_new_job(
void *payload, size_t payload_size,
bool inject)
{
+ struct panfrost_device *dev = pan_device(batch->ctx->base.screen);
+
unsigned global_dep = 0;
if (type == JOB_TYPE_TILER) {
- /* Tiler jobs must be chained, and the first tiler job must
- * depend on the write value job, whose index we reserve now */
+ /* Tiler jobs must be chained, and on Midgard, the first tiler
+ * job must depend on the write value job, whose index we
+ * reserve now */
if (batch->tiler_dep)
global_dep = batch->tiler_dep;
- else {
+ else if (!(dev->quirks & IS_BIFROST)) {
batch->write_value_index = ++batch->job_index;
global_dep = batch->write_value_index;
}
More information about the mesa-commit
mailing list