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

Tolerate throws in wasm/* tests, add 2gb-in-4gb variants. #3665

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

kdashg
Copy link
Contributor

@kdashg kdashg commented Jul 18, 2024

For browsers that don't support this large of wasm memory sizes, consider as PASS, so that browser features don't block webgl conformance.
For UAs that throw on use of large TypedArrays, FAIL but safely.

Also, Firefox does support ~4GB wasm memory sizes, but currently throws when >2GB TypedArray views are passed to entrypoints. However, Firefox does support <2GB-sized views of >2GB ArrayBuffers, so add tests for that.
This reflects the ability for apps to use large WASM heaps, so long as only smaller views are passed to webgl.

For browsers that don't support this large of wasm memory sizes,
consider as PASS, so that browser features don't block webgl
conformance.
For UAs that throw on use of large TypedArrays, FAIL but safely.

Also, Firefox *does* support ~4GB wasm memory sizes, but currently
throws when >2GB TypedArray views are passed to entrypoints. However,
Firefox does support <2GB-sized views of >2GB ArrayBuffers, so add tests
for that.
This reflects the ability for apps to use large WASM heaps, so long as
only smaller views are passed to webgl.
@kdashg kdashg requested a review from kenrussell July 18, 2024 00:58
@kdashg
Copy link
Contributor Author

kdashg commented Jul 18, 2024

Chrome Canary: All tests pass
Firefox Nightly: 2gb-on-4gb pass, 4gb fail, 16gb "pass" (request for too many pages)

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for revising the tests. A few small requests about making all the test descriptions more similar; please feel free to merge yourself. Thanks.

@kdashg kdashg merged commit 2d0e7f8 into KhronosGroup:main Jul 25, 2024
2 checks passed
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