[PATCH xserver] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

Michel Dänzer michel at daenzer.net
Fri Mar 25 06:32:32 PDT 2011

On Fre, 2011-03-25 at 06:10 -0700, Jakob Bornecrantz wrote: 
> On Mar 25, 2011, at 13:47, Ville Syrjälä wrote:
> > On Fri, Mar 25, 2011 at 12:35:37PM +0100, ext Michel Dänzer wrote:
> >> From: Michel Dänzer <daenzer at vmware.com>
> >> 
> >> Without this, when a compositing manager unredirects a fullscreen window which
> >> uses DRI2 and page flipping, the DRI2 buffer information for the compositing
> >> manager's output window (typically the Composite Overlay Window or root window)
> >> may become stale, resulting in all kinds of hilarity.
> > 
> > Make sense to me.
> > 
> > BTW I'm toying around with offscreen flipping, and for that I'm using
> > the following patch to also invalidate the window's pixmap (the patch
> > is against our internal codebase which has the DRI2 ref counting
> > patches from Pauli and Christopher).
> Does the flipped buffers magically appear in any rendering api sibling
> obejcts (such as GL texture obejcts) or does the client application
> need to do anything?

DRI2InvalidateDrawable sends a DRI2 invalidate event to all clients that
have the DRI2 buffer information, the client side drivers should handle
that as appropriate.

Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer

More information about the xorg-devel mailing list