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:
Lionel Landwerlin 2025-03-06 13:27:00 +02:00 committed by Marge Bot
parent 73da0dcddc
commit 4082e22676

View file

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