Skip to content

Commit

Permalink
Compat: fix more float16(32)-renderable tests (#4159)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao authored Jan 25, 2025
1 parent a9a0106 commit 5a937b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ g.test('color,component_count')
.beforeAllSubcases(t => {
const info = kTextureFormatInfo[t.params.format];
t.skipIfTextureFormatNotSupported(t.params.format);
t.selectDeviceForRenderableColorFormatOrSkipTestCase(t.params.format);
t.selectDeviceOrSkipTestCase(info.feature);
})
.fn(t => {
Expand Down
11 changes: 10 additions & 1 deletion src/webgpu/api/operation/texture_view/write.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,23 @@ TODO: Test rgb10a2uint when TexelRepresentation.numericRange is made per-compone
.combine('viewUsageMethod', kTextureViewUsageMethods)
)
.beforeAllSubcases(t => {
const { format, method } = t.params;
const { format, method, sampleCount } = t.params;
t.skipIfTextureFormatNotSupported(format);

switch (method) {
case 'storage-write-compute':
case 'storage-write-fragment':
// Still need to filter again for compat mode.
t.skipIfTextureFormatNotUsableAsStorageTexture(format);
if (sampleCount > 1) {
t.skipIfMultisampleNotSupportedForFormat(format);
}
break;
case 'render-pass-resolve':
case 'render-pass-store':
// Requires multisample in `writeTextureAndGetExpectedTexelView`
t.skipIfMultisampleNotSupportedForFormat(format);
t.selectDeviceForRenderableColorFormatOrSkipTestCase(format);
break;
}
})
Expand Down

0 comments on commit 5a937b0

Please sign in to comment.