On systems with DPI scaling enabled the thread should
be high-DPI aware to create windows, that could be used for
exlusive full-screen swapchains with application control.
Components: Vulkan, Framework
VK-GL-CTS Issue: 2558
Affects: dEQP-VK.wsi.win32.full_screen_exclusive.application_controlled
Change-Id: Ibfedb804d902ef41eafcb10cde0d3c2d8e281797
// Set process priority to lower.
SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
+
+ // Set process to be DPI aware
+ // This is requried for VK tests that manually enter exclusive mode
+ // using VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT
+ if (SetProcessDPIAware() == 0)
+ {
+ TCU_FAIL("SetProcessDPIAware function failed");
+ }
+
{
wgl::ContextFactory* factory = DE_NULL;