/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | SwapChainValidationTests.cpp | 109 // Control case for a successful swapchain creation and presenting. 111 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); in TEST_P() local 112 wgpu::TextureView view = swapchain.GetCurrentTextureView(); in TEST_P() 113 swapchain.Present(); in TEST_P() 174 // Check swapchain operations with an error swapchain are errors 176 wgpu::SwapChain swapchain; in TEST_P() local 177 ASSERT_DEVICE_ERROR(swapchain = device.CreateSwapChain(surface, &badDescriptor)); in TEST_P() 180 ASSERT_DEVICE_ERROR(view = swapchain.GetCurrentTextureView()); in TEST_P() 183 ASSERT_DEVICE_ERROR(swapchain in TEST_P() 188 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 203 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 215 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 259 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 281 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 333 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local 343 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &goodDescriptor); TEST_P() local [all...] |
H A D | SwapChainTests.cpp | 90 // Basic test for creating a swapchain and presenting one frame. 92 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &baseDescriptor); in TEST_P() local 93 ClearTexture(swapchain.GetCurrentTextureView(), {1.0, 0.0, 0.0, 1.0}); in TEST_P() 94 swapchain.Present(); in TEST_P() 97 // Test replacing the swapchain 108 // Test replacing the swapchain after GetCurrentTextureView 118 // Test destroying the swapchain after GetCurrentTextureView 120 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &baseDescriptor); in TEST_P() local 121 ClearTexture(swapchain.GetCurrentTextureView(), {1.0, 0.0, 0.0, 1.0}); in TEST_P() 124 // Test destroying the surface before the swapchain 126 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &baseDescriptor); TEST_P() local 132 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &baseDescriptor); TEST_P() local 177 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &desc); TEST_P() local 185 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &baseDescriptor); TEST_P() local 212 wgpu::SwapChain swapchain = device.CreateSwapChain(surface, &desc); TEST_P() local 235 wgpu::SwapChain swapchain = deviceToUse.CreateSwapChain(surface, &baseDescriptor); TEST_P() local [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_kopper.c | 152 VKSCR(DestroySwapchainKHR)(screen->dev, cswap->swapchain, NULL); in destroy_swapchain() 209 destroy_swapchain(screen, cdt->swapchain); in zink_kopper_deinit_displaytarget() 212 cdt->swapchain = cdt->old_swapchain = NULL; in zink_kopper_deinit_displaytarget() 227 if (cdt->swapchain) { in kopper_CreateSwapchain() 228 cswap->scci = cdt->swapchain->scci; in kopper_CreateSwapchain() 229 cswap->scci.oldSwapchain = cdt->swapchain->swapchain; in kopper_CreateSwapchain() 261 * Due to above restrictions, it is only possible to create a new swapchain on this in kopper_CreateSwapchain() 269 * surface size will be determined by the extent of a swapchain targeting the surface. Whatever the in kopper_CreateSwapchain() 270 * application sets a swapchain’ in kopper_CreateSwapchain() 625 struct kopper_swapchain *swapchain; global() member 636 struct kopper_swapchain *swapchain = cpi->swapchain; kopper_present() local [all...] |
H A D | zink_kopper.h | 43 VkSwapchainKHR swapchain; member 73 struct kopper_swapchain *swapchain; member 99 return cdt->swapchain->last_present == idx; in zink_kopper_last_present_eq() 105 return idx != UINT32_MAX && cdt->swapchain->images[idx].acquired; in zink_kopper_acquired()
|
H A D | zink_surface.c | 268 /* don't cache swapchain surfaces. that's weird. */ in zink_create_surface() 327 VKSCR(DestroyImageView)(screen->dev, surface->swapchain[i], NULL); in zink_destroy_surface() 328 free(surface->swapchain); in zink_destroy_surface() 439 return; //dead swapchain in zink_surface_swapchain_update() 441 /* new swapchain: clear out previous old_swapchain and move current swapchain there */ in zink_surface_swapchain_update() 445 surface->old_swapchain = surface->swapchain; in zink_surface_swapchain_update() 447 surface->swapchain_size = cdt->swapchain->num_images; in zink_surface_swapchain_update() 448 surface->swapchain = calloc(surface->swapchain_size, sizeof(VkImageView)); in zink_surface_swapchain_update() 453 if (!surface->swapchain[re in zink_surface_swapchain_update() [all...] |
/third_party/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common.c | 769 struct wsi_swapchain *swapchain; in wsi_CreateSwapchainKHR() local 778 &swapchain); in wsi_CreateSwapchainKHR() 782 swapchain->fences = vk_zalloc(alloc, in wsi_CreateSwapchainKHR() 783 sizeof (*swapchain->fences) * swapchain->image_count, in wsi_CreateSwapchainKHR() 784 sizeof (*swapchain->fences), in wsi_CreateSwapchainKHR() 786 if (!swapchain->fences) { in wsi_CreateSwapchainKHR() 787 swapchain->destroy(swapchain, alloc); in wsi_CreateSwapchainKHR() 791 if (swapchain in wsi_CreateSwapchainKHR() 853 wsi_GetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t *pSwapchainImageCount, VkImage *pSwapchainImages) wsi_GetSwapchainImagesKHR() argument 864 wsi_AcquireNextImageKHR(VkDevice _device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t *pImageIndex) wsi_AcquireNextImageKHR() argument [all...] |
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/ |
H A D | d3d12_wgl_framebuffer.cpp | 56 ComPtr<IDXGISwapChain3> swapchain; member 112 if (!framebuffer->swapchain) { in d3d12_wgl_framebuffer_resize() 121 debug_printf("D3D12: failed to create swapchain"); in d3d12_wgl_framebuffer_resize() 125 swapchain1.As(&framebuffer->swapchain); in d3d12_wgl_framebuffer_resize() 146 if (FAILED(framebuffer->swapchain->ResizeBuffers(num_buffers, desc.Width, desc.Height, desc.Format, desc.Flags))) { in d3d12_wgl_framebuffer_resize() 147 debug_printf("D3D12: failed to resize swapchain"); in d3d12_wgl_framebuffer_resize() 156 if (!framebuffer->swapchain) { in d3d12_wgl_framebuffer_present() 157 debug_printf("D3D12: Cannot present; no swapchain"); in d3d12_wgl_framebuffer_present() 162 return S_OK == framebuffer->swapchain->Present(0, DXGI_PRESENT_ALLOW_TEARING); in d3d12_wgl_framebuffer_present() 164 return S_OK == framebuffer->swapchain in d3d12_wgl_framebuffer_present() [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
H A D | Swapchain.cpp | 23 // Create the swapchain in Swapchain() 41 swapchain = device.createSwapchainKHR(swapchainCreateInfo); in Swapchain() 44 images = device.getSwapchainImagesKHR(swapchain); in Swapchain() 70 device.destroySwapchainKHR(swapchain, nullptr); in ~Swapchain() 75 auto result = device.acquireNextImageKHR(swapchain, UINT64_MAX, presentCompleteSemaphore, vk::Fence()); in acquireNextImage() 85 presentInfo.pSwapchains = &swapchain; in queuePresent()
|
H A D | DrawTester.cpp | 58 swapchain.reset(); in ~DrawTester() 67 swapchain.reset(new Swapchain(physicalDevice, device, *window)); in initialize() 69 renderPass = createRenderPass(swapchain->colorFormat); in initialize() 83 swapchain->acquireNextImage(presentCompleteSemaphore, currentFrameBuffer); in renderFrame() 101 swapchain->queuePresent(queue, currentFrameBuffer, renderCompleteSemaphore); in renderFrame() 192 framebuffers.resize(swapchain->imageCount()); in createFramebuffers() 196 framebuffers[i].reset(new Framebuffer(device, physicalDevice, swapchain->getImageView(i), swapchain->colorFormat, renderPass, swapchain->getExtent(), multisample)); in createFramebuffers() 318 waitFences.resize(swapchain in createSynchronizationPrimitives() [all...] |
/third_party/skia/third_party/externals/dawn/examples/ |
H A D | Animometer.cpp | 28 wgpu::SwapChain swapchain; variable 56 swapchain = GetSwapChain(device); in init() 57 swapchain.Configure(GetPreferredSwapChainTextureFormat(), wgpu::TextureUsage::RenderAttachment, in init() 151 wgpu::TextureView backbufferView = swapchain.GetCurrentTextureView(); in frame() 177 swapchain.Present(); in frame()
|
H A D | CHelloTriangle.cpp | 23 WGPUSwapChain swapchain; variable 35 swapchain = wgpuDeviceCreateSwapChain(device, nullptr, &descriptor); in init() 38 wgpuSwapChainConfigure(swapchain, swapChainFormat, WGPUTextureUsage_RenderAttachment, 640, 480); in init() 109 WGPUTextureView backbufferView = wgpuSwapChainGetCurrentTextureView(swapchain); in frame() 138 wgpuSwapChainPresent(swapchain); in frame()
|
H A D | ComputeBoids.cpp | 30 wgpu::SwapChain swapchain; variable 301 swapchain = GetSwapChain(device); in init() 302 swapchain.Configure(GetPreferredSwapChainTextureFormat(), wgpu::TextureUsage::RenderAttachment, in init() 311 wgpu::TextureView backbufferView = swapchain.GetCurrentTextureView(); in frame() 315 swapchain.Present(); in frame()
|
H A D | CppHelloTriangle.cpp | 33 wgpu::SwapChain swapchain; variable 92 swapchain = GetSwapChain(device); in init() 93 swapchain.Configure(GetPreferredSwapChainTextureFormat(), wgpu::TextureUsage::RenderAttachment, in init() 153 wgpu::TextureView backbufferView = swapchain.GetCurrentTextureView(); in frame() 169 swapchain.Present(); in frame()
|
H A D | CubeReflection.cpp | 40 wgpu::SwapChain swapchain; variable 99 swapchain = GetSwapChain(device); in init() 100 swapchain.Configure(GetPreferredSwapChainTextureFormat(), wgpu::TextureUsage::RenderAttachment, in init() 266 wgpu::TextureView backbufferView = swapchain.GetCurrentTextureView(); in frame() 294 swapchain.Present(); in frame()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/ |
H A D | WireInjectSwapChainTests.cpp | 30 // Test that reserving and injecting a swapchain makes calls on the client object forward to the 41 wgpuSwapChainPresent(reservation.swapchain); in TEST_F() 52 ASSERT_NE(reservation1.swapchain, reservation2.swapchain); in TEST_F() 71 // Test that the server only borrows the swapchain and does a single reference-release 75 // Injecting the swapchain adds a reference in TEST_F() 82 // Releasing the swapchain removes a single reference. in TEST_F() 83 wgpuSwapChainRelease(reservation.swapchain); in TEST_F() 92 // Test that a swapchain reservation can be reclaimed. This is necessary to 98 wgpuSwapChainRelease(reservation.swapchain); in TEST_F() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/ |
H A D | vktWsiSwapchainTests.cpp | 701 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainTest() 704 << "Creating swapchain succeeded" << TestLog::EndMessage; in createSwapchainTest() 713 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainTest() 716 << "Creating swapchain succeeded" << TestLog::EndMessage; in createSwapchainTest() 796 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainPrivateDataTest() 824 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data); in createSwapchainPrivateDataTest() 834 VK_CHECK(devHelper.vkd.setPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], i*i*i + 1)); in createSwapchainPrivateDataTest() 839 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data); in createSwapchainPrivateDataTest() 933 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams, failingAllocator.getCallbacks())); in createSwapchainSimulateOOMTest() 943 log << TestLog::Message << "Creating swapchain succeede in createSwapchainSimulateOOMTest() 1227 AcquireNextImageWrapper(const DeviceInterface& vkd, VkDevice device, deUint32 deviceMask, VkSwapchainKHR swapchain, deUint64 timeout) AcquireNextImageWrapper() argument 1267 AcquireNextImage2Wrapper(const DeviceInterface& vkd, VkDevice device, deUint32 deviceMask, VkSwapchainKHR swapchain, deUint64 timeout) AcquireNextImage2Wrapper() argument 1552 vector<Move<VkSwapchainKHR>> swapchain; multiSwapchainRenderTest() local 2520 VkSwapchainKHR swapchain = 0; destroyOldSwapchainTest() local [all...] |
H A D | vktWsiFullScreenExclusiveTests.cpp | 431 Move<VkSwapchainKHR> swapchain; in fullScreenExclusiveTest() local 437 // In some cases, swapchain creation may fail if exclusive full-screen mode is requested for application control, in fullScreenExclusiveTest() 440 return tcu::TestStatus(QP_TEST_RESULT_QUALITY_WARNING, "Failed to create swapchain with exclusive full-screen mode for application control."); in fullScreenExclusiveTest() 447 swapchain = Move<VkSwapchainKHR>(check<VkSwapchainKHR>(object), Deleter<VkSwapchainKHR>(vkd, device, DE_NULL)); in fullScreenExclusiveTest() 449 const std::vector<VkImage> swapchainImages = getSwapchainImages(vkd, device, *swapchain); in fullScreenExclusiveTest() 495 const VkResult acquireResult = vkd.acquireFullScreenExclusiveModeEXT(device, *swapchain); in fullScreenExclusiveTest() 530 *swapchain, in fullScreenExclusiveTest() 570 &*swapchain, in fullScreenExclusiveTest() 604 const VkResult releaseResult = vkd.releaseFullScreenExclusiveModeEXT(device, *swapchain); in fullScreenExclusiveTest()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/ |
H A D | vktWsiSwapchainTests.cpp | 696 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainTest() 699 << "Creating swapchain succeeded" << TestLog::EndMessage; in createSwapchainTest() 708 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainTest() 711 << "Creating swapchain succeeded" << TestLog::EndMessage; in createSwapchainTest() 791 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); in createSwapchainPrivateDataTest() 819 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data); in createSwapchainPrivateDataTest() 829 VK_CHECK(devHelper.vkd.setPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], i*i*i + 1)); in createSwapchainPrivateDataTest() 834 devHelper.vkd.getPrivateData(*devHelper.device, getObjectType<VkSwapchainKHR>(), HandleToInt(swapchain.get()), **slots[i], &data); in createSwapchainPrivateDataTest() 917 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams, failingAllocator.getCallbacks())); in createSwapchainSimulateOOMTest() 927 log << TestLog::Message << "Creating swapchain succeede in createSwapchainSimulateOOMTest() 1211 AcquireNextImageWrapper(const DeviceInterface& vkd, VkDevice device, deUint32 deviceMask, VkSwapchainKHR swapchain, deUint64 timeout) AcquireNextImageWrapper() argument 1251 AcquireNextImage2Wrapper(const DeviceInterface& vkd, VkDevice device, deUint32 deviceMask, VkSwapchainKHR swapchain, deUint64 timeout) AcquireNextImage2Wrapper() argument 1536 vector<Move<VkSwapchainKHR>> swapchain; multiSwapchainRenderTest() local 2504 VkSwapchainKHR swapchain = 0; destroyOldSwapchainTest() local [all...] |
H A D | vktWsiFullScreenExclusiveTests.cpp | 431 Move<VkSwapchainKHR> swapchain; in fullScreenExclusiveTest() local 437 // In some cases, swapchain creation may fail if exclusive full-screen mode is requested for application control, in fullScreenExclusiveTest() 440 return tcu::TestStatus(QP_TEST_RESULT_QUALITY_WARNING, "Failed to create swapchain with exclusive full-screen mode for application control."); in fullScreenExclusiveTest() 447 swapchain = Move<VkSwapchainKHR>(check<VkSwapchainKHR>(object), Deleter<VkSwapchainKHR>(vkd, device, DE_NULL)); in fullScreenExclusiveTest() 449 const std::vector<VkImage> swapchainImages = getSwapchainImages(vkd, device, *swapchain); in fullScreenExclusiveTest() 495 const VkResult acquireResult = vkd.acquireFullScreenExclusiveModeEXT(device, *swapchain); in fullScreenExclusiveTest() 530 *swapchain, in fullScreenExclusiveTest() 570 &*swapchain, in fullScreenExclusiveTest() 604 const VkResult releaseResult = vkd.releaseFullScreenExclusiveModeEXT(device, *swapchain); in fullScreenExclusiveTest()
|
/third_party/vulkan-loader/tests/ |
H A D | loader_get_proc_addr_tests.cpp | 238 VkSwapchainKHR swapchain{}; in TEST() 239 if (CreateSwapchainKHR) CreateSwapchainKHR(dev.dev, &info, nullptr, &swapchain); in TEST() 244 if (dev_funcs.vkDestroySwapchainKHR) dev_funcs.vkDestroySwapchainKHR(dev.dev, swapchain, nullptr); in TEST() 247 ASSERT_DEATH(inst_CreateSwapchainKHR(dev.dev, &info, nullptr, &swapchain), in TEST() 252 if (dev_funcs.vkDestroySwapchainKHR) dev_funcs.vkDestroySwapchainKHR(dev.dev, swapchain, nullptr); in TEST() 257 if (CreateSharedSwapchainsKHR) CreateSharedSwapchainsKHR(dev.dev, 1, &info, nullptr, &swapchain); in TEST() 280 VkSwapchainKHR swapchain{}; in TEST() 281 if (CreateSwapchainKHR) CreateSwapchainKHR(dev.dev, &info, nullptr, &swapchain); in TEST() 286 if (dev_funcs.vkDestroySwapchainKHR) dev_funcs.vkDestroySwapchainKHR(dev.dev, swapchain, nullptr); in TEST() 287 if (inst_CreateSwapchainKHR) inst_CreateSwapchainKHR(dev.dev, &info, nullptr, &swapchain); in TEST() [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | threadpool.c | 88 _mesa_threadpool_create(struct NineSwapChain9 *swapchain) in _mesa_threadpool_create() argument 100 pool->wthread = NineSwapChain9_CreateThread(swapchain, wthreadpool_worker, pool); in _mesa_threadpool_create() 109 _mesa_threadpool_destroy(struct NineSwapChain9 *swapchain, struct threadpool *pool) in _mesa_threadpool_destroy() argument 120 NineSwapChain9_WaitForThread(swapchain, pool->wthread); in _mesa_threadpool_destroy()
|
H A D | threadpool.h | 53 struct threadpool *_mesa_threadpool_create(struct NineSwapChain9 *swapchain); 54 void _mesa_threadpool_destroy(struct NineSwapChain9 *swapchain, struct threadpool *pool);
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_wsi.h | 50 struct lvp_swapchain **swapchain); 56 VkResult (*destroy)(struct lvp_swapchain *swapchain, 58 VkResult (*get_images)(struct lvp_swapchain *swapchain,
|
/third_party/skia/third_party/externals/dawn/src/dawn_wire/server/ |
H A D | Server.cpp | 75 bool Server::InjectSwapChain(WGPUSwapChain swapchain, in InjectSwapChain() argument 80 ASSERT(swapchain != nullptr); in InjectSwapChain() 91 data->handle = swapchain; in InjectSwapChain() 102 mProcs.swapChainReference(swapchain); in InjectSwapChain()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_wsi.c | 182 wsi_common_get_image(swapchain_info->swapchain, 0)); in vn_wsi_create_image_from_swapchain() 230 /* swapchain commands */ 244 "swapchain %p: created with surface %p, min count %d, size " in vn_CreateSwapchainKHR() 258 VkSwapchainKHR swapchain, in vn_DestroySwapchainKHR() 263 wsi_DestroySwapchainKHR(device, swapchain, pAllocator); in vn_DestroySwapchainKHR() 265 vn_log(dev->instance, "swapchain %p: destroyed", VN_WSI_PTR(swapchain)); in vn_DestroySwapchainKHR() 283 "swapchain %p: presented image %d: %s", in vn_QueuePresentKHR() 304 vn_log(dev->instance, "swapchain %p: acquired image %d: %s", in vn_AcquireNextImage2KHR() 305 VN_WSI_PTR(pAcquireInfo->swapchain), id in vn_AcquireNextImage2KHR() 257 vn_DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks *pAllocator) vn_DestroySwapchainKHR() argument [all...] |