st/xorg: Don't advertise DRI2 version we don't actually support yet.
authorMichel Dänzer <daenzer@vmware.com>
Tue, 18 May 2010 15:14:47 +0000 (17:14 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Tue, 18 May 2010 15:14:47 +0000 (17:14 +0200)
Fixes DRI2 initialization with current xserver Git.

src/gallium/state_trackers/xorg/xorg_dri2.c

index b90f9c908d2a28ed03072d0a4bd1b9d40bc41ed9..921b6900fcd7cbdfb9c12a6677b2a0e7dd087725 100644 (file)
@@ -403,7 +403,7 @@ xorg_dri2_init(ScreenPtr pScreen)
     }
 #endif
 
-    dri2info.version = DRI2INFOREC_VERSION;
+    dri2info.version = min(DRI2INFOREC_VERSION, 3);
     dri2info.fd = ms->fd;
 
     dri2info.driverName = pScrn->driverName;