mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
3716f72413
commit
f1dac37b3d
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue