Skip to content

Commit

Permalink
Remove subgroup f16 requirement check
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter McNeeley committed Dec 5, 2024
1 parent cfd96ad commit 71a81c4
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = quadBroadcast(0h, 0);
}`;
const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kArgumentTypes = objectsToRecord(kAllScalarsAndVectors);

const kStages: Record<string, string> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const).combine('op', kOps))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = ${t.params.op}(0h);
}`;

const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kStages: Record<string, (op: string) => string> = {
constant: (op: string) => {
return `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = subgroupBroadcast(0h, 0);
}`;

const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kArgumentTypes = objectsToRecord(kAllScalarsAndVectors);

const kStages: Record<string, string> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = subgroupBroadcastFirst(0h);
}`;

const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kArgumentTypes = objectsToRecord(kAllScalarsAndVectors);

const kStages: Record<string, string> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const).combine('op', kOps))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = ${t.params.op}(0h);
}`;

const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kStages: Record<string, (op: string) => string> = {
constant: (op: string) => {
return `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,6 @@ fn foo() {
t.expectCompileResult(t.params.enable, wgsl);
});

g.test('requires_subgroups_f16')
.desc('Validates that the subgroups_f16 feature is required (deprecated)')
.params(u => u.combine('enable', [false, true] as const).combine('op', kOps))
.beforeAllSubcases(t => {
const features: GPUFeatureName[] = ['shader-f16', 'subgroups' as GPUFeatureName];
if (t.params.enable) {
features.push('subgroups-f16' as GPUFeatureName);
}
t.selectDeviceOrSkipTestCase(features);
})
.fn(t => {
const wgsl = `
enable f16;
enable subgroups;
${t.params.enable ? 'enable subgroups_f16;' : ''}
fn foo() {
_ = ${t.params.op}(0h, 0);
}`;

const kAlwaysCompiles = true;
t.expectCompileResult(kAlwaysCompiles, wgsl);
});

const kStages: Record<string, (op: string) => string> = {
constant: (op: string) => {
return `
Expand Down

0 comments on commit 71a81c4

Please sign in to comment.