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 <enga@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White 2021-03-02 17:54:19 +00:00 committed by Commit Bot service account
parent b9eec93172
commit 9b9e7b293e
1 changed files with 5 additions and 0 deletions

View File

@ -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};