Skip several dawn_end2end_tests on specific platforms
Bug: dawn:1423, dawn:1429 Test: dawn_end2end_tests Change-Id: Idc9d573f02f7ef70d1901a786e73d362d60697bf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91064 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
8d9adb0219
commit
318f6acd56
|
@ -831,6 +831,10 @@ bool DawnTestBase::IsBackendValidationEnabled() const {
|
||||||
return gTestEnv->GetBackendValidationLevel() != dawn::native::BackendValidationLevel::Disabled;
|
return gTestEnv->GetBackendValidationLevel() != dawn::native::BackendValidationLevel::Disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DawnTestBase::IsFullBackendValidationEnabled() const {
|
||||||
|
return gTestEnv->GetBackendValidationLevel() == dawn::native::BackendValidationLevel::Full;
|
||||||
|
}
|
||||||
|
|
||||||
bool DawnTestBase::RunSuppressedTests() const {
|
bool DawnTestBase::RunSuppressedTests() const {
|
||||||
return gTestEnv->RunSuppressedTests();
|
return gTestEnv->RunSuppressedTests();
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,6 +309,7 @@ class DawnTestBase {
|
||||||
|
|
||||||
bool UsesWire() const;
|
bool UsesWire() const;
|
||||||
bool IsBackendValidationEnabled() const;
|
bool IsBackendValidationEnabled() const;
|
||||||
|
bool IsFullBackendValidationEnabled() const;
|
||||||
bool RunSuppressedTests() const;
|
bool RunSuppressedTests() const;
|
||||||
|
|
||||||
bool IsDXC() const;
|
bool IsDXC() const;
|
||||||
|
|
|
@ -219,7 +219,7 @@ TEST_P(ComputeDispatchTests, IndirectBasic) {
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
||||||
#endif
|
#endif
|
||||||
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsBackendValidationEnabled());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsFullBackendValidationEnabled());
|
||||||
|
|
||||||
IndirectTest({2, 3, 4}, 0);
|
IndirectTest({2, 3, 4}, 0);
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ TEST_P(ComputeDispatchTests, IndirectOffset) {
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
||||||
#endif
|
#endif
|
||||||
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsBackendValidationEnabled());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsFullBackendValidationEnabled());
|
||||||
|
|
||||||
IndirectTest({0, 0, 0, 2, 3, 4}, 3 * sizeof(uint32_t));
|
IndirectTest({0, 0, 0, 2, 3, 4}, 3 * sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ TEST_P(ComputeDispatchTests, MaxWorkgroups) {
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsNvidia());
|
||||||
#endif
|
#endif
|
||||||
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
// TODO(crbug.com/dawn/1262): Fails with the full validation turned on.
|
||||||
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsBackendValidationEnabled());
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsFullBackendValidationEnabled());
|
||||||
|
|
||||||
// TODO(crbug.com/dawn/1165): Fails with WARP
|
// TODO(crbug.com/dawn/1165): Fails with WARP
|
||||||
DAWN_SUPPRESS_TEST_IF(IsWARP());
|
DAWN_SUPPRESS_TEST_IF(IsWARP());
|
||||||
|
|
|
@ -280,6 +280,8 @@ TEST_P(FirstIndexOffsetTests, IndexedBothOffset) {
|
||||||
|
|
||||||
// Test that vertex_index starts at 7 when drawn using DrawIndirect()
|
// Test that vertex_index starts at 7 when drawn using DrawIndirect()
|
||||||
TEST_P(FirstIndexOffsetTests, NonIndexedIndirectVertexOffset) {
|
TEST_P(FirstIndexOffsetTests, NonIndexedIndirectVertexOffset) {
|
||||||
|
// TODO(crbug.com/dawn/1429): Fails with the full validation turned on.
|
||||||
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsFullBackendValidationEnabled());
|
||||||
TestVertexIndex(DrawMode::NonIndexedIndirect, 7);
|
TestVertexIndex(DrawMode::NonIndexedIndirect, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,6 +298,8 @@ TEST_P(FirstIndexOffsetTests, NonIndexedIndirectBothOffset) {
|
||||||
|
|
||||||
// Test that vertex_index starts at 7 when drawn using DrawIndexedIndirect()
|
// Test that vertex_index starts at 7 when drawn using DrawIndexedIndirect()
|
||||||
TEST_P(FirstIndexOffsetTests, IndexedIndirectVertex) {
|
TEST_P(FirstIndexOffsetTests, IndexedIndirectVertex) {
|
||||||
|
// TODO(crbug.com/dawn/1429): Fails with the full validation turned on.
|
||||||
|
DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsFullBackendValidationEnabled());
|
||||||
TestVertexIndex(DrawMode::IndexedIndirect, 7);
|
TestVertexIndex(DrawMode::IndexedIndirect, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -469,6 +469,9 @@ TEST_P(TextureZeroInitTest, CopyTextureToTextureHalf) {
|
||||||
// This tests the texture with depth attachment and load op load will init depth stencil texture to
|
// This tests the texture with depth attachment and load op load will init depth stencil texture to
|
||||||
// 0s.
|
// 0s.
|
||||||
TEST_P(TextureZeroInitTest, RenderingLoadingDepth) {
|
TEST_P(TextureZeroInitTest, RenderingLoadingDepth) {
|
||||||
|
// TODO(crbug.com/dawn/1423): Investigate why this test fails on Windows Vulkan drivers
|
||||||
|
DAWN_SUPPRESS_TEST_IF(IsWindows() && IsVulkan());
|
||||||
|
|
||||||
wgpu::TextureDescriptor srcDescriptor =
|
wgpu::TextureDescriptor srcDescriptor =
|
||||||
CreateTextureDescriptor(1, 1,
|
CreateTextureDescriptor(1, 1,
|
||||||
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
||||||
|
@ -511,6 +514,9 @@ TEST_P(TextureZeroInitTest, RenderingLoadingDepth) {
|
||||||
// This tests the texture with stencil attachment and load op load will init depth stencil texture
|
// This tests the texture with stencil attachment and load op load will init depth stencil texture
|
||||||
// to 0s.
|
// to 0s.
|
||||||
TEST_P(TextureZeroInitTest, RenderingLoadingStencil) {
|
TEST_P(TextureZeroInitTest, RenderingLoadingStencil) {
|
||||||
|
// TODO(crbug.com/dawn/1423): Investigate why this test fails on Windows Vulkan drivers
|
||||||
|
DAWN_SUPPRESS_TEST_IF(IsWindows() && IsVulkan());
|
||||||
|
|
||||||
wgpu::TextureDescriptor srcDescriptor =
|
wgpu::TextureDescriptor srcDescriptor =
|
||||||
CreateTextureDescriptor(1, 1,
|
CreateTextureDescriptor(1, 1,
|
||||||
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
||||||
|
@ -553,6 +559,9 @@ TEST_P(TextureZeroInitTest, RenderingLoadingStencil) {
|
||||||
// This tests the texture with depth stencil attachment and load op load will init depth stencil
|
// This tests the texture with depth stencil attachment and load op load will init depth stencil
|
||||||
// texture to 0s.
|
// texture to 0s.
|
||||||
TEST_P(TextureZeroInitTest, RenderingLoadingDepthStencil) {
|
TEST_P(TextureZeroInitTest, RenderingLoadingDepthStencil) {
|
||||||
|
// TODO(crbug.com/dawn/1423): Investigate why this test fails on Windows Vulkan drivers
|
||||||
|
DAWN_SUPPRESS_TEST_IF(IsWindows() && IsVulkan());
|
||||||
|
|
||||||
wgpu::TextureDescriptor srcDescriptor =
|
wgpu::TextureDescriptor srcDescriptor =
|
||||||
CreateTextureDescriptor(1, 1,
|
CreateTextureDescriptor(1, 1,
|
||||||
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst |
|
||||||
|
|
Loading…
Reference in New Issue