#include "glcontextmodes.h"
#include "glapi.h"
+#include "pciaccess.h"
static GLboolean __glXCreateContextWithConfig(__DRInativeDisplay *dpy,
int screen, int fbconfigID, void *contextID,
if (width==832)
width=800;
+#if 0
/* Bump size up to next supported mode.
*/
if (width <= 720 && height <= 480) {
else if (width <= 1280 && height <= 1024) {
width = 1280; height = 1024;
}
-
+#endif
dpy->driverContext.shared.fbStride = width * (dpy->driverContext.bpp / 8);
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;
Display *dpy;
int use_vt = 0;
+ pci_system_init();
+
dpy = (Display *)calloc(1, sizeof(Display));
if (!dpy)
return NULL;
* 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;