[PATCH RESEND xserver] EXA: Check sys_ptr isn't NULL before passing it to the UploadToScreen hook.
Michel Dänzer
michel at daenzer.net
Wed Apr 14 10:28:37 PDT 2010
From: Michel Dänzer <daenzer at vmware.com>
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=27510 .
Signed-off-by: Michel Dänzer <daenzer at vmware.com>
---
exa/exa_accel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 4680c37..57029fd 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -512,7 +512,7 @@ exaHWCopyNtoN (DrawablePtr pSrcDrawable,
*
* Only taking this path for directly accessible pixmaps.
*/
- } else if (!pDstExaPixmap->pDamage) {
+ } else if (!pDstExaPixmap->pDamage && pSrcExaPixmap->sys_ptr) {
int bpp = pSrcDrawable->bitsPerPixel;
int src_stride = exaGetPixmapPitch(pSrcPixmap);
CARD8 *src = NULL;
--
1.7.0.4
More information about the xorg-devel
mailing list