@@ -1642,8 +1642,7 @@ static void Defragment(VmaDefragmentationInfo& defragmentationInfo,
1642
1642
}
1643
1643
TEST (res == VK_SUCCESS);
1644
1644
1645
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, defragmentationStats);
1646
- TEST (res == VK_SUCCESS);
1645
+ vmaEndDefragmentation (g_hAllocator, defragCtx, defragmentationStats);
1647
1646
}
1648
1647
1649
1648
static void ValidateAllocationsData (const AllocInfo* allocs, size_t allocCount)
@@ -1703,8 +1702,7 @@ void TestDefragmentationSimple()
1703
1702
TEST (res == VK_SUCCESS);
1704
1703
1705
1704
VmaDefragmentationStats defragStats = {};
1706
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1707
- TEST (res == VK_SUCCESS);
1705
+ vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1708
1706
TEST (defragStats.allocationsMoved == 0 && defragStats.bytesFreed == 0 &&
1709
1707
defragStats.bytesMoved == 0 && defragStats.deviceMemoryBlocksFreed == 0 );
1710
1708
}
@@ -1818,8 +1816,7 @@ void TestDefragmentationSimple()
1818
1816
}
1819
1817
1820
1818
VmaDefragmentationStats defragStats = {};
1821
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1822
- TEST (res == VK_SUCCESS);
1819
+ vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1823
1820
TEST (defragStats.allocationsMoved == 4 && defragStats.bytesMoved == 4 * BUF_SIZE);
1824
1821
1825
1822
ValidateAllocationsData (allocations.data (), allocations.size ());
@@ -1916,8 +1913,7 @@ void TestDefragmentationSimple()
1916
1913
TEST (res == VK_SUCCESS);
1917
1914
1918
1915
VmaDefragmentationStats defragStats;
1919
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1920
- TEST (res == VK_SUCCESS);
1916
+ vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
1921
1917
1922
1918
ValidateAllocationsData (allocations.data (), allocations.size ());
1923
1919
DestroyAllAllocations (allocations);
@@ -2117,8 +2113,7 @@ void TestDefragmentationAlgorithms()
2117
2113
TEST (res == VK_SUCCESS);
2118
2114
2119
2115
VmaDefragmentationStats defragStats;
2120
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
2121
- TEST (res == VK_SUCCESS);
2116
+ vmaEndDefragmentation (g_hAllocator, defragCtx, &defragStats);
2122
2117
2123
2118
SaveAllocatorStatsToFile ((output + L" _After.json" ).c_str ());
2124
2119
ValidateAllocationsData (allocations.data (), allocations.size ());
@@ -5029,8 +5024,7 @@ static void TestPool_SameSize()
5029
5024
TEST (res == VK_SUCCESS);
5030
5025
5031
5026
VmaDefragmentationStats defragmentationStats;
5032
- res = vmaEndDefragmentation (g_hAllocator, defragCtx, &defragmentationStats);
5033
- TEST (res == VK_SUCCESS);
5027
+ vmaEndDefragmentation (g_hAllocator, defragCtx, &defragmentationStats);
5034
5028
TEST (defragmentationStats.allocationsMoved == 24 );
5035
5029
}
5036
5030
0 commit comments