Skip to content

compositor/native: Allow scanout for offscreen rotated views

Robert Mader requested to merge rmader/mutter:offscreen-rotate-scanout into main

From the main commit:

If a stage view uses an offscreen framebuffer exclusively for
rotation and a Wayland client provides pre-rotated buffers,
we should try to use scanout.
This saves us one copy more than scanout in the onscreen case,
i.e. two fullscreen copies in total.

Offscreen rotation is notably used for all 90/270 degree rotations
at the moment, as using display hardware for them is apparently
more complex than for x-/y-flips and can even have detrimental
effects on power consumption.

This can be tested with `weston-simple-egl`.
Edited by Robert Mader

Merge request reports

Loading