[Xorg-driver-geode] Fwd: [PATCH xf86-video-geode] Fix GX composite hooks

Connor Behan connor.behan at gmail.com
Wed Aug 26 07:20:18 PDT 2015


After finding out about this list, it seems like a good idea to send
this patch. The reply to my last one said that GX code was in bad shape.


-------- Forwarded Message --------
Subject: 	[PATCH xf86-video-geode] Fix GX composite hooks
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>



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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-driver-geode/attachments/20150826/54d598df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.x.org/archives/xorg-driver-geode/attachments/20150826/54d598df/attachment.sig>


More information about the Xorg-driver-geode mailing list