Skip to content

Commit c2b2c8b

Browse files
committed
tests: Fix test ICD compatibility issues
1 parent 13ea82a commit c2b2c8b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/icd/test_icd.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,13 @@ static VKAPI_ATTR void VKAPI_CALL DestroyDevice(VkDevice device, const VkAllocat
549549
}
550550
command_pool_map[device].clear();
551551

552+
#ifdef VULKANSC
553+
// Vulkan SC does not support vkFreeMemory therefore all mapped memory is implicitly unmapped during device destruction
554+
for (auto it : mapped_memory_map) {
555+
UnmapMemory(device, it.first);
556+
}
557+
#endif // VULKANSC
558+
552559
queue_map.erase(device);
553560
buffer_map.erase(device);
554561
image_memory_size_map.erase(device);
@@ -1754,6 +1761,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceCooperativeMatrixProperti
17541761
}
17551762
#endif // VULKANSC
17561763

1764+
#ifndef VULKANSC // Vulkan SC does not support VK_NV_cooperative_vector
17571765
static VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceCooperativeVectorPropertiesNV(VkPhysicalDevice physicalDevice,
17581766
uint32_t* pPropertyCount,
17591767
VkCooperativeVectorPropertiesNV* pProperties) {
@@ -1798,6 +1806,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceCooperativeVectorProperti
17981806
}
17991807
return VK_SUCCESS;
18001808
}
1809+
#endif // VULKANSC
18011810

18021811
static VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceCalibrateableTimeDomainsKHR(VkPhysicalDevice physicalDevice,
18031812
uint32_t* pTimeDomainCount,

0 commit comments

Comments
 (0)