summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 01f02513..d836afc3 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -438,12 +438,13 @@ I830DRIScreenInit(ScreenPtr pScreen)
int major, minor, patch;
DRIQueryVersion(&major, &minor, &patch);
- if (major != 4 || minor < 0) {
+ if (major != DRIINFO_MAJOR_VERSION || minor < DRIINFO_MINOR_VERSION) {
xf86DrvMsg(pScreen->myNum, X_ERROR,
"[dri] %s failed because of a version mismatch.\n"
- "[dri] libDRI version is %d.%d.%d bug version 4.0.x is needed.\n"
+ "[dri] libdri version is %d.%d.%d bug version %d.%d.x is needed.\n"
"[dri] Disabling DRI.\n",
- "I830DRIScreenInit", major, minor, patch);
+ "I830DRIScreenInit", major, minor, patch,
+ DRIINFO_MAJOR_VERSION, DRIINFO_MINOR_VERSION);
return FALSE;
}
}