|
|
@@ -26,15 +26,15 @@ ANKI_TEST(Renderer, TileAllocator)
|
|
|
|
|
|
// Allocate 1 med
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 1, 0, dcCount, 1, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
|
|
|
// Allocate 3 big
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 2, 0, dcCount, 2, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 3, 0, dcCount, 2, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 4, 0, dcCount, 2, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
|
|
|
// Fail to allocate 1 big
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 5, 0, dcCount, 2, viewport);
|
|
|
@@ -42,11 +42,11 @@ ANKI_TEST(Renderer, TileAllocator)
|
|
|
|
|
|
// Allocate 3 med
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 1, 1, dcCount, 1, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 1, 2, dcCount, 1, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 1, 3, dcCount, 1, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
|
|
|
// Fail to allocate a small
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 6, 0, dcCount, 0, viewport);
|
|
|
@@ -57,17 +57,17 @@ ANKI_TEST(Renderer, TileAllocator)
|
|
|
|
|
|
// Allocate 3 big again
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 2, 0, dcCount + 1, 2, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 3, 0, dcCount, 2, viewport);
|
|
|
ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::CACHED);
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 4, 0, dcCount + 1, 2, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
|
|
|
// Allocate 16 small
|
|
|
for(U i = 0; i < 16; ++i)
|
|
|
{
|
|
|
res = talloc.allocate(crntTimestamp, lightTimestamp, lightUuid + 6 + i, 0, dcCount, 0, viewport);
|
|
|
- ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEDDED);
|
|
|
+ ANKI_TEST_EXPECT_EQ(res, TileAllocatorResult::ALLOCATION_SUCCEEDED);
|
|
|
}
|
|
|
}
|
|
|
|