Skip to content

Memory Allocation Errors using TpvVulkanAllocationManager #28

@johnhutch111

Description

@johnhutch111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions