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:
parent
b9eec93172
commit
9b9e7b293e
|
@ -1635,6 +1635,11 @@ TEST_P(CopyTests_T2T, CopyFromNonZeroMipLevelWithTexelBlockSizeLessThan4Bytes) {
|
||||||
ASSERT_LE(kDstSize, kTextureBytesPerRowAlignment);
|
ASSERT_LE(kDstSize, kTextureBytesPerRowAlignment);
|
||||||
|
|
||||||
for (wgpu::TextureFormat format : kFormats) {
|
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) {
|
for (uint32_t textureDepth = 1; textureDepth < 3; ++textureDepth) {
|
||||||
const wgpu::Extent3D kUploadSize = {4u, 4u, textureDepth};
|
const wgpu::Extent3D kUploadSize = {4u, 4u, textureDepth};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue