Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tests to AllFeaturesAndMaxLimitsGPUTest #4203

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/map_ArrayBuffer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ TODO: Add tests for any other Web APIs that can detach ArrayBuffers.

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { timeout } from '../../../../common/util/timeout.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';
import { checkElementsEqual } from '../../../util/check_contents.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('postMessage')
.desc(
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/map_detach.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { getGPU } from '../../../../common/util/navigator_gpu.js';
import { assert } from '../../../../common/util/util.js';
import { GPUConst } from '../../../constants.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('while_mapped')
.desc(
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/map_oom.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const description =
import { kUnitCaseParamsBuilder } from '../../../../common/framework/params_builder.js';
import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { kBufferUsages } from '../../../capability_info.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';
import { kMaxSafeMultipleOf8 } from '../../../util/math.js';

const oomAndSizeParams = kUnitCaseParamsBuilder
Expand All @@ -18,7 +18,7 @@ const oomAndSizeParams = kUnitCaseParamsBuilder
: [16];
});

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('mappedAtCreation')
.desc(
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/mapping_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export class MappingTest extends GPUTest {
export class MappingTest extends AllFeaturesMaxLimitsGPUTest {
checkMapWrite(
buffer: GPUBuffer,
offset: number,
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/threading.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ TODO: Look for more things to test.
`;

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('serialize')
.desc(
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/compute/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Basic command buffer compute tests.
`;

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';
import { checkElementsEqualGenerated } from '../../../util/check_contents.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('memcpy').fn(t => {
const data = new Uint32Array([0x01020304]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ TODO:
`;

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/compute_pipeline/overrides.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Compute pipeline using overridable constants test.

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { range } from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

class F extends GPUTest {
class F extends AllFeaturesMaxLimitsGPUTest {
async ExpectShaderOutputWithConstants(
isAsync: boolean,
expected: Uint32Array | Float32Array,
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/labels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Tests for object labels.
import { makeTestGroup } from '../../../common/framework/test_group.js';
import { keysOf } from '../../../common/util/data_tables.js';
import { getGPU } from '../../../common/util/navigator_gpu.js';
import { GPUTest } from '../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest, GPUTest } from '../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

type TestFunction = (t: GPUTest, label: string) => Promise<void> | void;
const kTestFunctions: { [name: string]: TestFunction } = {
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/onSubmittedWorkDone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Note that any promise timeouts will be detected by the framework.

import { makeTestGroup } from '../../../common/framework/test_group.js';
import { range } from '../../../common/util/util.js';
import { GPUTest } from '../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('without_work')
.desc(`Await onSubmittedWorkDone once without having submitted any work.`)
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/pipeline/default_layout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Tests for default pipeline layouts.
`;

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('getBindGroupLayout_js_object')
.desc(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Tests for the creation of pipeline layouts with null bind group layouts.

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUConst } from '../../../constants.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

g.test('pipeline_layout_with_null_bind_group_layout,rendering')
.desc(
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/queue/writeBuffer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const description = 'Operation tests for GPUQueue.writeBuffer()';

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { memcpy, range } from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';
import { align } from '../../../util/math.js';

const kTypedArrays = [
Expand All @@ -25,7 +25,7 @@ type WriteBufferSignature = {
dataSize?: number; // In elements when useArrayBuffer === false, bytes otherwise
};

class F extends GPUTest {
class F extends AllFeaturesMaxLimitsGPUTest {
calculateRequiredBufferSize(writes: WriteBufferSignature[]): number {
let bufferSize = 0;
// Calculate size of final buffer
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/reflection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Tests that object attributes which reflect the object's creation properties are

import { makeTestGroup } from '../../../common/framework/test_group.js';
import { GPUConst } from '../../constants.js';
import { GPUTest } from '../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

function* extractValuePropertyKeys(obj: { [k: string]: unknown }) {
for (const key in obj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ ShaderModule CompilationInfo tests.

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { assert } from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);
export const g = makeTestGroup(AllFeaturesMaxLimitsGPUTest);

const kValidShaderSources = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/vertex_state/index_format.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Test indexing, index format and primitive restart.
`;

import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { GPUTest } from '../../../gpu_test.js';
import { AllFeaturesMaxLimitsGPUTest } from '../../../gpu_test.js';
import { getTextureCopyLayout } from '../../../util/texture/layout.js';

const kHeight = 4;
Expand Down Expand Up @@ -48,7 +48,7 @@ const { byteLength, bytesPerRow, rowsPerImage } = getTextureCopyLayout(kTextureF
1,
]);

class IndexFormatTest extends GPUTest {
class IndexFormatTest extends AllFeaturesMaxLimitsGPUTest {
MakeRenderPipeline(
topology: GPUPrimitiveTopology,
stripIndexFormat?: GPUIndexFormat
Expand Down