diff options
author | Mike Schuchardt <mikes@lunarg.com> | 2019-07-21 14:18:44 -0700 |
---|---|---|
committer | Mike Schuchardt <mikes@lunarg.com> | 2019-07-22 11:34:24 -0700 |
commit | 9375e6c3b784aa9eef1dfe787e222cb8a2765b03 (patch) | |
tree | f0960ba92235de55b13705dbd30b480e37cca775 | |
parent | fb1fd1d63eb20cc6f922228f04d8b96cec452b46 (diff) | |
download | vulkan-tools-9375e6c3b784aa9eef1dfe787e222cb8a2765b03.tar.gz |
scripts: Add required depth/stencil resolve props
Spec mandates that at least VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR be
supported for supportedDepthResolveModes and
supportedStencilResolveModes
-rw-r--r-- | scripts/mock_icd_generator.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 48d9465f..49fe2611 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -795,6 +795,13 @@ CUSTOM_C_INTERCEPTS = { VkPhysicalDevicePushDescriptorPropertiesKHR* write_props = (VkPhysicalDevicePushDescriptorPropertiesKHR*)push_descriptor_props; write_props->maxPushDescriptors = 256; } + + const auto *depth_stencil_resolve_props = lvl_find_in_chain<VkPhysicalDeviceDepthStencilResolvePropertiesKHR>(pProperties->pNext); + if (depth_stencil_resolve_props) { + VkPhysicalDeviceDepthStencilResolvePropertiesKHR* write_props = (VkPhysicalDeviceDepthStencilResolvePropertiesKHR*)depth_stencil_resolve_props; + write_props->supportedDepthResolveModes = VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR; + write_props->supportedStencilResolveModes = VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR; + } ''', 'vkGetPhysicalDeviceExternalSemaphoreProperties':''' // Hard code support for all handle types and features |