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);