diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-07-23 05:36:14 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-07-23 05:36:14 +0000 |
commit | 6f1e01ecdb11913fd768b9918f516b8379b7858f (patch) | |
tree | d4f17a99e6570a5c335400c5a0d0c40817342504 /src/atiscreen.c | |
parent | b68322f467b7e524092af15e33ab872abb99b6a2 (diff) |
- Add a new option, BuildDevelDRIDrivers, which controls whether
DevelDRIDrivers is non-empty. DevelDRIDrivers contains those drivers
aren't built by default either due to being unusable on that
architecture (but buildable for testing) or due to security concerns,
as in the mach64 and savage cases.
- Merge the Mach64 DDX's DRI support, under the XF86DRI_DEVEL define, which
is set only when BuildDevelDRIDrivers is set.
- Fix up of the sets of DRI drivers built for various architectures.
- Fix build of unichrome DRI driver, which is now enabled on x86.
Diffstat (limited to 'src/atiscreen.c')
-rw-r--r-- | src/atiscreen.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/atiscreen.c b/src/atiscreen.c index ec784cb..33e8a32 100644 --- a/src/atiscreen.c +++ b/src/atiscreen.c @@ -1,6 +1,6 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atiscreen.c,v 1.30 2003/04/23 21:51:30 tsi Exp $ */ /* - * Copyright 1999 through 2003 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org + * Copyright 1999 through 2004 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -42,8 +42,10 @@ #include "atixv.h" #include "atimach64accel.h" +#ifdef XF86DRI_DEVEL #include "mach64_dri.h" #include "mach64_sarea.h" +#endif #include "shadowfb.h" #include "xf86cmap.h" @@ -130,7 +132,9 @@ ATIScreenInit ATIPtr pATI = ATIPTR(pScreenInfo); pointer pFB; int VisualMask; +#ifdef XF86DRI_DEVEL BoxRec ScreenArea; +#endif /* Set video hardware state */ if (!ATIEnterGraphics(pScreen, pScreenInfo, pATI)) @@ -169,7 +173,7 @@ ATIScreenInit } } -#ifdef XF86DRI +#ifdef XF86DRI_DEVEL /* Setup DRI after visuals have been established, but before * cfbScreenInit is called. cfbScreenInit will eventually call the @@ -211,7 +215,7 @@ ATIScreenInit } } -#endif /* XF86DRI */ +#endif /* XF86DRI_DEVEL */ /* Initialise framebuffer layer */ switch (pATI->bitsPerPixel) @@ -315,7 +319,7 @@ ATIScreenInit /* Memory manager setup */ -#ifdef XF86DRI +#ifdef XF86DRI_DEVEL if (pATI->directRenderingEnabled) { @@ -344,7 +348,7 @@ ATIScreenInit } else { int l, maxPixcache; -# ifdef XvExtension +#ifdef XvExtension int xvBytes; @@ -353,12 +357,12 @@ ATIScreenInit xvBytes = 720*480*cpp; /* enough for single-buffered DVD */ maxPixcache = xvBytes > bufferSize ? xvBytes : bufferSize; -# else /* XvExtension */ +#else /* XvExtension */ /* Try for one viewport */ maxPixcache = bufferSize; -# endif /* XvExtension */ +#endif /* XvExtension */ pATIDRIServer->textureSize = offscreenBytes - maxPixcache; @@ -485,7 +489,7 @@ ATIScreenInit } } -#endif /* XF86DRI */ +#endif /* XF86DRI_DEVEL */ /* Setup acceleration */ /* If direct rendering is not enabled, the framebuffer memory @@ -549,7 +553,7 @@ ATIScreenInit if (serverGeneration == 1) xf86ShowUnusedOptions(pScreenInfo->scrnIndex, pScreenInfo->options); -#ifdef XF86DRI +#ifdef XF86DRI_DEVEL /* DRI finalization */ if (pATI->directRenderingEnabled) { @@ -567,7 +571,7 @@ ATIScreenInit "Direct rendering disabled\n"); } -#endif /* XF86DRI */ +#endif /* XF86DRI_DEVEL */ return TRUE; } @@ -588,7 +592,7 @@ ATICloseScreen ATIPtr pATI = ATIPTR(pScreenInfo); Bool Closed = TRUE; -#ifdef XF86DRI +#ifdef XF86DRI_DEVEL /* Disable direct rendering */ if (pATI->directRenderingEnabled) @@ -597,7 +601,7 @@ ATICloseScreen pATI->directRenderingEnabled = FALSE; } -#endif /* XF86DRI */ +#endif /* XF86DRI_DEVEL */ ATICloseXVideo(pScreen, pScreenInfo, pATI); |