mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
anv: fill runtime buffer device_address field
Might be useful if the runtime starts using that field. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33917>
This commit is contained in:
parent
73da0dcddc
commit
4082e22676
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ anv_bind_buffer_memory(struct anv_device *device,
|
|||
buffer->address = ANV_NULL_ADDRESS;
|
||||
}
|
||||
|
||||
buffer->vk.device_address = anv_address_physical(buffer->address);
|
||||
|
||||
ANV_RMV(buffer_bind, device, buffer);
|
||||
|
||||
if (bind_status)
|
||||
|
|
@ -242,6 +244,8 @@ VkResult anv_CreateBuffer(
|
|||
vk_buffer_destroy(&device->vk, pAllocator, &buffer->vk);
|
||||
return result;
|
||||
}
|
||||
|
||||
buffer->vk.device_address = anv_address_physical(buffer->address);
|
||||
}
|
||||
|
||||
ANV_RMV(buffer_create, device, false, buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue