summaryrefslogtreecommitdiffstats
path: root/src/glx/mini/miniglx.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-12-08 06:15:01 +0000
committerDave Airlie <airliedfreedesktop.org>2004-12-08 06:15:01 +0000
commit23b033ad28331e40287ab8b5c9150bc6be5c608f (patch)
tree187c1d942cd620b7b533d727b92cee24f3c422d8 /src/glx/mini/miniglx.c
parente1b4fec71c1a22ea7415a115700802a93b52fcc7 (diff)
From: Stephane Marchesin <[email protected]>
Attached is a patch that adds pci init code for mesa solo on radeon. It's been tested on an itanium 2 with a radeon 7000 and it works here. The patch adds a new field in the miniglx.conf config file, to choose between pci and agp.
Diffstat (limited to 'src/glx/mini/miniglx.c')
-rw-r--r--src/glx/mini/miniglx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index 5793aa3fb8e..b4f74a12791 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -830,6 +830,7 @@ static int __read_config_file( Display *dpy )
dpy->driverContext.cpp = 4;
dpy->rotateMode = 0;
dpy->driverContext.agpmode = 1;
+ dpy->driverContext.isPCI = 0;
fname = getenv("MINIGLX_CONF");
if (!fname) fname = "/etc/miniglx.conf";
@@ -899,6 +900,9 @@ static int __read_config_file( Display *dpy )
if (sscanf(val, "%d", &dpy->driverContext.agpmode) != 1)
fprintf(stderr, "malformed agpmode: %s\n", opt);
}
+ else if (strcmp(opt, "isPCI") == 0) {
+ dpy->driverContext.isPCI = atoi(val) ? 1 : 0;
+ }
}
fclose(file);