vulkan/runtime: Add object type to DMR API

radv: Update DMR usage to make use of object type arg

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33767>
This commit is contained in:
Lucas Fryzek 2025-03-03 14:55:42 +00:00 committed by Marge Bot
parent 92638e543b
commit cfcc522bf8
3 changed files with 4 additions and 2 deletions

View file

@ -42,7 +42,7 @@ radv_device_memory_emit_report(struct radv_device *device,
}
vk_emit_device_memory_report(&device->vk, type, mem->bo->obj_id, mem->bo->size,
(uintptr_t)(mem), mem->heap_index);
VK_OBJECT_TYPE_DEVICE_MEMORY, (uintptr_t)(mem), mem->heap_index);
}
void

View file

@ -126,6 +126,7 @@ vk_emit_device_memory_report(struct vk_device* device,
VkDeviceMemoryReportEventTypeEXT type,
uint64_t mem_obj_id,
VkDeviceSize size,
VkObjectType obj_type,
uint64_t obj_handle,
uint32_t heap_index)
{
@ -136,7 +137,7 @@ vk_emit_device_memory_report(struct vk_device* device,
.type = type,
.memoryObjectId = mem_obj_id,
.size = size,
.objectType = VK_OBJECT_TYPE_DEVICE_MEMORY,
.objectType = obj_type,
.objectHandle = obj_handle,
.heapIndex = heap_index,
};

View file

@ -73,6 +73,7 @@ vk_emit_device_memory_report(struct vk_device* device,
VkDeviceMemoryReportEventTypeEXT type,
uint64_t mem_obj_id,
VkDeviceSize size,
VkObjectType obj_type,
uint64_t obj_handle,
uint32_t heap_index);