[PATCH 3/5] present: Add mode for pixmap flips per window

Michel Dänzer michel at daenzer.net
Wed Aug 30 02:35:11 UTC 2017


On 30/08/17 12:24 AM, Roman Gilg wrote:
> This patch adds a new mode to the internal flip mode API, that
> enables per window flips on capable hardware platforms.
> 
> Pixmap flips are possible for every window with a parent window and
> without redirection.

This sentence is a bit confusing. In rootless mode, a toplevel window
has no parent, but may use flips, right?


> Besides the per window flips the new mode diverges from the old
> screen flipping by holding back the PresentIdleNotify event for a
> flipped pixmaps of a preceding frame until present_winmode_event_notify
> is called once more.

As discussed before, this should be kept separate from the flip mode, as
it would also be useful with per-screen flips.

My suggestion was to add a PresentCapability* flag for this. If the
driver sets this flag, it will call present_event_notify separately when
the flip completes for the target CRTC and when the previous buffer can
be re-used.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list