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

Move MaxLimitsTest to MaxLimitTestMixin #4085

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

greggman
Copy link
Contributor

I wanted to use MaxLimitsTest with resource_compatibility.spec.ts but that file's tests are based on CreateRenderPipelineValidationTest which itself is based on ValidationTest and so would force making ValidationTest be based on MaxLimitsTest. I actually think thats a good idea. The default should be max limits. But, it breaks too many things.

So, max MaxLimitsTest a mixin.

@greggman greggman requested a review from kainino0x December 10, 2024 09:23
Copy link
Collaborator

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM regardless of comment

/**
* A Test that requests all the max limits from the adapter on the device.
*/
export class MaxLimitsTest extends GPUTest {
export class MaxLimitsTest2 extends GPUTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Why 2? Is this used at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, sorry, Just forgot to delete it.

I wanted to use MaxLimitsTest with resource_compatibility.spec.ts
but that file's tests are based on `CreateRenderPipelineValidationTest`
which itself is based on `ValidationTest` and so would force making
`ValidationTest` be based on `MaxLimitsTest`. I actually think thats
a good idea. The default should be max limits. But, it breaks too
many things.

So, MaxLimitsTest a mixin.
@greggman greggman merged commit a7274c9 into gpuweb:main Dec 11, 2024
1 check passed
@greggman greggman deleted the max-limits-mixin branch December 11, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants