Mesa (main): panfrost: Don't add blit context BOs twice

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 5 05:56:28 UTC 2021


Module: Mesa
Branch: main
Commit: 3cdbc1e8c0e854f9266e0a1a1ec668f1ed2aeb74
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cdbc1e8c0e854f9266e0a1a1ec668f1ed2aeb74

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Wed Jun  2 09:49:24 2021 +0200

panfrost: Don't add blit context BOs twice

The transient_bo has already been added to the BO list, no need to call
panfrost_batch_add_bo() a second time on the same BO.

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

---

 src/gallium/drivers/panfrost/pan_blit.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c
index c49f8210a18..78da23a4918 100644
--- a/src/gallium/drivers/panfrost/pan_blit.c
+++ b/src/gallium/drivers/panfrost/pan_blit.c
@@ -91,14 +91,6 @@ static void
 panfrost_blit_add_ctx_bos(struct panfrost_batch *batch,
                           struct pan_blit_context *ctx)
 {
-        if (ctx->pool.transient_bo) {
-                panfrost_batch_add_bo(batch, ctx->pool.transient_bo,
-                                      PAN_BO_ACCESS_SHARED |
-                                      PAN_BO_ACCESS_READ |
-                                      PAN_BO_ACCESS_VERTEX_TILER |
-                                      PAN_BO_ACCESS_FRAGMENT);
-        }
-
         util_dynarray_foreach(&ctx->pool.bos, struct panfrost_bo *, bo) {
                 panfrost_batch_add_bo(batch, *bo,
                                       PAN_BO_ACCESS_SHARED |



More information about the mesa-commit mailing list