diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-11-03 14:52:11 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-11-06 16:29:51 -0700 |
| commit | 41ffa8d6d7e5efd8a2b774030584cf352e282c08 (patch) | |
| tree | 475824b27164cfe25a9b50eeeae86ceb489b2953 /scripts | |
| parent | f665c390ee3958016e130ed2080f6769921b3bb0 (diff) | |
| download | usermoji-41ffa8d6d7e5efd8a2b774030584cf352e282c08.tar.xz | |
icd:Don't return support for Undefined Format
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 606436a4..899a75b1 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -588,8 +588,12 @@ CUSTOM_C_INTERCEPTS = { GetPhysicalDeviceFeatures(physicalDevice, &pFeatures->features); ''', 'vkGetPhysicalDeviceFormatProperties': ''' - // TODO: Just returning full support for everything initially - *pFormatProperties = { 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF }; + if (VK_FORMAT_UNDEFINED == format) { + *pFormatProperties = { 0x0, 0x0, 0x0 }; + } else { + // TODO: Just returning full support for everything initially + *pFormatProperties = { 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF }; + } ''', 'vkGetPhysicalDeviceFormatProperties2KHR': ''' GetPhysicalDeviceFormatProperties(physicalDevice, format, &pFormatProperties->formatProperties); |
