xserver-multidpi/dbe
Aaron Plattner 83460a9498 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>
(cherry picked from commit 1304b8b27c)
2010-06-11 11:09:46 +10:00
..
dbe.c Add type name argument to CreateNewResourceType 2009-12-18 17:44:12 -08:00
dbestruct.h dbe: Fix indentation 2009-07-17 14:57:50 -04: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-11 11:09:46 +10: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