[wpt-sync] Sync PR 63026 - webgl: Ignore UNPACK_ALIGNMENT for texImage2D from a TexImageSource
Categories
(Core :: Graphics: CanvasWebGL, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63026 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63026
Details from upstream follow.
mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:
webgl: Ignore UNPACK_ALIGNMENT for texImage2D from a TexImageSource
This makes the WebGL 2
texImage2Doverload that takes a size and aTexImageSourceupload the source's pixels with an alignment of 1, as the WebGL 1 overloads already do. It previously passed the context'sUNPACK_ALIGNMENTinstead, although the pixels of a DOM source are always tightly packed and the WebGL 2 spec saysUNPACK_ALIGNMENTis ignored
for these uploads. Such uploads could be skewed, and withUNPACK_FLIP_Y_WEBGLenabled, could cause the WebGL thread to panic.Testing: Added
/webgl/texImage2D-source-ignores-unpack-alignment.html, which crashes without this change.
conformance2/textures/image/tex-2d-rgb8-rgb-unsigned_byte.htmlno longer crashes, so its expectations are updated.
Reviewed in servo/servo#48479
| 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=98604
| 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 12 tests
Status Summary
Firefox
OK : 1
PASS: 2
Chrome
OK : 1
PASS: 2
Safari
OK : 1
PASS: 2
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/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/texImage2D-source-ignores-unpack-alignment.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/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.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/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/texImage2D-source-ignores-unpack-alignment.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/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.html [wpt.fyi]:
SKIP
Updated•1 month ago
|
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•