diff options
author | Jon Smirl <[email protected]> | 2004-07-04 20:33:48 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2004-07-04 20:33:48 +0000 |
commit | aaebfc88c08c79cd70f1e0d1d262a25e9ded47d1 (patch) | |
tree | 9c1aa0013c88e370457ea47aea3e8baccec87c52 /src/mesa/drivers/dri/r128 | |
parent | 2371033bbaf6e7477bfa893654a0467a084f335b (diff) |
Patch removes _SOLO definition needed for mesa-solo. mesa-solo
uses the NEW_INTERFACE now so _SOLO isn't necessary anymore.
Tested with the hardware that I own.
Diffstat (limited to 'src/mesa/drivers/dri/r128')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_screen.c | 14 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r128/server/r128.h | 107 |
2 files changed, 3 insertions, 118 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_screen.c b/src/mesa/drivers/dri/r128/r128_screen.c index 3b44229da23..6d0fd9d1a1f 100644 --- a/src/mesa/drivers/dri/r128/r128_screen.c +++ b/src/mesa/drivers/dri/r128/r128_screen.c @@ -46,9 +46,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #include "utils.h" #include "vblank.h" -#ifndef _SOLO #include "GL/internal/dri_interface.h" -#endif /* R128 configuration */ @@ -210,7 +208,6 @@ r128CreateScreen( __DRIscreenPrivate *sPriv ) } r128Screen->driScreen = sPriv; -#ifndef _SOLO if ( driCompareGLXAPIVersion( 20030813 ) >= 0 ) { PFNGLXSCRENABLEEXTENSIONPROC glx_enable_extension = (PFNGLXSCRENABLEEXTENSIONPROC) glXGetProcAddress( (const GLubyte *) "__glXScrEnableExtension" ); @@ -226,7 +223,6 @@ r128CreateScreen( __DRIscreenPrivate *sPriv ) (*glx_enable_extension)( psc, "GLX_MESA_swap_frame_usage" ); } } -#endif return r128Screen; } @@ -353,7 +349,6 @@ static struct __DriverAPIRec r128API = { * The __driCreateScreen name is the symbol that libGL.so fetches. * Return: pointer to a __DRIscreenPrivate. */ -#ifndef _SOLO void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc, int numConfigs, __GLXvisualConfig *config) { @@ -361,15 +356,6 @@ void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc, psp = __driUtilCreateScreen(dpy, scrn, psc, numConfigs, config, &r128API); return (void *) psp; } -#else -void *__driCreateScreen(struct DRIDriverRec *driver, - struct DRIDriverContextRec *driverContext) -{ - __DRIscreenPrivate *psp; - psp = __driUtilCreateScreen(driver, driverContext, &r128API); - return (void *) psp; -} -#endif #endif /* DRI_NEW_INTERFACE_ONLY */ diff --git a/src/mesa/drivers/dri/r128/server/r128.h b/src/mesa/drivers/dri/r128/server/r128.h index 6420c32c037..15e25285b6a 100644 --- a/src/mesa/drivers/dri/r128/server/r128.h +++ b/src/mesa/drivers/dri/r128/server/r128.h @@ -39,33 +39,6 @@ #define _R128_H_ #include "dri_util.h" -#ifndef _SOLO -#include "xf86str.h" - - /* PCI support */ -#include "xf86Pci.h" - - /* XAA and Cursor Support */ -#include "xaa.h" -#include "xf86Cursor.h" - - /* DDC support */ -#include "xf86DDC.h" - - /* Xv support */ -#include "xf86xv.h" - - /* DRI support */ -#ifdef XF86DRI -#define _XF86DRI_SERVER_ -#include "r128_dripriv.h" -#include "dri.h" -#include "GL/glxint.h" -#endif -#endif -#ifdef _SOLO -#define XF86DRI -#endif #define R128_DEBUG 0 /* Turn off debugging output */ #define R128_IDLE_RETRY 32 /* Fall out of idle loops after this count */ @@ -184,31 +157,7 @@ typedef struct { uint32_t palette[256]; } R128SaveRec, *R128SavePtr; -#ifndef _SOLO -typedef struct { - CARD16 reference_freq; - CARD16 reference_div; - uint32_t min_pll_freq; - uint32_t max_pll_freq; - CARD16 xclk; -} R128PLLRec, *R128PLLPtr; - -typedef struct { - int bitsPerPixel; - int depth; - int displayWidth; - int pixel_code; - int pixel_bytes; - DisplayModePtr mode; -} R128FBLayout; -#endif - typedef struct { -#ifndef _SOLO - EntityInfoPtr pEnt; - pciVideoPtr PciInfo; - PCITAG PciTag; -#endif int Chipset; GLboolean Primary; @@ -225,13 +174,6 @@ typedef struct { unsigned long FbMapSize; /* Size of frame buffer, in bytes */ int Flags; /* Saved copy of mode flags */ -#ifndef _SOLO - uint8_t BIOSDisplay; /* Device the BIOS is set to display to */ - - GLboolean HasPanelRegs; /* Current chip can connect to a FP */ - uint8_t *VBIOS; /* Video BIOS for mode validation on FPs */ - int FPBIOSstart; /* Start of the flat panel info */ -#endif /* Computed values for FPs */ int PanelXRes; int PanelYRes; @@ -242,21 +184,7 @@ typedef struct { int VSyncWidth; int VBlank; int PanelPwrDly; -#ifndef _SOLO - R128PLLRec pll; - R128RAMPtr ram; - - R128SaveRec SavedReg; /* Original (text) mode */ - R128SaveRec ModeReg; /* Current mode */ - GLboolean (*CloseScreen)(int, ScreenPtr); - void (*BlockHandler)(int, pointer, pointer, pointer); - - GLboolean PaletteSavedOnVT; /* Palette saved on last VT switch */ - - XAAInfoRecPtr accel; - GLboolean accelOn; - xf86CursorInfoPtr cursor; -#endif + unsigned long cursor_start; unsigned long cursor_end; @@ -286,35 +214,19 @@ typedef struct { int scanline_y; int scanline_w; int scanline_h; -#ifdef XF86DRI + int scanline_hpass; int scanline_x1clip; int scanline_x2clip; int scanline_rop; int scanline_fg; int scanline_bg; -#endif /* XF86DRI */ + int scanline_words; int scanline_direct; int scanline_bpp; /* Only used for ImageWrite */ -#ifndef _SOLO - DGAModePtr DGAModes; - int numDGAModes; - GLboolean DGAactive; - int DGAViewportStatus; - DGAFunctionRec DGAFuncs; - - R128FBLayout CurrentLayout; -#endif -#ifdef XF86DRI drm_context_t drmCtx; -#ifndef _SOLO - DRIInfoPtr pDRIInfo; - int numVisualConfigs; - __GLXvisualConfig *pVisualConfigs; - R128ConfigPrivPtr pVisualConfigsPriv; -#endif drmSize registerSize; drm_handle_t registerHandle; @@ -408,20 +320,7 @@ typedef struct { uint32_t gen_int_cntl; GLboolean DMAForXv; -#endif -#ifndef _SOLO - XF86VideoAdaptorPtr adaptor; - void (*VideoTimerCallback)(ScrnInfoPtr, Time); - int videoKey; - GLboolean showCache; - OptionInfoPtr Options; - - GLboolean isDFP; - GLboolean isPro2; - I2CBusPtr pI2CBus; - uint32_t DDCReg; -#endif } R128InfoRec, *R128InfoPtr; #define R128WaitForFifo(pScrn, entries) \ |