diff options
| author | spencer-lunarg <spencer@lunarg.com> | 2022-11-28 15:34:49 +0900 |
|---|---|---|
| committer | Spencer Fricke <115671160+spencer-lunarg@users.noreply.github.com> | 2022-11-28 16:31:52 +0900 |
| commit | 0a122e62b8f62dd52b7731b58c1385312f2834aa (patch) | |
| tree | 4cffc18b978fe349c1fd2e04d8bc9ba8640c80d3 /scripts | |
| parent | ec541c410e94f690c734128d2a8414f21f98b966 (diff) | |
| download | usermoji-0a122e62b8f62dd52b7731b58c1385312f2834aa.tar.xz | |
icd: Set MockICD driver version to header version
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index bf366fea..ec7cddd8 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -55,7 +55,6 @@ SOURCE_CPP_PREFIX = ''' using std::unordered_map; static constexpr uint32_t icd_physical_device_count = 1; -static constexpr uint32_t kSupportedVulkanAPIVersion = VK_API_VERSION_1_1; static unordered_map<VkInstance, std::array<VkPhysicalDevice, icd_physical_device_count>> physical_device_map; // Map device memory handle to any mapped allocations that we'll need to free on unmap @@ -535,7 +534,7 @@ CUSTOM_C_INTERCEPTS = { return VK_SUCCESS; ''', 'vkEnumerateInstanceVersion': ''' - *pApiVersion = kSupportedVulkanAPIVersion; + *pApiVersion = VK_HEADER_VERSION_COMPLETE; return VK_SUCCESS; ''', 'vkEnumerateDeviceLayerProperties': ''' @@ -805,8 +804,7 @@ CUSTOM_C_INTERCEPTS = { return VK_SUCCESS; ''', 'vkGetPhysicalDeviceProperties': ''' - // TODO: Just hard-coding some values for now - pProperties->apiVersion = kSupportedVulkanAPIVersion; + pProperties->apiVersion = VK_HEADER_VERSION_COMPLETE; pProperties->driverVersion = 1; pProperties->vendorID = 0xba5eba11; pProperties->deviceID = 0xf005ba11; |
