diff --git a/src/webgpu/api/operation/resource_init/texture_zero.spec.ts b/src/webgpu/api/operation/resource_init/texture_zero.spec.ts index 6e18fbfea82..91d8ddd16c2 100644 --- a/src/webgpu/api/operation/resource_init/texture_zero.spec.ts +++ b/src/webgpu/api/operation/resource_init/texture_zero.spec.ts @@ -9,7 +9,7 @@ TODO: import { makeTestGroup } from '../../../../common/framework/test_group.js'; import { unreachable } from '../../../../common/util/util.js'; -import { kTextureFormatInfo } from '../../../format_info.js'; +import { isMultisampledTextureFormat, kTextureFormatInfo } from '../../../format_info.js'; import { checkContentsByBufferCopy, checkContentsByTextureCopy } from './check_texture/by_copy.js'; import { @@ -47,6 +47,10 @@ g.test('uninitialized_texture_is_zero') t.selectDeviceOrSkipTestCase(kTextureFormatInfo[t.params.format].feature); }) .fn(t => { + t.skipIf( + t.params.sampleCount > 1 && !isMultisampledTextureFormat(t.params.format, t.isCompatibility) + ); + const usage = getRequiredTextureUsage( t.params.format, t.params.sampleCount, diff --git a/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts b/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts index 34e1bd75ba7..49bc80ea6a1 100644 --- a/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts +++ b/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts @@ -10,6 +10,7 @@ import { kDepthStencilFormats, kDepthStencilFormatResolvedAspect, kTextureFormatInfo, + isMultisampledTextureFormat, } from '../../../../format_info.js'; import { MaxLimitsTestMixin } from '../../../../gpu_test.js'; import { ValidationTest } from '../../validation_test.js'; @@ -1156,6 +1157,7 @@ g.test('bindings_in_bundle') t.skipIfNeedStorageTexturesByResourceTypeAndNoStorageTextures(type0, GPUShaderStage.FRAGMENT); t.skipIfNeedStorageTexturesByResourceTypeAndNoStorageTextures(type1, GPUShaderStage.FRAGMENT); + t.skipIf(_sampleCount! > 1 && !isMultisampledTextureFormat('r32float', t.isCompatibility)); // Two bindings are attached to the same texture view. const usage =