summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-04-17 01:36:48 +0200
committerJulien Cristau <jcristau@debian.org>2008-04-17 01:46:59 +0200
commitf8a2b6470406415e96b5d03afa2129acd33b1d91 (patch)
tree030531e8573fbcd04a17a76595f83a410154a2a8
parent837e6382cfb54fdfe65355e2b0c21b2949cebc32 (diff)
downloadxorg-driver-xf86-video-vesa-f8a2b6470406415e96b5d03afa2129acd33b1d91.tar.gz
Planar video is gone
xf1bpp and xf4bpp were removed from the server, so don't try to use them. The afb code was disabled for years and nobody noticed, remove that too.
-rw-r--r--src/vesa.c82
-rw-r--r--src/vesa.h8
2 files changed, 5 insertions, 85 deletions
diff --git a/src/vesa.c b/src/vesa.c
index 57ca3a7..741b379 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -181,17 +181,6 @@ static const OptionInfoRec VESAOptions[] = {
* xf86LoaderReqSymLists(). The purpose is this is to avoid warnings about
* unresolved symbols that are not required.
*/
-#ifdef XFree86LOADER
-static const char *miscfbSymbols[] = {
- "xf1bppScreenInit",
- "xf4bppScreenInit",
-#ifdef USE_AFB
- "afbScreenInit",
-#endif
- NULL
-};
-#endif
-
static const char *fbSymbols[] = {
"fbPictureInit",
"fbScreenInit",
@@ -268,8 +257,7 @@ vesaSetup(pointer Module, pointer Options, int *ErrorMajor, int *ErrorMinor)
{
Initialised = TRUE;
xf86AddDriver(&VESA, Module, 1);
- LoaderRefSymLists(miscfbSymbols,
- fbSymbols,
+ LoaderRefSymLists(fbSymbols,
shadowSymbols,
vbeSymbols,
ddcSymbols,
@@ -715,40 +703,12 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags)
case 0x0: /* Text mode */
case 0x1: /* CGA graphics */
case 0x2: /* Hercules graphics */
+ case 0x3: /* Planar */
case 0x5: /* Non-chain 4, 256 color */
case 0x7: /* YUV */
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Unsupported Memory Model: %d", mode->MemoryModel);
break;
- case 0x3: /* Planar */
- if (pVesa->shadowFB) {
- mod = "fb";
- pScrn->bitmapBitOrder = BITMAP_BIT_ORDER;
-
- xf86LoaderReqSymbols("fbPictureInit", NULL);
- }
- else {
- switch (pScrn->bitsPerPixel) {
- case 1:
- mod = "xf1bpp";
- reqSym = "xf1bppScreenInit";
- break;
- case 4:
- mod = "xf4bpp";
- reqSym = "xf4bppScreenInit";
- break;
- default:
-#ifdef USE_AFB
- mod = "afb";
- reqSym = "afbScreenInit";
- break;
-#else
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Unsupported bpp: %d", pScrn->bitsPerPixel);
-#endif
- }
- }
- break;
case 0x4: /* Packed pixel */
case 0x6: /* Direct Color */
mod = "fb";
@@ -914,37 +874,12 @@ VESAScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
case 0x0: /* Text mode */
case 0x1: /* CGA graphics */
case 0x2: /* Hercules graphics */
+ case 0x3: /* Planar */
case 0x5: /* Non-chain 4, 256 color */
case 0x7: /* YUV */
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Unsupported Memory Model: %d", mode->MemoryModel);
return (FALSE);
- case 0x3: /* Planar */
- switch (pScrn->bitsPerPixel) {
- case 1:
- if (!xf1bppScreenInit(pScreen, pVesa->base,
- pScrn->virtualX, pScrn->virtualY,
- pScrn->xDpi, pScrn->yDpi,
- pScrn->displayWidth))
- return (FALSE);
- break;
- case 4:
- if (!xf4bppScreenInit(pScreen, pVesa->base,
- pScrn->virtualX, pScrn->virtualY,
- pScrn->xDpi, pScrn->yDpi,
- pScrn->displayWidth))
- return (FALSE);
- break;
- default:
-#ifdef USE_AFB
- if (!afbScreenInit(pScreen, pVesa->base,
- pScrn->virtualX, pScrn->virtualY,
- pScrn->xDpi, pScrn->yDpi, pScrn->displayWidth))
-#endif
- return (FALSE);
- break;
- }
- break;
case 0x4: /* Packed pixel */
case 0x6: /* Direct Color */
switch (pScrn->bitsPerPixel) {
@@ -989,14 +924,7 @@ VESAScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fbPictureInit(pScreen, 0, 0);
if (pVesa->shadowFB) {
- if (mode->MemoryModel == 3) { /* Planar */
- if (pScrn->bitsPerPixel == 8)
- pVesa->update = shadowUpdatePlanar4x8Weak();
- else
- pVesa->update = shadowUpdatePlanar4Weak();
- pVesa->window = VESAWindowPlanar;
- }
- else if (pVesa->mapPhys == 0xa0000) { /* Windowed */
+ if (pVesa->mapPhys == 0xa0000) { /* Windowed */
pVesa->update = shadowUpdatePackedWeak();
pVesa->window = VESAWindowWindowed;
}
@@ -1010,7 +938,7 @@ VESAScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
pVesa->CreateScreenResources = pScreen->CreateScreenResources;
pScreen->CreateScreenResources = vesaCreateScreenResources;
}
- else if (pVesa->mapPhys == 0xa0000 && mode->MemoryModel != 0x3) {
+ else if (pVesa->mapPhys == 0xa0000) {
unsigned int bankShift = 0;
while ((unsigned)(64 >> bankShift) != mode->WinGranularity)
bankShift++;
diff --git a/src/vesa.h b/src/vesa.h
index 0705d76..6c5b8c0 100644
--- a/src/vesa.h
+++ b/src/vesa.h
@@ -69,16 +69,8 @@
#include "xf86Resources.h"
#include "xf86RAC.h"
-#include "xf1bpp.h"
-#include "xf4bpp.h"
#include "fb.h"
-#ifdef USE_AFB
-#include "afb.h"
-#endif
-
-#include "mfb.h"
-
#ifdef XSERVER_LIBPCIACCESS
#include <pciaccess.h>
#endif