From: Mike Schuchardt Date: Sun, 21 Jul 2019 21:18:44 +0000 (-0700) Subject: scripts: Add required depth/stencil resolve props X-Git-Tag: upstream/1.2.179~240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9375e6c3b784aa9eef1dfe787e222cb8a2765b03;p=platform%2Fupstream%2FVulkan-Tools.git 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 --- diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 48d9465..49fe261 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