From f1dac37b3da2eb766704ce65a78e10a09373f9eb Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 1 Mar 2023 18:58:13 +0900 Subject: [PATCH] asahi: Add agx_bo_mmap() calls to transfer path We have the prototype for this already. Signed-off-by: Asahi Lina Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index c9ef4579b45..78c486677f4 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -797,9 +797,12 @@ agx_transfer_map(struct pipe_context *pctx, struct pipe_resource *resource, agx_flush_writer(ctx, staging, "GPU read staging blit"); } + agx_bo_mmap(staging->bo); return staging->bo->ptr.cpu; } + agx_bo_mmap(rsrc->bo); + if (rsrc->modifier == DRM_FORMAT_MOD_APPLE_TWIDDLED) { transfer->base.stride = util_format_get_stride(rsrc->layout.format, box->width);