Closed Bug 1666404 Opened 4 years ago Closed 4 years ago

Invalidate depth attachments immediately after rendering and before binding next FBO

Categories

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

Unspecified
Android
enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: jnicol, Assigned: jnicol)

References

Details

Attachments

(1 file)

On Mali and other tiled architectures this will allow the driver to skip writing out the depth data to memory, saving memory bandwidth.

Currently we only ever invalidate both color and depth attachments at the same time in TextureResolver::return_to_pool(). This is too late to avoid writing out the depth data to memory, and I don't think is used for picture cache targets at all.

This must be done before the draw framebuffer is unbound, to allow
tiled GPUs to avoid writing the contents back to memory.

Pushed by jnicol@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e37018e0a4d3
Invalidate depth attachments at end of render passes. r=gw
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: