[PATCH 0/2] Damage driver hooks
Aaron Plattner
aplattner at nvidia.com
Fri Jul 17 15:10:04 PDT 2009
This pair of patches adds hooks that allow drivers (or other server modules) to
wrap the creation, registration, unregistration, and destruction of Damage
objects. This allows drivers like the NVIDIA driver to turn notifications on
and off for direct-rendering OpenGL and VDPAU clients as Damage clients appear
and disappear. Currently, the driver has no way of knowing when a Damage object
is created, which hinders screen-scraping programs like x11vnc.
Instead of exposing all of DamageScrPrivRec, this change puts the wrappable
functions in a substructure and adds a function to query that from a given
screen.
It also adds a devPrivates pointer to Damage objects, allowing these wrappers to
hang private data off of pDamage objects. Since all the new stuff is added to
the end of the DamageRec structure, it should not be an ABI change for existing
drivers.
Aaron Plattner (2):
Damage: Add wrappable hooks for damage create, destroy, register, &
unregister.
Damage: Add devPrivates to DamageRec
miext/damage/damage.c | 64 ++++++++++++++++++++++++++++++++++++++++++++-
miext/damage/damage.h | 20 ++++++++++++++
miext/damage/damagestr.h | 5 +++
3 files changed, 87 insertions(+), 2 deletions(-)
More information about the xorg-devel
mailing list