hk: unbind VAs
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
committed by
Marge Bot
parent
1e043ed67d
commit
1114fbcdb7
@@ -113,7 +113,7 @@ agx_bo_bind(struct agx_device *dev, struct agx_bo *bo, uint64_t addr,
|
||||
struct drm_asahi_gem_bind gem_bind = {
|
||||
.op = unbind ? ASAHI_BIND_OP_UNBIND : ASAHI_BIND_OP_BIND,
|
||||
.flags = flags,
|
||||
.handle = bo->handle,
|
||||
.handle = bo ? bo->handle : 0,
|
||||
.vm_id = dev->vm_id,
|
||||
.offset = offset_B,
|
||||
.range = size_B,
|
||||
|
||||
@@ -141,8 +141,10 @@ hk_DestroyBuffer(VkDevice device, VkBuffer _buffer,
|
||||
return;
|
||||
|
||||
if (buffer->va) {
|
||||
// TODO
|
||||
// agx_bo_unbind_vma(dev->ws_dev, buffer->addr, buffer->vma_size_B);
|
||||
/* Unbind the VA */
|
||||
dev->dev.ops.bo_bind(&dev->dev, NULL, buffer->addr, buffer->va->size_B, 0,
|
||||
0, true);
|
||||
|
||||
agx_va_free(&dev->dev, buffer->va);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user