Fix calculation of OOB bounds on vulkan

This commit is contained in:
baldurk
2025-01-14 15:47:00 +00:00
parent 22e9ef1972
commit 2dee289ff5
2 changed files with 3 additions and 1 deletions
@@ -29,6 +29,8 @@
void GPUAddressRangeTracker::AddTo(const GPUAddressRange &range)
{
RDCASSERT(range.oobEnd >= range.realEnd);
SCOPED_WRITELOCK(addressLock);
// insert ranges ordered by start first, then by size. Ranges with different sizes starting at the
@@ -743,7 +743,7 @@ VkResult WrappedVulkan::vkAllocateMemory(VkDevice device, const VkMemoryAllocate
record->AddChunk(chunk);
record->Length = memSize;
record->memSize = record->Length = memSize;
uint32_t memProps =
m_PhysicalDeviceData.memProps.memoryTypes[info.memoryTypeIndex].propertyFlags;