From 95d84ebc53f0b535dab82b7fbfafdd7fd9ba9658 Mon Sep 17 00:00:00 2001 From: David Neto Date: Fri, 22 Nov 2024 12:18:29 -0500 Subject: [PATCH] Use minSubgroupSize, maxSubgroupSize from GPUAdapterInfo --- .../shader/execution/shader_io/compute_builtins.spec.ts | 4 ++-- .../shader/execution/shader_io/fragment_builtins.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webgpu/shader/execution/shader_io/compute_builtins.spec.ts b/src/webgpu/shader/execution/shader_io/compute_builtins.spec.ts index a08d6eb39533..bcce224a4c14 100644 --- a/src/webgpu/shader/execution/shader_io/compute_builtins.spec.ts +++ b/src/webgpu/shader/execution/shader_io/compute_builtins.spec.ts @@ -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]; diff --git a/src/webgpu/shader/execution/shader_io/fragment_builtins.spec.ts b/src/webgpu/shader/execution/shader_io/fragment_builtins.spec.ts index bb7f3b113e26..9520e01e241b 100644 --- a/src/webgpu/shader/execution/shader_io/fragment_builtins.spec.ts +++ b/src/webgpu/shader/execution/shader_io/fragment_builtins.spec.ts @@ -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;