Skip to content

Commit

Permalink
Address heap allocation issues in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aitor-lunarg committed Oct 21, 2024
1 parent 148967d commit 20f34fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKDeviceMemory.mm
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
requiresDedicated = requiresDedicated || mvkIsAnyFlagEnabled(xmProps.externalMemoryFeatures, VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT);

// Make sure allocation happens at creation time since we may need to export the memory before usage
ensureMTLBuffer();
ensureMTLHeap();
}
if (mvkIsAnyFlagEnabled(_externalMemoryHandleType, VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLBUFFER_BIT_EXT)) {
auto& xmProps = getPhysicalDevice()->getExternalBufferProperties(VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLBUFFER_BIT_EXT);
Expand Down

0 comments on commit 20f34fd

Please sign in to comment.