Lines Matching refs:testParams
755 tcu::TestStatus presentFenceTest(Context& context, const PresentFenceTestConfig testParams)
760 const deUint32 surfaceCount = (deUint32)testParams.modes.size();
761 const InstanceHelper instHelper (context, testParams.wsiType, testParams.bindImageMemory);
762 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, surfaceCount);
766 surfaces.push_back(createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[i], context.getTestContext().getCommandLine()));
769 const DeviceHelper devHelper (context, instHelper.vki, instHelper.instance, *surfaces[0], true, testParams.bindImageMemory);
776 if (std::find(presentModes.begin(), presentModes.end(), testParams.modes[i]) == presentModes.end())
788 isSharedPresentMode[i] = testParams.modes[i] == VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR ||
789 testParams.modes[i] == VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR;
807 swapchainInfo.push_back(getBasicSwapchainParameters(*surfaces[i], surfaceFormats[0], native.windowSize, testParams.modes[i], transform, isSharedPresentMode[i] ? 1 : capabilities.minImageCount, testParams.deferMemoryAllocation));
816 if (testParams.changePresentModes)
818 compatiblePresentModes.push_back(getSurfaceCompatiblePresentModes(instHelper.vki, devHelper.physicalDevice, *surfaces[i], testParams.modes[i]));
828 if (testParams.bindImageMemory)
835 if (testParams.deferMemoryAllocation)
856 const deUint32 iterations = getIterations(testParams.modes, compatiblePresentModes, false);
877 (deUint32)testParams.wsiType |
878 (deUint32)testParams.modes[0] << 4 |
879 (deUint32)testParams.deferMemoryAllocation << 28 |
880 (deUint32)testParams.bindImageMemory << 29 |
881 (deUint32)testParams.changePresentModes << 30 |
882 (deUint32)testParams.verifyFenceOrdering << 31;
922 DE_ASSERT(testParams.bindImageMemory && testParams.deferMemoryAllocation);
1013 if (testParams.changePresentModes && rng.getUint32() % 10 != 0)
1056 if (testParams.verifyFenceOrdering)
1064 if (testParams.verifyFenceOrdering)
1181 tcu::TestStatus presentModesQueryTest(Context& context, const PresentModesTestConfig testParams)
1183 const InstanceHelper instHelper (context, testParams.wsiType, false);
1184 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, 1);
1185 Unique<VkSurfaceKHR> surface (createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[0], context.getTestContext().getCommandLine()));
1189 if (std::find(presentModes.begin(), presentModes.end(), testParams.mode) == presentModes.end())
1197 testParams.mode,
1256 tcu::TestStatus status = verifyCompatiblePresentModes(presentModes, testParams.mode, compatibleModes, nullptr);
1271 status = verifyCompatiblePresentModes(presentModes, testParams.mode, compatibleModes2, &compatibleModes);
1294 status = verifyCompatiblePresentModes(presentModes, testParams.mode, compatibleModes3, &compatibleModes2);
1436 tcu::TestStatus scalingQueryTest(Context& context, const ScalingQueryTestConfig testParams)
1438 const InstanceHelper instHelper (context, testParams.wsiType, false);
1439 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, 1);
1440 Unique<VkSurfaceKHR> surface (createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[0], context.getTestContext().getCommandLine()));
1444 VkSurfacePresentScalingCapabilitiesEXT scaling = getSurfaceScalingCapabilities(instHelper.vki, devHelper.physicalDevice, testParams.mode, *surface);
1461 tcu::TestStatus scalingQueryCompatibleModesTest(Context& context, const ScalingQueryTestConfig testParams)
1463 const InstanceHelper instHelper (context, testParams.wsiType, false);
1464 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, 1);
1465 Unique<VkSurfaceKHR> surface (createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[0], context.getTestContext().getCommandLine()));
1473 testParams.mode,
1521 tcu::TestStatus scalingTest(Context& context, const ScalingTestConfig testParams)
1523 const InstanceHelper instHelper (context, testParams.wsiType, false);
1524 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, 1);
1525 Unique<VkSurfaceKHR> surface (createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[0], context.getTestContext().getCommandLine()));
1540 if (std::find(presentModes.begin(), presentModes.end(), testParams.mode) == presentModes.end())
1544 VkSurfacePresentScalingCapabilitiesEXT scaling = getSurfaceScalingCapabilities(instHelper.vki, devHelper.physicalDevice, testParams.mode, *surface);
1546 if ((scaling.supportedPresentScaling & testParams.scaling) == 0)
1548 if (testParams.scaling != VK_PRESENT_SCALING_STRETCH_BIT_EXT)
1550 if ((scaling.supportedPresentGravityX & testParams.gravityX) == 0)
1552 if ((scaling.supportedPresentGravityY & testParams.gravityY) == 0)
1557 if (!testParams.resizeWindow)
1559 switch (testParams.size)
1572 switch (testParams.aspect)
1585 VkSwapchainCreateInfoKHR swapchainInfo = getBasicSwapchainParameters(*surface, surfaceFormats[0], swapchainSize, testParams.mode, transform, capabilities.minImageCount, false);
1591 testParams.scaling,
1592 testParams.gravityX,
1593 testParams.gravityY,
1604 // Do testParams.iterations presents, with a fence associated with the last one.
1623 if (testParams.resizeWindow)
1625 switch (testParams.size)
1638 switch (testParams.aspect)
1999 tcu::TestStatus releaseImagesTest(Context& context, const ReleaseImagesTestConfig testParams)
2001 const InstanceHelper instHelper (context, testParams.wsiType, false);
2002 const TestNativeObjects native (context, instHelper.supportedExtensions, testParams.wsiType, 1);
2003 Unique<VkSurfaceKHR> surface (createSurface(instHelper.vki, instHelper.instance, testParams.wsiType, *native.display, *native.windows[0], context.getTestContext().getCommandLine()));
2013 const VkSurfaceCapabilitiesKHR capabilities = getPerPresentSurfaceCapabilities(instHelper.vki, devHelper.physicalDevice, *surface, testParams.mode);
2017 if (std::find(presentModes.begin(), presentModes.end(), testParams.mode) == presentModes.end())
2020 if (testParams.scaling != 0)
2023 VkSurfacePresentScalingCapabilitiesEXT scaling = getSurfaceScalingCapabilities(instHelper.vki, devHelper.physicalDevice, testParams.mode, *surface);
2025 if ((scaling.supportedPresentScaling & testParams.scaling) == 0)
2029 const bool isSharedPresentMode = testParams.mode == VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR || testParams.mode == VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR;
2039 VkSwapchainCreateInfoKHR swapchainInfo = getBasicSwapchainParameters(*surface, surfaceFormats[0], native.windowSize, testParams.mode, transform, imageCount, false);
2045 testParams.scaling,
2056 const deUint32 iterations = getIterations({testParams.mode}, {}, testParams.resizeWindow != ResizeWindow::No);
2058 // Do testParams.iterations presents, with a fence associated with the last one.
2077 (deUint32)testParams.wsiType |
2078 (deUint32)testParams.mode << 4 |
2079 (deUint32)testParams.scaling << 24 |
2080 (deUint32)testParams.resizeWindow << 28 |
2081 (deUint32)testParams.releaseBeforePresent << 30 |
2082 (deUint32)testParams.releaseBeforeRetire << 31;
2093 const bool doResize = testParams.resizeWindow != ResizeWindow::No && rng.getUint32() % 10 != 0;
2097 if (doResize && testParams.resizeWindow == ResizeWindow::BeforeAcquire)
2145 if (doResize && testParams.resizeWindow == ResizeWindow::BeforePresent)
2221 if (testParams.releaseBeforePresent)
2254 if (!imagesReleased && testParams.releaseBeforeRetire)
2263 if (!imagesReleased && !testParams.releaseBeforeRetire)