asahi: Add agx_bo_mmap() calls to transfer path

We have the prototype for this already.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662>
This commit is contained in:
Asahi Lina 2023-03-01 18:58:13 +09:00 committed by Marge Bot
parent 3716f72413
commit f1dac37b3d

View file

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