diff --git a/src/amd/vulkan/radv_device_memory.c b/src/amd/vulkan/radv_device_memory.c index ef9a84a9b60..e23daefd9d0 100644 --- a/src/amd/vulkan/radv_device_memory.c +++ b/src/amd/vulkan/radv_device_memory.c @@ -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 diff --git a/src/vulkan/runtime/vk_debug_utils.c b/src/vulkan/runtime/vk_debug_utils.c index fc6bd34e940..fb64dea0188 100644 --- a/src/vulkan/runtime/vk_debug_utils.c +++ b/src/vulkan/runtime/vk_debug_utils.c @@ -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, }; diff --git a/src/vulkan/runtime/vk_debug_utils.h b/src/vulkan/runtime/vk_debug_utils.h index b419325f8ed..bd48be30149 100644 --- a/src/vulkan/runtime/vk_debug_utils.h +++ b/src/vulkan/runtime/vk_debug_utils.h @@ -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);