Mesa (master): panfrost: Avoid wait=true flushing all batches

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 21 14:25:18 UTC 2020


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Jul 20 11:44:10 2020 -0400

panfrost: Avoid wait=true flushing all batches

What is intended is to flush the batches and wait on a particular BO at
a later time. Explicitly forcing a wait immediately is redundant.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5995>

---

 src/gallium/drivers/panfrost/pan_compute.c | 2 +-
 src/gallium/drivers/panfrost/pan_context.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c
index 2fd45859855..c0009cad437 100644
--- a/src/gallium/drivers/panfrost/pan_compute.c
+++ b/src/gallium/drivers/panfrost/pan_compute.c
@@ -135,7 +135,7 @@ panfrost_launch_grid(struct pipe_context *pipe,
         panfrost_new_job(&batch->pool, &batch->scoreboard,
                         JOB_TYPE_COMPUTE, true, 0, &payload,
                          sizeof(payload), false);
-        panfrost_flush_all_batches(ctx, true);
+        panfrost_flush_all_batches(ctx, false);
 }
 
 static void
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 5d84322109d..fba1d3bae4d 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -1417,7 +1417,7 @@ panfrost_get_query_result(struct pipe_context *pipe,
 
         case PIPE_QUERY_PRIMITIVES_GENERATED:
         case PIPE_QUERY_PRIMITIVES_EMITTED:
-                panfrost_flush_all_batches(ctx, true);
+                panfrost_flush_all_batches(ctx, false);
                 vresult->u64 = query->end - query->start;
                 break;
 



More information about the mesa-commit mailing list