Skip to content

Commit 1a90098

Browse files
authored
Correct MAINTENANCE_TODO about TRANSIENT_ATTACHMENT (#4633)
1 parent 408288e commit 1a90098

9 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/webgpu/api/operation/render_pass/resolve.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Test basic render pass resolve behavior for combinations of:
5959
const { colorFormat } = t.params;
6060
t.skipIfTextureFormatNotSupported(colorFormat);
6161
t.skipIfTextureFormatNotResolvable(colorFormat);
62-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
62+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
6363
if (t.params.transientColorAttachment || t.params.transientDepthStencilAttachment) {
6464
t.skipIfTransientAttachmentNotSupported();
6565
}

src/webgpu/api/operation/render_pass/transient_attachment.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ g.test('increasing_attachments_count')
1414
`
1515
)
1616
.fn(t => {
17-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
17+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
1818
t.skipIfTransientAttachmentNotSupported();
1919

2020
const maxAttachments = t.device.limits.maxColorAttachments;
@@ -58,7 +58,7 @@ g.test('overlapping_transient_attachments')
5858
`
5959
)
6060
.fn(t => {
61-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
61+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
6262
t.skipIfTransientAttachmentNotSupported();
6363

6464
const encoder = t.device.createCommandEncoder();

src/webgpu/api/validation/createBindGroup.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ g.test('texture_binding_must_have_correct_usage')
220220
"The test requires 'r32float' multisampled support which compat mode doesn't guarantee."
221221
);
222222

223-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
223+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
224224
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
225225
t.skipIfTransientAttachmentNotSupported();
226226
}
@@ -803,7 +803,7 @@ g.test('storage_texture,usage')
803803

804804
const usage = usage0 | usage1;
805805

806-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
806+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
807807
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
808808
t.skipIfTransientAttachmentNotSupported();
809809
}
@@ -1242,7 +1242,7 @@ g.test('external_texture,texture_view,usage')
12421242

12431243
const usage = usage0 | usage1;
12441244

1245-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
1245+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
12461246
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
12471247
t.skipIfTransientAttachmentNotSupported();
12481248
}

src/webgpu/api/validation/createTexture.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ g.test('sampleCount,valid_sampleCount_with_other_parameter_varies')
358358
if ((usage & GPUConst.TextureUsage.RENDER_ATTACHMENT) !== 0) {
359359
t.skipIfTextureFormatNotUsableAsRenderAttachment(format);
360360
}
361-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
361+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
362362
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
363363
t.skipIfTransientAttachmentNotSupported();
364364
}
@@ -1035,7 +1035,7 @@ g.test('texture_usage')
10351035
usage,
10361036
};
10371037

1038-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
1038+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
10391039
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
10401040
t.skipIfTransientAttachmentNotSupported();
10411041
}
@@ -1075,7 +1075,7 @@ g.test('depthOrArrayLayers_and_mipLevelCount_for_transient_attachments')
10751075
.combine('mipLevelCount', [1, 2])
10761076
)
10771077
.fn(t => {
1078-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
1078+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
10791079
t.skipIfTransientAttachmentNotSupported();
10801080

10811081
const { format, depthOrArrayLayers, mipLevelCount } = t.params;

src/webgpu/api/validation/render_pass/render_pass_descriptor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ g.test('color_attachments,loadOp_storeOp')
741741
t.skipIfTextureFormatNotSupported(format);
742742
t.skipIfTextureFormatNotUsableAsRenderAttachment(format);
743743

744-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
744+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
745745
if (transientTexture) {
746746
t.skipIfTransientAttachmentNotSupported();
747747
}
@@ -1129,7 +1129,7 @@ g.test('depth_stencil_attachment,loadOp_storeOp_match_depthReadOnly_stencilReadO
11291129

11301130
t.skipIfTextureFormatNotSupported(format);
11311131

1132-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
1132+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
11331133
if (transientTexture) {
11341134
t.skipIfTransientAttachmentNotSupported();
11351135
}

src/webgpu/api/validation/texture/bgra8unorm_storage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Test that it is invalid to configure a GPUCanvasContext to 'GPUStorageBinding' u
106106
.fn(t => {
107107
const { canvasType, usage } = t.params;
108108

109-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
109+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
110110
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
111111
t.skipIfTransientAttachmentNotSupported();
112112
}
@@ -155,7 +155,7 @@ with 'bgra8unorm-storage' enabled.
155155
.fn(t => {
156156
const { canvasType, usage } = t.params;
157157

158-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
158+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
159159
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
160160
t.skipIfTransientAttachmentNotSupported();
161161
}

src/webgpu/gpu_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ export class GPUTestBase extends Fixture<GPUTestSubcaseBatchState> {
675675
}
676676

677677
/** Skips this test case if the GPUTextureUsage `TRANSIENT_ATTACHMENT` is *not* supported. */
678-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
678+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
679679
skipIfTransientAttachmentNotSupported() {
680680
const isTransientAttachmentSupported = 'TRANSIENT_ATTACHMENT' in GPUTextureUsage;
681681
this.skipIf(

src/webgpu/idl/constants/flags.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const kTextureUsageExp: {
4646
TRANSIENT_ATTACHMENT: 0x20,
4747
};
4848
g.test('TextureUsage,count').fn(t => {
49-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
49+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
5050
if (!('TRANSIENT_ATTACHMENT' in GPUTextureUsage)) {
5151
delete kTextureUsageExp.TRANSIENT_ATTACHMENT;
5252
}
@@ -57,7 +57,7 @@ g.test('TextureUsage,values')
5757
.fn(t => {
5858
const { key } = t.params;
5959

60-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
60+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
6161
t.skipIf(key === 'TRANSIENT_ATTACHMENT' && !('TRANSIENT_ATTACHMENT' in GPUTextureUsage));
6262

6363
t.assertMember(GPUTextureUsage, kTextureUsageExp, key);

src/webgpu/web_platform/canvas/configure.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ g.test('usage')
220220
.fn(t => {
221221
const { canvasType, usage } = t.params;
222222

223-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
223+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
224224
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
225225
t.skipIfTransientAttachmentNotSupported();
226226
}
@@ -355,7 +355,7 @@ g.test('invalid_usage')
355355
.fn(t => {
356356
const { canvasType, format, usage } = t.params;
357357

358-
// MAINTENANCE_TODO(#4509): Remove this when TRANSIENT_ATTACHMENT is added to the WebGPU spec.
358+
// MAINTENANCE_TODO(#4509): Remove this after all implementations have TRANSIENT_ATTACHMENT.
359359
if ((usage & GPUConst.TextureUsage.TRANSIENT_ATTACHMENT) !== 0) {
360360
t.skipIfTransientAttachmentNotSupported();
361361
}

0 commit comments

Comments
 (0)