summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-08-17 19:19:04 +0200
committerRussell King <rmk@armlinux.org.uk>2018-08-29 13:55:27 +0100
commitba8e6871d790c95f3e06c25f002c090d9ddbe547 (patch)
treee1d8764839fafa79058955b43d0a3770ab02253f
parente17e4d6db134c4be039e25fa9747882aa3091bb4 (diff)
common: Make 24bbp support optional
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@gmail.com> Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Russell King <rmk@armlinux.org.uk>
-rw-r--r--common/unaccel.c2
1 files changed, 2 insertions, 0 deletions
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);