[xf86-video-armada][PATCH v2 1/2] common: Make 24bbp support optional

Stefan Agner stefan at agner.ch
Fri Aug 17 17:19:04 UTC 2018


24bbp support has been removed in X.Org Server 1.20. Make
its support optional so this driver can be built for newer
X.Org Server versions.

Suggested-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Signed-off-by: Stefan Agner <stefan at agner.ch>
---
 common/unaccel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/unaccel.c b/common/unaccel.c
index 15cc7d5..b0d807e 100644
--- a/common/unaccel.c
+++ b/common/unaccel.c
@@ -192,6 +192,7 @@ static void unaccel_fixup_tile(DrawablePtr pDraw, PixmapPtr *ppPix)
 {
 	PixmapPtr pNew, pPixmap = *ppPix;
 
+#ifdef FB_24_32BIT
 	if (pPixmap->drawable.bitsPerPixel != pDraw->bitsPerPixel) {
 		prepare_cpu_drawable(&pPixmap->drawable, CPU_ACCESS_RO);
 		pNew = fb24_32ReformatTile(pPixmap, pDraw->bitsPerPixel);
@@ -200,6 +201,7 @@ static void unaccel_fixup_tile(DrawablePtr pDraw, PixmapPtr *ppPix)
 		pDraw->pScreen->DestroyPixmap(pPixmap);
 		*ppPix = pPixmap = pNew;
 	}
+#endif
 
 	if (FbEvenTile(pPixmap->drawable.width * pPixmap->drawable.bitsPerPixel)) {
 		prepare_cpu_drawable(&pPixmap->drawable, CPU_ACCESS_RW);
-- 
2.18.0



More information about the etnaviv mailing list