Module: Mesa Branch: main Commit: f1dac37b3da2eb766704ce65a78e10a09373f9eb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1dac37b3da2eb766704ce65a78e10a09373f9eb
Author: Asahi Lina <[email protected]> Date: Wed Mar 1 18:58:13 2023 +0900 asahi: Add agx_bo_mmap() calls to transfer path We have the prototype for this already. Signed-off-by: Asahi Lina <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662> --- 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);
