summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-18 22:17:44 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-18 22:17:44 +0100
commitc9b0bd77ea232b8ccd6cdabf25b0686d83bcb3a4 (patch)
treeeacf0da619f0d230b78a4b31ce046485bf3de8d0
parent9918e082104340da42eb92b6bdefce4d9266a6a4 (diff)
Support DRI2InfoRec version 2 if that's all that's available, 3 if possible, but nothing higher
There's a higher version than 3 available now, but we aren't "aware" of it yet.
-rw-r--r--src/glamo-dri2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glamo-dri2.c b/src/glamo-dri2.c
index 6b743f4..856eb8f 100644
--- a/src/glamo-dri2.c
+++ b/src/glamo-dri2.c
@@ -326,7 +326,11 @@ void driScreenInit(ScreenPtr pScreen)
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"[glamo-dri] Name of DRM device is '%s'\n", p);
- dri2info.version = DRI2INFOREC_VERSION;
+#if DRI2INFOREC_VERSION >= 3
+ dri2info.version = 3;
+#else
+ dri2info.version = 2;
+#endif
dri2info.fd = pGlamo->drm_fd;
dri2info.deviceName = p;
dri2info.driverName = "glamo";