Closed Bug 2083371 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63792 - webgl: Allow drawing to a framebuffer without a color attachment

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63792 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63792
Details from upstream follow.

mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:

webgl: Allow drawing to a framebuffer without a color attachment

This change allows drawing and clearing a framebuffer with no color attachment, such as a depth-only framebuffer. Previously, these operations failed with INVALID_OPERATION. The WebGL specification requires this error only when reading from a missing attachment (spec), so the check now applies only to readPixels and copyTex[Sub]Image2D. As a side effect, depth-only and stencil-only framebuffers are now lazily initialized.

Testing: More subtests of the multisampled depth and stencil renderbuffer initialization tests now pass. Added a new WPT test that covers drawing, clearing, and reading.
Reviewed in servo/servo#48972

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

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: 6

Chrome

OK : 1
PASS: 6

Safari

OK : 1
PASS: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/be4b5cbed387 https://hg.mozilla.org/integration/autoland/rev/0758b72c4159 [wpt PR 63792] - webgl: Allow drawing to a framebuffer without a color attachment, a=testonly
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.