Skip to content

Commit f42b4e6

Browse files
If BC is supported, BC Sliced 3D must be supported (#4379)
1 parent 3e5af4a commit f42b4e6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/webgpu/api/validation/capability_checks/features/texture_formats.spec.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ g.test('check_capability_guarantees')
541541
.desc(
542542
`check any adapter returned by requestAdapter() must provide the following guarantees:
543543
- "texture-compression-bc" is supported or both "texture-compression-etc2" and "texture-compression-astc" are supported
544-
- either "texture-compression-bc" or "texture-compression-bc-sliced-3d" is supported, both must be supported.
544+
- if "texture-compression-bc-sliced-3d" is supported, then "texture-compression-bc" must be supported.
545545
- if "texture-compression-astc-sliced-3d" is supported, then "texture-compression-astc" must be supported.
546546
`
547547
)
@@ -562,11 +562,8 @@ g.test('check_capability_guarantees')
562562
'Adapter must support BC or both ETC2 and ASTC'
563563
);
564564

565-
if (supportsBC || supportsBCSliced3D) {
566-
t.expect(
567-
supportsBC && supportsBCSliced3D,
568-
'If BC or BC Sliced 3D is supported, both must be'
569-
);
565+
if (supportsBCSliced3D) {
566+
t.expect(supportsBC, 'If BC Sliced 3D is supported, BC must be supported');
570567
}
571568

572569
if (supportsASTCSliced3D) {

0 commit comments

Comments
 (0)