Closed Bug 1731748 Opened 3 years ago Closed 3 years ago

Handle GL_OUT_OF_MEMORY in WebRender

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

This patch checks glGetError after updating the texture cache and at the end of the frame looking for out-of-memory errors, in which case the frame is cancelled and a memory pressure event is triggered. If we fail to render too many times in succession due to OOM, trigger a crash.

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a5f509c40b9e React to GL_OUT_OF_MEMORY errors. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Blocks: 1729779
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: