mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
Fixed bug in VmaBlockMetadata_Generic::IsBufferImageGranularityConflictPossible. Another minor fix.
This commit is contained in:
parent
0eeed59309
commit
2af57d7f47
@ -1158,7 +1158,7 @@ static void RecreateAllocationResource(AllocInfo& allocation)
|
||||
// Just to silence validation layer warnings.
|
||||
VkMemoryRequirements vkMemReq;
|
||||
vkGetBufferMemoryRequirements(g_hDevice, allocation.m_Buffer, &vkMemReq);
|
||||
TEST(vkMemReq.size == allocation.m_BufferInfo.size);
|
||||
TEST(vkMemReq.size >= allocation.m_BufferInfo.size);
|
||||
|
||||
res = vkBindBufferMemory(g_hDevice, allocation.m_Buffer, allocInfo.deviceMemory, allocInfo.offset);
|
||||
TEST(res == VK_SUCCESS);
|
||||
|
@ -8329,7 +8329,7 @@ bool VmaBlockMetadata_Generic::IsBufferImageGranularityConflictPossible(
|
||||
}
|
||||
}
|
||||
|
||||
return !typeConflictFound || minAlignment >= bufferImageGranularity;
|
||||
return typeConflictFound || minAlignment >= bufferImageGranularity;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user