Mesa (master): DRI2: expose OML_sync_control if possible

Jesse Barnes jbarnes at kemper.freedesktop.org
Fri Mar 5 11:21:40 PST 2010


Module: Mesa
Branch: master
Commit: 1ca968363dd55e919bd91c8fc31c34d207af3958
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ca968363dd55e919bd91c8fc31c34d207af3958

Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date:   Fri Mar  5 11:17:19 2010 -0800

DRI2: expose OML_sync_control if possible

If the server supports the OML related protocol, enable support for the
extension.

---

 src/glx/dri2_glx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 29d589c..d573e46 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -614,6 +614,9 @@ dri2CreateScreen(__GLXscreenConfigs * psc, int screen,
       psp->setSwapInterval = dri2SetSwapInterval;
       psp->getSwapInterval = dri2GetSwapInterval;
 #endif
+#if defined(X_DRI2GetMSC) && defined(X_DRI2WaitMSC) && defined(X_DRI2SwapInterval)
+      __glXEnableDirectExtension(psc, "GLX_OML_sync_control");
+#endif
    }
 
    /* DRI2 suports SubBuffer through DRI2CopyRegion, so it's always



More information about the mesa-commit mailing list