st/xorg: Set enforce version to 1 if not defined
authorJakob Bornecrantz <jakob@vmware.com>
Fri, 15 Jan 2010 01:14:55 +0000 (01:14 +0000)
committerJakob Bornecrantz <jakob@vm-x-u910-32.(none)>
Fri, 15 Jan 2010 01:38:04 +0000 (01:38 +0000)
src/gallium/state_trackers/xorg/xorg_dri2.c

index 4fa47548a43f2dc664ebc6c9072f9bedf87e7dc6..4f03dbae742956a136860a77d8a8abfc79d96c67 100644 (file)
@@ -43,9 +43,8 @@
 #include "util/u_rect.h"
 
 /* Make all the #if cases in the code esier to read */
-/* XXX can it be set to 1? */
 #ifndef DRI2INFOREC_VERSION
-#define DRI2INFOREC_VERSION 0
+#define DRI2INFOREC_VERSION 1
 #endif
 
 typedef struct {
@@ -370,11 +369,7 @@ xorg_dri2_init(ScreenPtr pScreen)
     modesettingPtr ms = modesettingPTR(pScrn);
     DRI2InfoRec dri2info;
 
-#if DRI2INFOREC_VERSION >= 2
     dri2info.version = DRI2INFOREC_VERSION;
-#else
-    dri2info.version = 1;
-#endif
     dri2info.fd = ms->fd;
 
     dri2info.driverName = pScrn->driverName;