Lines Matching refs:swapchain

701 						const Unique<VkSwapchainKHR>	swapchain	(createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams));
704 << "Creating swapchain succeeded" << TestLog::EndMessage;
713 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams));
716 << "Creating swapchain succeeded" << TestLog::EndMessage;
796 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams));
824 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data);
834 VK_CHECK(devHelper.vkd.setPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], i*i*i + 1));
839 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data);
933 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams, failingAllocator.getCallbacks()));
943 log << TestLog::Message << "Creating swapchain succeeded!" << TestLog::EndMessage;
959 results.addResult(QP_TEST_RESULT_QUALITY_WARNING, "Creating swapchain did not succeed, callback limit exceeded");
1023 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &swapchainInfo));
1025 VK_CHECK(devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &numImages, DE_NULL));
1033 *swapchain
1075 *swapchain,
1086 0u // If swapchain <in VkBindImageMemorySwapchainInfoKHR> is not NULL, the swapchain and imageIndex are used to determine the memory that the image is bound to, instead of memory and memoryOffset.
1230 VkSwapchainKHR swapchain,
1234 , m_swapchain (swapchain)
1270 VkSwapchainKHR swapchain,
1277 m_info.swapchain = swapchain;
1318 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(vkd, device, &swapchainInfo));
1319 const vector<VkImage> swapchainImages = getSwapchainImages(vkd, device, *swapchain);
1321 AcquireWrapperType acquireImageWrapper(vkd, device, 1u, *swapchain, std::numeric_limits<deUint64>::max());
1400 &*swapchain,
1552 vector<Move<VkSwapchainKHR>> swapchain;
1558 swapchain.emplace_back(createSwapchainKHR(vkd, device, &swapchainInfo.back()));
1559 swapchainImages.emplace_back(getSwapchainImages(vkd, device, swapchain.back().get()));
1560 acquireImageWrapper.emplace_back(vkd, device, 1u, swapchain.back().get(), std::numeric_limits<deUint64>::max());
1567 // Renderer per swapchain.
1634 accumulatedPresentInfo.push_back(frameObjects.renderCompleteSemaphore, swapchain[swapchainIndex].get(), imageNdx);
1636 // Present frames when we have accumulated one frame per swapchain.
1748 // create swapchain for device group
1760 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(vkd, *groupDevice, &swapchainInfo));
1761 const vector<VkImage> swapchainImages = getSwapchainImages(vkd, *groupDevice, *swapchain);
1808 *swapchain,
1866 // present swapchain image
1883 &*swapchain,
1979 // create swapchain for device group
2015 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(vkd, *groupDevice, &swapchainInfo));
2017 VK_CHECK(vkd.getSwapchainImagesKHR(*groupDevice, *swapchain, &numImages, DE_NULL));
2025 *swapchain
2074 *swapchain,
2085 0u // If swapchain <in VkBindImageMemorySwapchainInfoKHR> is not NULL, the swapchain and imageIndex are used to determine the memory that the image is bound to, instead of memory and memoryOffset.
2132 0u // If swapchain <in VkBindImageMemorySwapchainInfoKHR> is not NULL, the swapchain and imageIndex are used to determine the memory that the image is bound to, instead of memory and memoryOffset.
2191 *swapchain,
2243 // present swapchain image - asume that first device has a presentation engine
2260 &*swapchain,
2317 // recreates way more than necessary when recreating the swapchain. Make
2319 // old to new swapchain. Once that is done, it will also be possible to
2320 // test creating a new swapchain while images from the previous one are
2326 Move<VkSwapchainKHR> swapchain (createSwapchainKHR(vkd, device, &swapchainInfo));
2327 const vector<VkImage> swapchainImages = getSwapchainImages(vkd, device, *swapchain);
2369 *swapchain,
2406 &*swapchain,
2419 prevSwapchain = swapchain;
2440 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &swapchainInfo));
2442 vector<VkImage> swapchainImages = getSwapchainImages(devHelper.vkd, *devHelper.device, *swapchain);
2448 const VkResult result = devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &count, &swapchainImages[0]);
2451 return tcu::TestStatus::fail("Get swapchain images didn't return VK_INCOMPLETE");
2453 return tcu::TestStatus::pass("Get swapchain images tests succeeded");
2464 const Unique<VkSwapchainKHR> swapchain(createSwapchainKHR(devHelper.vkd, *devHelper.device, &swapchainInfo));
2468 VK_CHECK(devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &numImages, DE_NULL));
2478 VK_CHECK(devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &numImages, &images[0]));
2483 return tcu::TestStatus::pass("Get swapchain images tests succeeded");
2518 // Create the first swapchain.
2520 VkSwapchainKHR swapchain = 0;
2521 VK_CHECK(devHelper.vkd.createSwapchainKHR(*devHelper.device, &swapchainInfo, DE_NULL, &swapchain));
2523 // Create a new swapchain replacing the old one.
2524 swapchainInfo.oldSwapchain = swapchain;
2528 // Destroying the old swapchain should have no effect.
2529 devHelper.vkd.destroySwapchainKHR(*devHelper.device, swapchain, DE_NULL);
2531 // Destroy the new swapchain for cleanup.
2534 return tcu::TestStatus::pass("Destroying an old swapchain has no effect.");
2545 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &swapchainInfo));
2548 VK_CHECK(devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &numImages, DE_NULL));
2550 if (numImages < minImageCount) return tcu::TestStatus::fail("Get swapchain images returned less than minImageCount images");
2557 VK_CHECK_WSI(devHelper.vkd.acquireNextImageKHR(*devHelper.device, *swapchain, std::numeric_limits<deUint64>::max(), (VkSemaphore)0, **fences[i], &unused));
2560 const auto result = devHelper.vkd.acquireNextImageKHR(*devHelper.device, *swapchain, 0, (VkSemaphore)0, **fences[numAcquirableImages], &unused);
2572 return tcu::TestStatus::pass("Acquire too many swapchain images test succeeded");
2583 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &swapchainInfo));
2586 VK_CHECK(devHelper.vkd.getSwapchainImagesKHR(*devHelper.device, *swapchain, &numImages, DE_NULL));
2588 if (numImages < minImageCount) return tcu::TestStatus::fail("Get swapchain images returned less than minImageCount images");
2595 VK_CHECK_WSI(devHelper.vkd.acquireNextImageKHR(*devHelper.device, *swapchain, std::numeric_limits<deUint64>::max(), (VkSemaphore)0, **fences[i], &unused));
2600 const auto result = devHelper.vkd.acquireNextImageKHR(*devHelper.device, *swapchain, timeout, (VkSemaphore)0, **fences[numAcquirableImages], &unused);
2612 return tcu::TestStatus::pass("Acquire too many swapchain images test succeeded");
2672 // Destroying a VK_NULL_HANDLE swapchain
2674 // Destroying an old swapchain
2692 // Simulate OOM using callbacks during swapchain construction
2700 // Get swapchain images
2702 // Ancquire next swapchain image