[wpt-sync] Sync PR 64117 - webgl: Fix texImage3D size limits for levels and 2D arrays
Categories
(Core :: Graphics: CanvasWebGL, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64117 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64117
Details from upstream follow.
mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:
webgl: Fix texImage3D size limits for levels and 2D arrays
This makes
texImage3Dvalidatelevelbefore using it to compute the size limits, and appliesMAX_TEXTURE_SIZEandMAX_ARRAY_TEXTURE_LAYERStoTEXTURE_2D_ARRAYtextures, as required by OpenGL ES 3.0 3.8.3.Previously, a
levelof 32 or greater caused a division-by-zero panic that crashed the script thread. Additionally, 2D array textures were limited byMAX_3D_TEXTURE_SIZEin every dimension, and the maximum number of layers was halved at each mipmap level.Part of #<!-- nolink -->37738.
Testing: Addswebgl/texImage3D-size-limits.html, which reproduces the crash without this change.
Reviewed in servo/servo#49201
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=114191
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 21 tests
Status Summary
Firefox
OK : 1
PASS: 4
Chrome
OK : 1
PASS: 4
Safari
OK : 1
PASS: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /webgl/basic-unused-context-crash.html [wpt.fyi]:
SKIP - /webgl/bufferSubData.html [wpt.fyi]:
SKIP - /webgl/compressed-tex-sub-image-2d-without-base-image.html [wpt.fyi]:
SKIP - /webgl/compressedTexImage2D.html [wpt.fyi]:
SKIP - /webgl/compressedTexSubImage2D.html [wpt.fyi]:
SKIP - /webgl/drawingBufferToneMapping.html [wpt.fyi]:
SKIP - /webgl/framebuffer-initial-state.html [wpt.fyi]:
SKIP - /webgl/getParameter-stencil-masks.html [wpt.fyi]:
SKIP - /webgl/getUniformLocation-uniform-block-member.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/stencilMaskSeparate-front-and-back.html [wpt.fyi]:
SKIP - /webgl/texImage-half-float-type.html [wpt.fyi]:
SKIP - /webgl/texImage2D-source-ignores-unpack-alignment.html [wpt.fyi]:
SKIP - /webgl/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texImage3D-size-limits.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK) - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.html [wpt.fyi]:
SKIP - /webgl/webgl2-drawing-buffer-bits.html [wpt.fyi]:
SKIP - /webgl/blitFramebuffer-presents-drawing-buffer.html [wpt.fyi]:
SKIP - /webgl/clearBufferfv-presents-drawing-buffer.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /webgl/basic-unused-context-crash.html [wpt.fyi]:
SKIP - /webgl/bufferSubData.html [wpt.fyi]:
SKIP - /webgl/compressed-tex-sub-image-2d-without-base-image.html [wpt.fyi]:
SKIP - /webgl/compressedTexImage2D.html [wpt.fyi]:
SKIP - /webgl/compressedTexSubImage2D.html [wpt.fyi]:
SKIP - /webgl/drawingBufferToneMapping.html [wpt.fyi]:
SKIP - /webgl/framebuffer-initial-state.html [wpt.fyi]:
SKIP - /webgl/getParameter-stencil-masks.html [wpt.fyi]:
SKIP - /webgl/getUniformLocation-uniform-block-member.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/stencilMaskSeparate-front-and-back.html [wpt.fyi]:
SKIP - /webgl/texImage-half-float-type.html [wpt.fyi]:
SKIP - /webgl/texImage2D-source-ignores-unpack-alignment.html [wpt.fyi]:
SKIP - /webgl/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texImage3D-size-limits.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK) - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.html [wpt.fyi]:
SKIP - /webgl/webgl2-drawing-buffer-bits.html [wpt.fyi]:
SKIP - /webgl/blitFramebuffer-presents-drawing-buffer.html [wpt.fyi]:
SKIP - /webgl/clearBufferfv-presents-drawing-buffer.html [wpt.fyi]:
SKIP
Comment 4•23 days ago
|
||
| bugherder | ||
Description
•