mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 22:20:01 +01:00
vk: add verbose memory allocation logs
This commit is contained in:
parent
24cb0aebfb
commit
a5f22ca11d
@ -142,6 +142,8 @@ vk_devmem_t VK_DevMemAllocate(VkMemoryRequirements req, VkMemoryPropertyFlags pr
|
||||
ret.offset = block.offset;
|
||||
ret.mapped = device_memory->map ? device_memory->map + block.offset : NULL;
|
||||
|
||||
gEngine.Con_Reportf("Allocated devmem=%d block=%d offset=%d size=%d\n", device_memory_index, block.index, (int)block.offset, (int)block.size);
|
||||
|
||||
device_memory->refcount++;
|
||||
ret.priv_.devmem = device_memory_index;
|
||||
ret.priv_.block = block.index;
|
||||
@ -157,6 +159,8 @@ void VK_DevMemFree(const vk_devmem_t *mem) {
|
||||
vk_device_memory_t *const device_memory = g_vk_devmem.allocs + mem->priv_.devmem;
|
||||
ASSERT(mem->device_memory == device_memory->device_memory);
|
||||
|
||||
gEngine.Con_Reportf("Freeing devmem=%d block=%d\n", mem->priv_.devmem, mem->priv_.block);
|
||||
|
||||
aloPoolFree(device_memory->allocator, mem->priv_.block);
|
||||
|
||||
device_memory->refcount--;
|
||||
|
Loading…
Reference in New Issue
Block a user