Mesa (master): panfrost: Don't emit write_value jobs on Bifrost

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 10 15:11:42 UTC 2020


Module: Mesa
Branch: master
Commit: 547f999e2cb668e7cf4d0c30b9c72b45bf081e52
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=547f999e2cb668e7cf4d0c30b9c72b45bf081e52

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Tue Apr  7 18:29:53 2020 +0200

panfrost: Don't emit write_value jobs on Bifrost

As on Bifrost GPUs there's a different mechanism for reusing the tiler
data structures.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>

---

 src/gallium/drivers/panfrost/pan_scoreboard.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_scoreboard.c b/src/gallium/drivers/panfrost/pan_scoreboard.c
index c83e78a5934..6ba1634cc93 100644
--- a/src/gallium/drivers/panfrost/pan_scoreboard.c
+++ b/src/gallium/drivers/panfrost/pan_scoreboard.c
@@ -25,6 +25,7 @@
 #include "pan_context.h"
 #include "pan_job.h"
 #include "pan_allocate.h"
+#include "panfrost-quirks.h"
 #include "util/bitset.h"
 
 /*
@@ -171,8 +172,10 @@ panfrost_new_job(
 void
 panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch)
 {
+        struct panfrost_device *dev = pan_device(batch->ctx->base.screen);
+
         /* Check if we even need tiling */
-        if (!batch->tiler_dep)
+        if (dev->quirks & IS_BIFROST || !batch->tiler_dep)
                 return;
 
         /* Okay, we do. Let's generate it. We'll need the job's polygon list



More information about the mesa-commit mailing list