diff options
author | Dave Airlie <airliedfreedesktop.org> | 2006-04-03 07:32:11 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2006-04-03 07:32:11 +0000 |
commit | a951c80ae410bfe541cd6733fdef4972ee52dbfd (patch) | |
tree | 3bba4585184d7aa406523197f10b73e164e99934 /src/glx | |
parent | 808a678d85d2d4486187d779dcf8a6e38cd884db (diff) |
setup to use pci access, comment out size bumps,
sest xres from real width, use new -1 ddx version
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/mini/miniglx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c index c1c4446ab7..d4b2950863 100644 --- a/src/glx/mini/miniglx.c +++ b/src/glx/mini/miniglx.c @@ -115,6 +115,7 @@ #include "glcontextmodes.h" #include "glapi.h" +#include "pciaccess.h" static GLboolean __glXCreateContextWithConfig(__DRInativeDisplay *dpy, int screen, int fbconfigID, void *contextID, @@ -439,6 +440,7 @@ SetupFBDev( Display *dpy ) if (width==832) width=800; +#if 0 /* Bump size up to next supported mode. */ if (width <= 720 && height <= 480) { @@ -459,7 +461,7 @@ SetupFBDev( Display *dpy ) else if (width <= 1280 && height <= 1024) { width = 1280; height = 1024; } - +#endif dpy->driverContext.shared.fbStride = width * (dpy->driverContext.bpp / 8); @@ -468,7 +470,7 @@ SetupFBDev( Display *dpy ) dpy->VarInfo.bits_per_pixel = dpy->driverContext.bpp; dpy->VarInfo.xres_virtual = dpy->driverContext.shared.virtualWidth; dpy->VarInfo.yres_virtual = dpy->driverContext.shared.virtualHeight; - dpy->VarInfo.xres = width; + dpy->VarInfo.xres = dpy->driverContext.shared.Width; dpy->VarInfo.yres = height; dpy->VarInfo.xoffset = 0; dpy->VarInfo.yoffset = 0; @@ -1056,6 +1058,8 @@ __miniglx_StartServer( const char *display_name ) Display *dpy; int use_vt = 0; + pci_system_init(); + dpy = (Display *)calloc(1, sizeof(Display)); if (!dpy) return NULL; @@ -1215,7 +1219,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc) * We'll check the version in each DRI driver's "createScreen" * function. */ - ddx_version.major = 4; + ddx_version.major = -1; ddx_version.minor = 0; ddx_version.patch = 0; |