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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user