mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 23:42:16 -05:00
Vulkan: Fix compilation warning in VMA.
This commit is contained in:
parent
99520a79b6
commit
5d9971bc63
3 changed files with 18 additions and 3 deletions
15
extern/vulkan_memory_allocator/patches/remove_compilation_warning.diff
vendored
Normal file
15
extern/vulkan_memory_allocator/patches/remove_compilation_warning.diff
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/extern/vulkan_memory_allocator/vk_mem_alloc.h b/extern/vulkan_memory_allocator/vk_mem_alloc.h
|
||||||
|
index 60f572038c0..63a9994ba46 100644
|
||||||
|
--- a/extern/vulkan_memory_allocator/vk_mem_alloc.h
|
||||||
|
+++ b/extern/vulkan_memory_allocator/vk_mem_alloc.h
|
||||||
|
@@ -13371,8 +13371,8 @@ bool VmaDefragmentationContext_T::IncrementCounters(VkDeviceSize bytes)
|
||||||
|
// Early return when max found
|
||||||
|
if (++m_PassStats.allocationsMoved >= m_MaxPassAllocations || m_PassStats.bytesMoved >= m_MaxPassBytes)
|
||||||
|
{
|
||||||
|
- VMA_ASSERT(m_PassStats.allocationsMoved == m_MaxPassAllocations ||
|
||||||
|
- m_PassStats.bytesMoved == m_MaxPassBytes && "Exceeded maximal pass threshold!");
|
||||||
|
+ VMA_ASSERT((m_PassStats.allocationsMoved == m_MaxPassAllocations ||
|
||||||
|
+ m_PassStats.bytesMoved == m_MaxPassBytes) && "Exceeded maximal pass threshold!");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
|
@ -13371,8 +13371,8 @@ bool VmaDefragmentationContext_T::IncrementCounters(VkDeviceSize bytes)
|
||||||
// Early return when max found
|
// Early return when max found
|
||||||
if (++m_PassStats.allocationsMoved >= m_MaxPassAllocations || m_PassStats.bytesMoved >= m_MaxPassBytes)
|
if (++m_PassStats.allocationsMoved >= m_MaxPassAllocations || m_PassStats.bytesMoved >= m_MaxPassBytes)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(m_PassStats.allocationsMoved == m_MaxPassAllocations ||
|
VMA_ASSERT((m_PassStats.allocationsMoved == m_MaxPassAllocations ||
|
||||||
m_PassStats.bytesMoved == m_MaxPassBytes && "Exceeded maximal pass threshold!");
|
m_PassStats.bytesMoved == m_MaxPassBytes) && "Exceeded maximal pass threshold!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d5a1cc672121237f7ce7b85383f4bd6457678f64
|
Subproject commit e133fc08cd3254bb3d3bd1345028c8486700bca4
|
Loading…
Reference in a new issue