Skip to content

Commit

Permalink
Use minSubgroupSize, maxSubgroupSize from GPUAdapterInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dneto0 committed Dec 5, 2024
1 parent 096f9fd commit 95d84eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ g.test('subgroup_size')
t.selectDeviceOrSkipTestCase('subgroups' as GPUFeatureName);
})
.fn(async t => {
interface SubgroupLimits extends GPUSupportedLimits {
interface SubgroupProperties extends GPUAdapterInfo {
minSubgroupSize: number;
maxSubgroupSize: number;
}
const { minSubgroupSize, maxSubgroupSize } = t.device.limits as SubgroupLimits;
const { minSubgroupSize, maxSubgroupSize } = t.device.adapterInfo as SubgroupProperties;

const wgx = t.params.sizes[0];
const wgy = t.params.sizes[1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1655,11 +1655,11 @@ g.test('subgroup_size')
t.selectDeviceOrSkipTestCase('subgroups' as GPUFeatureName);
})
.fn(async t => {
interface SubgroupLimits extends GPUSupportedLimits {
interface SubgroupProperties extends GPUAdapterInfo {
minSubgroupSize: number;
maxSubgroupSize: number;
}
const { minSubgroupSize, maxSubgroupSize } = t.device.limits as SubgroupLimits;
const { minSubgroupSize, maxSubgroupSize } = t.device.adapterInfo as SubgroupProperties;

const fsShader = `
enable subgroups;
Expand Down

0 comments on commit 95d84eb

Please sign in to comment.