Skip to content
Commit 594cb04b authored by Sandeep Shinde's avatar Sandeep Shinde Committed by Lenny Komow
Browse files

loader: Fix VK_KHR_surface_protected_capabilities

Loader is exposing VK_KHR_surface_protected_capabilities instance
extension support if one of the ICDs supports it.

An ICD, not supporting this extension, will not know about
VkSurfaceProtectedCapabilitiesKHR being passed as additional structure
to VkPhysicalDeviceSurfaceInfo2KHR in vulkan API
vkGetPhysicalDeviceSurfaceCapabilities2KHR().

Reset VkSurfaceProtectedCapabilitiesKHR.supportsProtected to false
always before calling vkGetPhysicalDeviceSurfaceCapabilities2KHR(). If
a particular ICD supports protected surfaces then it will set it
true.

An application will always receive either 1/0 in supportsProtected as
expected.

The issue got exposed through below CTS test failure on a Optimus windows
system with different ICDs versions, one supporting this extension and
another not supporting it.

- dEQP-VK.wsi.win32.surface.query_protected_capabilities
parent 232d005a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment