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

Test WEBGL_multi_draw with offsets 2 GB into a 4 GB typed array. #3716

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

kenrussell
Copy link
Member

Test case for Chromium bug https://crbug.com/395670641 and Emscripten bug emscripten-core/emscripten#17539 .

@kenrussell
Copy link
Member Author

All 4 draw calls fail in current Chromium and pass with the fix for https://crbug.com/395670641 .

@kenrussell kenrussell requested a review from shrekshao February 14, 2025 20:36
@kenrussell
Copy link
Member Author

Thanks @shrekshao for your review. Landing this now, and will expand out with more tests of the multi-draw BaseVertex/BaseInstance extension, as well as 16 GB Wasm heap tests.

@kenrussell kenrussell merged commit 64d5c9e into KhronosGroup:main Feb 14, 2025
2 checks passed
@kenrussell kenrussell deleted the test-wasm-multi-draw branch February 14, 2025 22:32
aarongable pushed a commit to chromium/chromium that referenced this pull request Feb 15, 2025
Reuse the Int32List and Uint32List typedefs from
WebGLRenderingContextBase, which fixed many other entry points in the
same way, using PassAsSpan and BufferSourceTypeNoSizeLimit.

This also allowed the MakeSpan helpers and Impl functions to be
removed from the multi-draw extensions, simplifying the code.

Tested with forthcoming WebGL conformance test in
KhronosGroup/WebGL#3716 .

Fixed: 395670641
Change-Id: If3d528888a2348755c7445b0f9a1bc2075c63abc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6270738
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Shrek Shao <shrekshao@google.com>
Cr-Commit-Position: refs/heads/main@{#1420801}
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