Closed Bug 1898621 Opened 6 months ago Closed 5 months ago

WebRender should log why it failed to promote a surface

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: bradwerth, Assigned: bradwerth)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

As we rely on surface promotion to support wide color content, it is increasingly important that we can understand why a promotable surface was rejected for promotion. At minimum, we need this to go to gfxDebug, possibly gfxWarning. Eventually we should consider exposing this to web authors through the Developer Console or similar mechanism.

See Also: → 1899938

This uses the warn macro for promotion errors. It's not clear this will
be useful for web authors, but hopefully it's useful for Firefox
developers.

Currently this spams warnings for unpromoted Image prims, which is not
great. It also doesn't have a great way of identifying which prim is
responsible for the error. I'll try to fix this up before marking this
as ready for review.

Attachment #9405123 - Attachment description: WIP: Bug 1898621: Provide error results for surface promotion methods. → Bug 1898621: Provide error results for surface promotion methods.
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4b3fe2e03c6 Provide error results for surface promotion methods. r=gw
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/032081e46073 Provide error results for surface promotion methods. r=gw,nical
Pushed by smolnar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7f221a9e1db Fix webrender bustages. r=bradwerth CLOSED TREE
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Regressions: 1901370

I asked in #sheriffs for this to be backed out since merge day is monday.

Backed out as requested by tnikkel for causing bug 1901370

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 128 Branch → ---
Regressions: 1901400

Sorry for the trouble. I'll figure out the regression issues and re-land this after the merge date.

Flags: needinfo?(bwerth)
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a06f8745fb4e Provide error results for surface promotion methods. r=gw,nical
Status: REOPENED → RESOLVED
Closed: 5 months ago5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: