summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-09-29 16:43:43 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-09-29 16:46:39 -0700
commitad5c0d9efa47476ed5cf75c82265c73919e468b4 (patch)
tree25ac8ca8444b1c9690d2e499cac366df6c5cd32a /glx/glxdri2.c
parentf11a356bcef1bc0a6440325019d5967b745a42dd (diff)
GLX: Enable GLX 1.4 on DRI2
Return the minimum GLX version supported by all screens. Assume that DRI2 screens have all the required features for GLX 1.4. Assume that everyone else can only support GLX 1.2. Reviewed-by: Kristian Høgsberg <krh@redhat.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r--glx/glxdri2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index ed7fb4c4b..82568e696 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -685,6 +685,20 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
screen->base.GLXextensions);
}
+ /* We know that the X server supports the protocol for at least GLX 1.4.
+ * When a new version of GLX is created, we'll have to revisit this. We're
+ * also going to assume (perhaps incorrectly?) that all DRI2-enabled
+ * drivers support the required extension for GLX 1.3. The extensions
+ * we're assuming are:
+ *
+ * - GLX_SGI_make_current_read (1.3)
+ * - GLX_SGIX_fbconfig (1.3)
+ * - GLX_SGIX_pbuffer (1.3)
+ * - GLX_ARB_multisample (1.4)
+ */
+ screen->base.GLXmajor = 1;
+ screen->base.GLXminor = 4;
+
screen->enterVT = pScrn->EnterVT;
pScrn->EnterVT = glxDRIEnterVT;
screen->leaveVT = pScrn->LeaveVT;