Lines Matching defs:modes
379 // Currently there are 6 present modes, 100 should cover all future ones!
574 std::vector<VkPresentModeKHR> modes;
594 // Look at all the modes that will be used by the test.
760 const deUint32 surfaceCount = (deUint32)testParams.modes.size();
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));
818 compatiblePresentModes.push_back(getSurfaceCompatiblePresentModes(instHelper.vki, devHelper.physicalDevice, *surfaces[i], testParams.modes[i]));
856 const deUint32 iterations = getIterations(testParams.modes, compatiblePresentModes, false);
878 (deUint32)testParams.modes[0] << 4 |
1019 // Randomly switch modes. This is randomly not done to test that the driver doens't expect it to be specified every time.
1112 config.modes = std::vector<VkPresentModeKHR>(1, presentModes[presentModeNdx].mode);
1128 config.modes = std::vector<VkPresentModeKHR>(3, presentModes[presentModeNdx].mode);
1159 return tcu::TestStatus::fail("Returned compatible present modes does not include the mode used in the query");
1161 // There should be no duplicates in the returned modes
1166 return tcu::TestStatus::fail("Duplicate mode " + de::toString(compatibleMode) + " returned in list of compatible present modes");
1170 // If provided, the returned list of modes should match the last previous query
1175 return tcu::TestStatus::fail("Different sets of compatible modes returned on re-query (present mode " + de::toString(previousCompatibleMode) + " missing on requery)");
1192 // Get the compatible present modes with the given one.
1267 // Make sure returned modes are valid.
1282 // Make sure returned modes are the same as before.
1326 // Query compatible present modes
1333 config.modes = std::vector<VkPresentModeKHR>(1, presentModes[presentModeNdx].mode);
1339 // Switch between compatible modes
1344 config.modes = std::vector<VkPresentModeKHR>(4, presentModes[presentModeNdx].mode);
1346 // Switch between compatible modes with multiple swapchains
1349 config.modes = std::vector<VkPresentModeKHR>(2, presentModes[presentModeNdx].mode);
1352 // Switch between compatible modes while swapchain uses deferred allocation
1362 // Switch between compatible modes with multiple swapchains in different modes
1365 std::vector<VkPresentModeKHR> modes(3);
1382 modes[0] = presentModes[i].mode;
1383 modes[1] = presentModes[j].mode;
1384 modes[2] = presentModes[k].mode;
1388 config.modes = modes;
1468 // Query compatible present modes, and scaling capabilities for each mode. They must all be identical.
1509 return tcu::TestStatus::fail("Different scaling flags for compatible present modes is not allowed");
1512 return tcu::TestStatus::fail("Different gravity flags (x axis) for compatible present modes is not allowed");
1515 return tcu::TestStatus::fail("Different gravity flags (y axis) for compatible present modes is not allowed");
1826 de::MovePtr<tcu::TestCaseGroup> queryGroup (new tcu::TestCaseGroup(testGroup->getTestContext(), "query", "Query supported scaling modes"));
1829 // Verify compatible present modes have the same scaling capabilities
1952 config.modes = std::vector<VkPresentModeKHR>(1, presentModes[presentModeNdx].mode);
1972 config.modes = std::vector<VkPresentModeKHR>(2, presentModes[presentModeNdx].mode);
2032 return tcu::TestStatus::fail("min and max image count for shared present modes must be 1");
2383 // Change present modes