summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c')
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c b/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c
index b10dd018d..f866f1a2d 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c,v 1.4 2000/06/23 23:43:44 alanh Exp $
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c,v 1.5 2000/12/21 12:22:57 alanh Exp $
* Acceleration for the Creator and Creator3D framebuffer - DRI/DRM support.
*
* Copyright (C) 2000 David S. Miller (davem@redhat.com)
@@ -214,6 +214,19 @@ FFBDRIScreenInit(ScreenPtr pScreen)
"FFBDRIScreenInit failed (libdri.a too old)\n");
return FALSE;
}
+
+ /* Check the DRI version */
+ {
+ int major, minor, patch;
+ DRIQueryVersion(&major, &minor, &patch);
+ if (major != 3 || minor != 1 || patch < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] SISDRIScreenInit failed (DRI version = %d.%d.%d, "
+ "expected 3.1.x). Disabling DRI.\n",
+ major, minor, patch);
+ return FALSE;
+ }
+ }
pDRIInfo = DRICreateInfoRec();
if (pDRIInfo == NULL)