Memory Allocation Errors using TpvVulkanAllocationManager #28

Open
opened 2022-11-08 21:49:00 +00:00 by johnhutch111 · 0 comments
johnhutch111 commented 2022-11-08 21:49:00 +00:00 (Migrated from github.com)

I have a number of tests including a build of render framework, render, free Render frame work then rebuild the framework. The second build raises exceptions via an invalid FreeMem in the TpvVulkanAllocationManager. The errors do not occur when using the Vulkan internal memory allocation.

I notice you assume the Delphi default 8 byte alignment in the allocation. I see Vulkan requests alignment on 4 bytes and 8 bytes. Given 8 bytes aligned is also 4 and 2 bytes aligned, this should be OK. I have not seen a 16 byte alignment request.

Maybe the alignment should be set to default 16 bytes? Will this change in 64bit?
Is it possible that this is causing the error cases??

I have a number of tests including a build of render framework, render, free Render frame work then rebuild the framework. The second build raises exceptions via an invalid FreeMem in the TpvVulkanAllocationManager. The errors do not occur when using the Vulkan internal memory allocation. I notice you assume the Delphi default 8 byte alignment in the allocation. I see Vulkan requests alignment on 4 bytes and 8 bytes. Given 8 bytes aligned is also 4 and 2 bytes aligned, this should be OK. I have not seen a 16 byte alignment request. Maybe the alignment should be set to default 16 bytes? Will this change in 64bit? Is it possible that this is causing the error cases??
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/pasvulkan#28
No description provided.