diff --git a/src/webgpu/api/validation/attachment_compatibility.spec.ts b/src/webgpu/api/validation/attachment_compatibility.spec.ts index d703518dec00..64b3b07e2cf2 100644 --- a/src/webgpu/api/validation/attachment_compatibility.spec.ts +++ b/src/webgpu/api/validation/attachment_compatibility.spec.ts @@ -215,7 +215,7 @@ Test that color attachment formats in render passes or bundles match the pipelin ) .fn(t => { const { encoderType, encoderFormat, pipelineFormat } = t.params; - const pipeline = t.createRenderPipeline([{ format: pipelineFormat }]); + const pipeline = t.createRenderPipeline([{ format: pipelineFormat, writeMask: 0 }]); const { encoder, validateFinishAndSubmit } = t.createEncoder(encoderType, { attachmentInfo: { colorFormats: [encoderFormat] }, @@ -242,7 +242,9 @@ TODO: Add sparse color attachment compatibility test when defined by specificati ) .fn(t => { const { encoderType, encoderCount, pipelineCount } = t.params; - const pipeline = t.createRenderPipeline(range(pipelineCount, () => ({ format: 'rgba8unorm' }))); + const pipeline = t.createRenderPipeline( + range(pipelineCount, () => ({ format: 'rgba8unorm', writeMask: 0 })) + ); const { encoder, validateFinishAndSubmit } = t.createEncoder(encoderType, { attachmentInfo: { colorFormats: range(encoderCount, () => 'rgba8unorm') }, @@ -269,7 +271,7 @@ Test that the depth attachment format in render passes or bundles match the pipe await t.selectDeviceForTextureFormatOrSkipTestCase([encoderFormat, pipelineFormat]); const pipeline = t.createRenderPipeline( - [{ format: 'rgba8unorm' }], + [{ format: 'rgba8unorm', writeMask: 0 }], pipelineFormat !== undefined ? { format: pipelineFormat } : undefined ); @@ -302,7 +304,7 @@ Test that the sample count in render passes or bundles match the pipeline sample attachmentType === 'depthstencil' ? ('depth24plus-stencil8' as const) : undefined; const pipeline = t.createRenderPipeline( - colorFormats.map(format => ({ format })), + colorFormats.map(format => ({ format, writeMask: 0 })), depthStencilFormat ? { format: depthStencilFormat } : undefined, pipelineSampleCount ); diff --git a/src/webgpu/api/validation/validation_test.ts b/src/webgpu/api/validation/validation_test.ts index 86c2a9df485e..41075acfde41 100644 --- a/src/webgpu/api/validation/validation_test.ts +++ b/src/webgpu/api/validation/validation_test.ts @@ -229,7 +229,7 @@ export class ValidationTest extends GPUTest { code: '[[stage(fragment)]] fn main() {}', }), entryPoint: 'main', - targets: [{ format: 'rgba8unorm' }], + targets: [{ format: 'rgba8unorm', writeMask: 0 }], }, primitive: { topology: 'triangle-list' }, });