mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 13:58:31 +02:00
tu: fix to report device memory with heapIndex
The report data requires VkDeviceMemoryReportCallbackDataEXT::heapIndex
instead of memory type index. Meanwhile, turnip only supports a single
tu_memory_heap and doesn't have a type-to-heap mapping. So here we fix
to report constant 0 for heapIndex.
Fixes: 6d69d7e6bf ("tu: Implement VK_EXT_device_memory_report")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41974>
This commit is contained in:
parent
02fd326b4a
commit
bff4e7e4c1
1 changed files with 2 additions and 2 deletions
|
|
@ -3532,7 +3532,7 @@ tu_memory_emit_report(struct tu_device *device,
|
|||
&device->vk, VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT,
|
||||
/* mem_obj_id */ 0, alloc_info->allocationSize,
|
||||
VK_OBJECT_TYPE_DEVICE_MEMORY,
|
||||
/* obj_handle */ 0, alloc_info->memoryTypeIndex);
|
||||
/* obj_handle */ 0, /* heap_index */ 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -3549,7 +3549,7 @@ tu_memory_emit_report(struct tu_device *device,
|
|||
|
||||
vk_emit_device_memory_report(&device->vk, type, mem->bo->unique_id,
|
||||
mem->bo->size, VK_OBJECT_TYPE_DEVICE_MEMORY,
|
||||
(uintptr_t)(mem), mem->vk.memory_type_index);
|
||||
(uintptr_t)(mem), /* heap_index */ 0);
|
||||
}
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue