xserver-multidpi/composite
Kristian Høgsberg 4ba7b59446 composite: Add exception mechanism for implicit redirection policy
Normally composite will decide to add implicit redirection when a
window with an alternate visual is a parent of a window with a regular
visual or vice versa.  This uses extra pixmap memory and incurs an extra
copy.  This exception mechanism provides a way for a DDX to override this
if the DDX knows that its acceleration architecture will render correctly.

The relevant case is that of an RGB window reparented into a ARGB parent
frame window.  If the DDX knows that the acceleration architecture in use
will pad the alpha channel to opaque when rendering to the RGB window,
the implicit redirection can be avoided.

This patch adds a new composite function:

  CompositeRegisterImplicitRedirectionException()

which lets a DDX register a pair of parent and child window visuals, that
will not be implicitly redirected even if the normal policy would have
made that choice.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
2014-04-01 10:31:09 -07:00
..
compalloc.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
compext.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
compinit.c composite: Add exception mechanism for implicit redirection policy 2014-04-01 10:31:09 -07:00
compint.h composite: Add exception mechanism for implicit redirection policy 2014-04-01 10:31:09 -07:00
compositeext.h composite: Add exception mechanism for implicit redirection policy 2014-04-01 10:31:09 -07:00
compoverlay.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
compwindow.c composite: Add exception mechanism for implicit redirection policy 2014-04-01 10:31:09 -07:00
Makefile.am Export CompositeRegisterAlternateVisuals. 2009-04-27 13:29:40 -07:00