Closed Bug 2076792 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63105 - webgl: Accept HALF_FLOAT in WebGL 2 texture uploads

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

webgl: Accept HALF_FLOAT in WebGL 2 texture uploads

This makes texImage2D and texImage3D on a WebGL 2 context accept HALF_FLOAT, it is listed by the WebGL 2 spec for the *16F formats. The type was parsed only from WebGL 1's HALF_FLOAT_OES, which has a different enum value, so every half-float upload in WebGL 2 generated INVALID_ENUM, while HALF_FLOAT_OES, an extension enum WebGL 2 does not define, was accepted. WebGL 1 is unchanged.

Testing: Added /webgl/texImage-half-float-type.html; three of its four tests fail without this change.
conformance2/textures/image/tex-2d-rgba16f-rgba-half_float.html and tex-2d-rgb16f-rgb-half_float.html now pass additional subtests, so their expectations are updated.
tex-2d-{r16f-red,rg16f-rg,r11f_g11f_b10f-rgb,rgb9_e5-rgb}-half_float.html now crash instead of error: their image uploads reach the missing format conversions of #<!-- nolink -->42368.
Reviewed in servo/servo#48536

Component: web-platform-tests → Graphics: WebGPU
Product: Testing → Core
Component: Graphics: WebGPU → Graphics: CanvasWebGL
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

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

Chrome

OK : 1
PASS: 4

Safari

OK : 1
PASS: 4

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/dd3f3573d6f1 https://hg.mozilla.org/integration/autoland/rev/ccd1e56ad001 [wpt PR 63105] - webgl: Accept HALF_FLOAT in WebGL 2 texture uploads, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.