[PATCH xf86-video-geode] Fix GX composite hooks

Connor Behan connor.behan at gmail.com
Tue Aug 25 20:32:29 PDT 2015


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



More information about the xorg-devel mailing list