Skip to content

Commit 29b35ea

Browse files
Merge pull request #468 from IAmNotHanni/master
Small maintenance
2 parents c83fdd2 + dccce71 commit 29b35ea

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/SparseBindingTest.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,6 @@ void SparseBindingImage::Init(RandomNumberGenerator& rand)
470470
VkMemoryRequirements imageMemReq;
471471
vkGetImageMemoryRequirements(g_hDevice, m_Image, &imageMemReq);
472472

473-
// This is just to silence validation layer warning.
474-
// But it doesn't help. Looks like a bug in Vulkan validation layers.
475-
// See: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/364
476-
uint32_t sparseMemReqCount = 0;
477-
vkGetImageSparseMemoryRequirements(g_hDevice, m_Image, &sparseMemReqCount, nullptr);
478-
TEST(sparseMemReqCount <= 8);
479-
VkSparseImageMemoryRequirements sparseMemReq[8];
480-
vkGetImageSparseMemoryRequirements(g_hDevice, m_Image, &sparseMemReqCount, sparseMemReq);
481-
482473
// According to Vulkan specification, for sparse resources memReq.alignment is also page size.
483474
const VkDeviceSize pageSize = imageMemReq.alignment;
484475
const uint32_t pageCount = (uint32_t)ceil_div<VkDeviceSize>(imageMemReq.size, pageSize);

src/Tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@ static void TestMemoryRequirements()
32023202

32033203
static void TestGetAllocatorInfo()
32043204
{
3205-
wprintf(L"Test vnaGetAllocatorInfo\n");
3205+
wprintf(L"Test vmaGetAllocatorInfo\n");
32063206

32073207
VmaAllocatorInfo allocInfo = {};
32083208
vmaGetAllocatorInfo(g_hAllocator, &allocInfo);

0 commit comments

Comments
 (0)