[Xorg-driver-geode] [connor.behan at gmail.com: [PATCH xf86-video-geode] Fix GX composite hooks]

Matthieu Herrb matthieu at herrb.eu
Tue Aug 25 23:03:25 PDT 2015


----- Forwarded message from Connor Behan <connor.behan at gmail.com> -----

Date: Tue, 25 Aug 2015 23:32:29 -0400
From: Connor Behan <connor.behan at gmail.com>
To: xorg-devel at lists.x.org
Cc: Connor Behan <connor.behan at gmail.com>
Subject: [PATCH xf86-video-geode] Fix GX composite hooks

These need to fallback for solid and gradient pictures.

Signed-off-by: Connor Behan <connor.behan at gmail.com>
---
 src/gx_accel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gx_accel.c b/src/gx_accel.c
index 48587f2..87d9a72 100644
--- a/src/gx_accel.c
+++ b/src/gx_accel.c
@@ -1710,6 +1710,7 @@ amd_gx_exa_PrepareComposite(int op, PicturePtr pSrc, PicturePtr pMsk,
                             PixmapPtr pxDst)
 {
     int srcPitch;
+    if (!pxSrc || !pSrc->pDrawable) return FALSE;
 
     GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pxDst);
     amd_gx_exa_fmt_t *sfp, *dfp;
-- 
2.5.0

_______________________________________________
xorg-devel at lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

----- End forwarded message -----

-- 
Matthieu Herrb


More information about the Xorg-driver-geode mailing list