Closed Bug 1766056 Opened 3 years ago Closed 3 years ago

Some AV1 video is broken when not using the compositor fastpath with swgl

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr91 --- fixed
firefox99 --- wontfix
firefox100 --- fixed
firefox101 --- fixed

People

(Reporter: jrmuizel, Assigned: lsalzman)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The brush_yuv_image slow path expected a YUV color matrix that applies scaling,
whereas we set up a matrix for SWGL that had no scaling to support the fast path.
To work around the fact that both paths have different scaling requirements, we
pass the matrix with scaling down to the fast path and undo the scaling later
when constructing SWGL's internal YUVMatrix from it. This allows both paths to
just use the same matrix and avoids the footgun.

Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Severity: -- → S2
Keywords: regression
OS: Unspecified → All
Regressed by: 1459526
Hardware: Unspecified → All

Set release status flags based on info from the regressing bug 1459526

Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b91b0142c1ed Fix YUV color matrix for SWGL slow and fast paths. r=jrmuizel

Backed out for causing reftest failures on color_quads/720p.png.bt709.bt709.tv.yuv420p10.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=b91b0142c1edecc0ac17525e79dea7e7db868c1c&selectedTaskRun=cFx0y9vQR2-YVfK-YeAEFQ.0

Failure log: https://treeherder.mozilla.org/logviewer?job_id=375545381&repo=autoland

Backout link: https://hg.mozilla.org/integration/autoland/rev/431286039fcf740db79492339a6d7f1463576cb7

Looks like patch from Bug 1763781 fixes these failures but that was backed out for wpt failures at canvas-display-p3-drawImage-ImageBitmap-video.html.

Flags: needinfo?(lsalzman)
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a422a23ba118 Fix YUV color matrix for SWGL slow and fast paths. r=jrmuizel
Flags: needinfo?(lsalzman)
Blocks: 1765872
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Hey Lee, can we request beta uplift on this? Probably can't get into the RC but it would make a good dot release ride along in 100 if we feel comfortable with doing that.

Flags: needinfo?(lsalzman)
Has Regression Range: --- → yes

I assume we need this on ESR also?

Comment on attachment 9273495 [details]
Bug 1766056 - Fix YUV color matrix for SWGL slow and fast paths. r?jrmuizel

Beta/Release Uplift Approval Request

  • User impact if declined: Visual artifacts when display HDR video (i.e. Netflix) on Software WebRender.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Fix is confined to some changes to the Software WebRender shader code. Only impacts HDR video.
  • String changes made/needed:
  • Is Android affected?: Yes

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration:
  • User impact if declined:
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky):
Flags: needinfo?(lsalzman)
Attachment #9273495 - Flags: approval-mozilla-esr91?
Attachment #9273495 - Flags: approval-mozilla-beta?

Confirming, I was able to reproduce in release, and checking today's nightly was not able to reproduce.

Note to reliably reproduce you need to resize the browser window during the preview video.

Comment on attachment 9273495 [details]
Bug 1766056 - Fix YUV color matrix for SWGL slow and fast paths. r?jrmuizel

Approved for 100.0rc1

Attachment #9273495 - Flags: approval-mozilla-beta? → approval-mozilla-release+

Comment on attachment 9273495 [details]
Bug 1766056 - Fix YUV color matrix for SWGL slow and fast paths. r?jrmuizel

Approved for 91.9esr.

Attachment #9273495 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: