From 9375e6c3b784aa9eef1dfe787e222cb8a2765b03 Mon Sep 17 00:00:00 2001 From: Mike Schuchardt Date: Sun, 21 Jul 2019 14:18:44 -0700 Subject: 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 --- scripts/mock_icd_generator.py | 7 +++++++ 1 file changed, 7 insertions(+) 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(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 -- cgit v1.2.3