pasvulkan icon indicating copy to clipboard operation
pasvulkan copied to clipboard

Memory Allocation Errors using TpvVulkanAllocationManager

Open johnhutch111 opened this issue 3 years ago • 0 comments

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??

johnhutch111 avatar Nov 08 '22 21:11 johnhutch111