xserver-multidpi/dbe
Aaron Plattner 1304b8b27c Fix pixmap validation in miDbePositionWindow.
miDbePositionWindow allocates two pixmaps: a front buffer, and a back buffer.
If the buffers are supposed to be initialized, it validates a GC against the
front buffer, then uses it to fill and/or copy both the front buffer *and* the
back buffer, without revalidating.  If the acceleration architecture needs
different GC funcs for the two pixmaps -- for example if allocation of the front
buffer exhausted video memory -- then this can cause crashes because the GC is
not validated for the back buffer pixmap.

Fix this by performing the rendering for the front buffer first, then
revalidating against the back buffer before performing the back buffer
rendering.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-06-02 21:02:48 -07:00
..
dbe.c Add typed resource-lookup errors for non-core resource types. 2010-05-19 12:32:48 -07:00
dbestruct.h Remove dbe screen private privates. 2010-05-15 19:57:48 -07:00
Makefile.am get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
midbe.c Fix pixmap validation in miDbePositionWindow. 2010-06-02 21:02:48 -07:00
midbe.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
midbestr.h devPrivates rework: since API is already broken, switch everything 2007-08-28 09:28:25 -04:00