From 4503aece04cc8860df18ce946633b5449a0cb47b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 23 May 2024 15:56:57 +0200 Subject: drop ancient 1bpp and 4bpp support This had been removed from Xserver almost two decades ago (2008). Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- configure.ac | 3 +-- src/ct_driver.c | 44 -------------------------------------------- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/configure.ac b/configure.ac index a0f2ab4..e9ae2eb 100644 --- a/configure.ac +++ b/configure.ac @@ -66,8 +66,7 @@ CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" AC_CHECK_DECL(XSERVER_LIBPCIACCESS, [XSERVER_LIBPCIACCESS=yes],[XSERVER_LIBPCIACCESS=no], [#include "xorg-server.h"]) -AC_CHECK_HEADER(xf1bpp.h,[AC_DEFINE(HAVE_XF1BPP, 1, [Have 1bpp support])],[]) -AC_CHECK_HEADER(xf4bpp.h,[AC_DEFINE(HAVE_XF4BPP, 1, [Have 4bpp support])],[]) + CPPFLAGS="$SAVE_CPPFLAGS" if test "x$XSERVER_LIBPCIACCESS" = xyes; then diff --git a/src/ct_driver.c b/src/ct_driver.c index 95a669e..48cfdbb 100644 --- a/src/ct_driver.c +++ b/src/ct_driver.c @@ -112,14 +112,6 @@ #include "fb.h" #include "fboverlay.h" -/* Needed for the 1 and 4 bpp framebuffers */ -#ifdef HAVE_XF1BPP -#include "xf1bpp.h" -#endif -#ifdef HAVE_XF4BPP -#include "xf4bpp.h" -#endif - /* int10 */ #include "xf86int10.h" #include "vbe.h" @@ -1190,26 +1182,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags) /* Load bpp-specific modules */ switch (pScrn->bitsPerPixel) { -#ifdef HAVE_XF1BPP - case 1: - if (xf86LoadSubModule(pScrn, "xf1bpp") == NULL) { - vbeFree(cPtr->pVbe); - cPtr->pVbe = NULL; - CHIPSFreeRec(pScrn); - return FALSE; - } - break; -#endif -#ifdef HAVE_XF4BPP - case 4: - if (xf86LoadSubModule(pScrn, "xf4bpp") == NULL) { - vbeFree(cPtr->pVbe); - cPtr->pVbe = NULL; - CHIPSFreeRec(pScrn); - return FALSE; - } - break; -#endif default: if (xf86LoadSubModule(pScrn, "fb") == NULL) { vbeFree(cPtr->pVbe); @@ -3854,22 +3826,6 @@ CHIPSScreenInit(SCREEN_INIT_ARGS_DECL) } switch (pScrn->bitsPerPixel) { -#ifdef HAVE_XF1BPP - case 1: - ret = xf1bppScreenInit(pScreen, FBStart, - width,height, - pScrn->xDpi, pScrn->yDpi, - displayWidth); - break; -#endif -#ifdef HAVE_XF4BPP - case 4: - ret = xf4bppScreenInit(pScreen, FBStart, - width,height, - pScrn->xDpi, pScrn->yDpi, - displayWidth); - break; -#endif case 16: default: ret = fbScreenInit(pScreen, FBStart, -- cgit v1.2.3