[wpt-sync] Sync PR 62999 - webgl: Return the stencil masks from getParameter as unsigned integers
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 62999 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62999
Details from upstream follow.
mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:
webgl: Return the stencil masks from getParameter as unsigned integers
This makes getParameter return the stencil masks as unsigned integers, matching their
GLuinttype in the spec. The WebGL thread gets the writemasks fromGLStateand cast them toi32, so a mask of all ones read as-1. Because the initial writemasks are all ones, a fresh context reported-1too. The value masks were read back throughglGetIntegerv, which cannot return a fullGLuint, so they are now tracked inGLStatelike the writemasks.Testing: Added
/webgl/getParameter-stencil-masks.html. It checks the writemasks and reads the value masks back; both checks fail without this change.
Reviewed in servo/servo#48441
| 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=98097
| 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: 5
Chrome
OK : 1
PASS: 5
Safari
OK : 1
PASS: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /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/getParameter-stencil-masks.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/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.html [wpt.fyi]:
SKIP - /webgl/basic-unused-context-crash.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /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/getParameter-stencil-masks.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/idlharness.any.html [wpt.fyi]:
SKIP - /webgl/idlharness.any.worker.html [wpt.fyi]:
SKIP - /webgl/texImage2D.html [wpt.fyi]:
SKIP - /webgl/texSubImage2D.html [wpt.fyi]:
SKIP - /webgl/uniformMatrixNfv.html [wpt.fyi]:
SKIP - /webgl/basic-unused-context-crash.html [wpt.fyi]:
SKIP
Updated•1 month ago
|
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•