From 0a122e62b8f62dd52b7731b58c1385312f2834aa Mon Sep 17 00:00:00 2001 From: spencer-lunarg Date: Mon, 28 Nov 2022 15:34:49 +0900 Subject: icd: Set MockICD driver version to header version --- scripts/mock_icd_generator.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') 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> 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; -- cgit v1.2.3