summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@hinata.boston.redhat.com>2007-05-16 18:13:41 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-11 11:21:29 -0400
commit106a6f29bbdc71982afd629bdf89369cefd1459e (patch)
tree2bf1779ad462d1804c4cdaadc3f8d8781652b690 /src/glx/x11/glxext.c
parenta7a0a2beb54dcb78d7e0ab64cf2f5a6ede8191a4 (diff)
Move media stream counter entry points to new extension.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 8a70e67734..643db487c5 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1051,10 +1051,23 @@ static void queryExtensions(__GLXscreenConfigs *psc)
if (strcmp(extensions[i]->name, __DRI_FRAME_TRACKING) == 0) {
psc->frameTracking = (__DRIframeTrackingExtension *) extensions[i];
__glXScrEnableExtension(&psc->driScreen,
- "GLX_MESA_swap_frame_usage");
+ "GLX_MESA_swap_frame_usage");
}
#endif
+#ifdef __DRI_MEDIA_STREAM_COUNTER
+ if (strcmp(extensions[i]->name, __DRI_MEDIA_STREAM_COUNTER) == 0) {
+ psc->msc = (__DRImediaStreamCounterExtension *) extensions[i];
+ __glXScrEnableExtension(&psc->driScreen,
+ "GLX_SGI_video_sync");
+ }
+#endif
+
+#ifdef __DRI_SWAP_BUFFER_COUNTER
+ /* No driver supports this at this time and the extension is
+ * not defined in dri_interface.h. Will enable
+ * GLX_OML_sync_control if implemented. */
+#endif
/* Ignore unknown extensions */
}
}