From 5fbb00dbc7558153eee5f3ca4d2fb5492bb424ff Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Thu, 25 Jan 2024 14:26:56 -0800 Subject: [PATCH] venus: use obj handle instead of id in device memory report Now the id is separately assigned in venus, while the test expects handle. Fixes: 7f9381782f9 ("venus: ensure object id is unique") Signed-off-by: Yiwei Zhang Part-of: --- src/virtio/vulkan/vn_device_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtio/vulkan/vn_device_memory.c b/src/virtio/vulkan/vn_device_memory.c index d6a88e61d5e..3b6fa1b53a2 100644 --- a/src/virtio/vulkan/vn_device_memory.c +++ b/src/virtio/vulkan/vn_device_memory.c @@ -544,7 +544,7 @@ vn_device_memory_emit_report(struct vn_device *dev, .memoryTypes[mem_vk->memory_type_index]; vn_device_emit_device_memory_report(dev, type, mem_obj_id, mem_vk->size, VK_OBJECT_TYPE_DEVICE_MEMORY, - mem->base.id, mem_type->heapIndex); + (uintptr_t)mem, mem_type->heapIndex); } VkResult