From 9b9e7b293e674bc62af385ed543f8775c9ee9f05 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Tue, 2 Mar 2021 17:54:19 +0000 Subject: [PATCH] Skip SNORM formats on unsupported platforms. Bug: dawn:447 dawn:667 Change-Id: I66d5a33febeee6a5ea4efd7c4e97461accce22ee Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/43580 Reviewed-by: Austin Eng Commit-Queue: Stephen White --- src/tests/end2end/CopyTests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/end2end/CopyTests.cpp b/src/tests/end2end/CopyTests.cpp index bf0fa92077..040e610f0f 100644 --- a/src/tests/end2end/CopyTests.cpp +++ b/src/tests/end2end/CopyTests.cpp @@ -1635,6 +1635,11 @@ TEST_P(CopyTests_T2T, CopyFromNonZeroMipLevelWithTexelBlockSizeLessThan4Bytes) { ASSERT_LE(kDstSize, kTextureBytesPerRowAlignment); for (wgpu::TextureFormat format : kFormats) { + if (HasToggleEnabled("disable_snorm_read") && + (format == wgpu::TextureFormat::RG8Snorm || format == wgpu::TextureFormat::R8Snorm)) { + continue; + } + for (uint32_t textureDepth = 1; textureDepth < 3; ++textureDepth) { const wgpu::Extent3D kUploadSize = {4u, 4u, textureDepth};