Closed Bug 1849433 Opened 1 year ago Closed 1 year ago

Some drivers handle extremely large draws poorly

Categories

(Core :: Graphics: CanvasWebGL, defect, P1)

defect

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox-esr115 119+ fixed
firefox117 --- wontfix
firefox118 --- wontfix
firefox119 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

References

Details

Attachments

(2 files)

Drivers are not always robust to extremely large draw calls, such as drawing INT32_MAX verts.
Such calls aren't useful in practice, so let's just cap this to something very-but-not-extremely high, like 30M.
Callers would still be able to split the draw call into smaller pieces, which is something we want to encourage anyway so as to not lock up the browser doing a single call.

Also:

  • Prune includes of WebGLContext.h from other headers.
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9ecfff5e220 Add webgl.max-vert-ids-per-draw, default 30M. r=gfx-reviewers,gw
Attachment #9349663 - Attachment description: Bug 1849433 - Move more initializer list entries to inlined. → Bug 1849433 - Code cleanups in dom/canvas/WebGL.
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5dbfb4ba3bf8 Add webgl.max-vert-ids-per-draw, default 30M. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/de29766d1de7 Code cleanups in dom/canvas/WebGL. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/6af19cd39b19 apply code formatting via Lando
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Flags: needinfo?(jgilbert)

Comment on attachment 9349662 [details]
Bug 1849433 - Add webgl.max-vert-ids-per-draw, default 30M.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This protects against poor drivers which can sometimes lead to sec issues.
    It's better to be proactive here rather than repeatedly reactive.
  • User impact if declined: Occasional long tail of sec issues due to poor drivers.
  • Fix Landed on Version: 119
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Not very risky generally, and quite safe if this rides out to Beta without regressions. I don't expect any regressions anyways though.
Attachment #9349662 - Flags: approval-mozilla-esr115?

Comment on attachment 9349662 [details]
Bug 1849433 - Add webgl.max-vert-ids-per-draw, default 30M.

Approved for 115.4esr.

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

Attachment

General

Created:
Updated:
Size: