Skip to content

cogl/onscreen: Discard depth/stencil before swapping buffers

Erico Nunes requested to merge enunes/mutter:discard-depth-stencil into main

Marking the the depth/stencil as discarded before swapping buffers for the screen signals the GPU that we don't need to keep them around for the future.

This helps performance by reducing memory bandwidth usage in some GPUs which may optimize to not write those buffers back to memory at all after rendering, when they would just be cleared right after that anyway.

Merge request reports