dawn-cmake/src/dawn/tests/end2end
Corentin Wallez 943a1a2d7a Add SwapChain::GetCurrentTexture
This is to eventually allow more using swapchain textures as CopySrc and
CopyDst. Note that this commit doesn't add any additional usages.

Because textures can reflect their creation parameters, swapchains now
need to pass in the correct texture descriptor in all code paths. This
requires additional handling in dawn::native error swapchains, and
dawn::wire::client's SwapChain reservation and Device::CreateSwapChain
code.

Tests are added for all of these code paths except
dawn::wire::client::Device::CreateSwapChain because there is no way to
create a Surface in wire tests at the moment (they don't have an
instance).

Bug: dawn:1551
Change-Id: I22d5e909e1e94d48eb52cae57aabff8a7f0c04c1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/133463
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
2023-05-26 10:32:17 +00:00
..
AdapterCreationTests.cpp Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
BasicTests.cpp d3d11: enable some d3d11 end2end tests 2023-04-24 19:48:47 +00:00
BindGroupTests.cpp d3d11: enable DynamicBufferOffsetTests 2023-05-23 00:54:15 +00:00
BufferTests.cpp Handle new errors to WGPUBufferMapAsyncStatus 2023-05-04 06:46:19 +00:00
BufferZeroInitTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ClipSpaceTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ColorStateTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CommandEncoderTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CompressedTextureFormatTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeCopyStorageBufferTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeDispatchTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeFlowControlTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeLayoutMemoryBufferTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeSharedMemoryTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ComputeStorageBufferBarrierTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CopyExternalTextureForBrowserTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CopyTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CopyTextureForBrowserTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CreatePipelineAsyncTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CullingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
D3D12CachingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
D3DResourceWrappingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DebugMarkerTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DepthBiasTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DepthStencilCopyTests.cpp Compat GL/GLES: blit a stencil texture to a buffer using compute 2023-05-24 20:59:21 +00:00
DepthStencilLoadOpTests.cpp Suppress tests failing on Apple GPUs 2023-05-17 20:27:23 +00:00
DepthStencilSamplingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DepthStencilStateTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DestroyTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DeviceInitializationTests.cpp Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
DeviceLifetimeTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DeviceLostTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DrawIndexedIndirectTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DrawIndexedTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DrawIndirectTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DrawTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
DynamicBufferOffsetTests.cpp d3d11: enable DynamicBufferOffsetTests 2023-05-23 00:54:15 +00:00
EntryPointTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ExperimentalDP4aTests.cpp Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
ExternalTextureTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
FirstIndexOffsetTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
FragDepthTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
GpuMemorySynchronizationTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
IOSurfaceWrappingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
IndexFormatTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
MaxLimitTests.cpp d3d11: enable MaxLimitTests 2023-05-24 02:30:30 +00:00
MemoryAllocationStressTests.cpp d3d11: enable MemoryAllocationStressTests end2end test 2023-04-24 15:59:50 +00:00
MultisampledRenderingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
MultisampledSamplingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
MultithreadTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
NonzeroBufferCreationTests.cpp d3d11: enable NonzeroBufferCreationTests 2023-05-26 00:23:47 +00:00
NonzeroTextureCreationTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ObjectCachingTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
OpArrayLengthTests.cpp d3d11: enable OpArrayLengthTest 2023-05-18 00:15:06 +00:00
PhysicalDeviceDiscoveryTests.cpp Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
PipelineCachingTests.cpp Compat: Reject non-matching blend state / write mask 2023-05-25 04:37:12 +00:00
PipelineLayoutTests.cpp d3d11: enable PipelineLayoutTests 2023-05-23 06:42:42 +00:00
PrimitiveStateTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
PrimitiveTopologyTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
QueryTests.cpp Add workaround for resolving overlapping queries on Intel Gen12 2023-05-19 08:07:40 +00:00
QueueTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
QueueTimelineTests.cpp Revert "d3d11: add d3d11 backend in end2end tests" 2023-04-13 22:45:28 +00:00
ReadOnlyDepthStencilAttachmentTests.cpp d3d11: fix and enable ReadOnlyDepthStencilAttachmentTests 2023-05-18 14:26:24 +00:00
RenderAttachmentTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RenderBundleTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RenderPassLoadOpTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RenderPassTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RequiredBufferSizeInCopyTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SamplerFilterAnisotropicTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SamplerTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ScissorTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ShaderF16Tests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ShaderTests.cpp Tint/GLSL: rename identifiers containing double-underscores. 2023-05-26 04:53:17 +00:00
ShaderValidationTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
StorageTextureTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SubresourceRenderAttachmentTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SwapChainTests.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
SwapChainValidationTests.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Texture3DTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
TextureCorruptionTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
TextureFormatTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
TextureSubresourceTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
TextureViewTests.cpp Compat: Reject CubeArrays via Validation 2023-05-24 12:39:46 +00:00
TextureZeroInitTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VertexFormatTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VertexOnlyRenderPipelineTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VertexStateTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VideoViewsTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VideoViewsTests.h Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VideoViewsTests_gbm.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VideoViewsTests_mac.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
VideoViewsTests_win.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ViewportOrientationTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ViewportTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
WindowSurfaceTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00