Closed Bug 2076118 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 62999 - webgl: Return the stencil masks from getParameter as unsigned integers

Categories

(Core :: Graphics: CanvasWebGL, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
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 GLuint type in the spec. The WebGL thread gets the writemasks from GLState and cast them to i32, so a mask of all ones read as -1. Because the initial writemasks are all ones, a fresh context reported -1 too. The value masks were read back through glGetIntegerv, which cannot return a full GLuint, so they are now tracked in GLState like 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

Component: web-platform-tests → Graphics: WebGPU
Product: Testing → Core

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

Tests Disabled in Gecko Infrastructure

Component: Graphics: WebGPU → Graphics: CanvasWebGL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/43cae91d4c4a https://hg.mozilla.org/integration/autoland/rev/a33f1583f1a6 [wpt PR 62999] - webgl: Return the stencil masks from getParameter as unsigned integers, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.