mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
asahi: support sparse in virtgpu
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
parent
175b3bd4b1
commit
e34443205f
1 changed files with 2 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ agx_virtio_bo_bind(struct agx_device *dev, struct agx_bo *bo, uint64_t addr,
|
|||
.op = unbind ? ASAHI_BIND_OP_UNBIND : ASAHI_BIND_OP_BIND,
|
||||
.flags = flags,
|
||||
.vm_id = dev->vm_id,
|
||||
.handle = bo->vbo_res_id,
|
||||
.handle = bo ? bo->vbo_res_id : 0,
|
||||
.offset = offset_B,
|
||||
.range = size_B,
|
||||
.addr = addr,
|
||||
|
|
@ -140,7 +140,7 @@ agx_virtio_bo_bind(struct agx_device *dev, struct agx_bo *bo, uint64_t addr,
|
|||
int ret = vdrm_send_req(dev->vdrm, &req.hdr, false);
|
||||
if (ret) {
|
||||
fprintf(stderr, "ASAHI_CCMD_GEM_BIND failed: %d (handle=%d)\n", ret,
|
||||
bo->handle);
|
||||
bo ? bo->handle : 0);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue