Closed Bug 2076312 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63026 - webgl: Ignore UNPACK_ALIGNMENT for texImage2D from a TexImageSource

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 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 texImage2D overload that takes a size and a TexImageSource upload the source's pixels with an alignment of 1, as the WebGL 1 overloads already do. It previously passed the context's UNPACK_ALIGNMENT instead, although the pixels of a DOM source are always tightly packed and the WebGL 2 spec says UNPACK_ALIGNMENT is ignored
for these uploads. Such uploads could be skewed, and with UNPACK_FLIP_Y_WEBGL enabled, 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.html no longer crashes, so its expectations are updated.
Reviewed in servo/servo#48479

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

Tests Disabled in Gecko Infrastructure

Component: Graphics: WebGPU → Graphics: CanvasWebGL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/84e06f01775d https://hg.mozilla.org/integration/autoland/rev/ab349101cb03 [wpt PR 63026] - webgl: Ignore UNPACK_ALIGNMENT for texImage2D from a TexImageSource, 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.