summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-02-25 16:14:37 -0500
committerKristian Høgsberg <krh@redhat.com>2008-02-25 19:02:06 -0500
commit6e8d21d72f35767e07081a8bee4323aaaf5e2aae (patch)
treea4c11d15ae2e951364d29a915b006348e01c1d0b /include
parentb49a8f805aec057d9d0b039531b373b6bd8330e2 (diff)
downloadexternal_mesa3d-6e8d21d72f35767e07081a8bee4323aaaf5e2aae.zip
external_mesa3d-6e8d21d72f35767e07081a8bee4323aaaf5e2aae.tar.gz
external_mesa3d-6e8d21d72f35767e07081a8bee4323aaaf5e2aae.tar.bz2
Remove GetMSC DriverAPI function.
The DriverAPI is internal to the DRI drivers and GetDrawableMSC obsoletes GetMSC. Also, since the DRI driver interface has not yet been released, just drop the getMSC function from the DRI interface instead using the ABI preserving version mechanism. Finally, using void pointer privates in the DRI interface is not allowed, always pass the actual types around (__DRIdrawable in this case) to enhance type safety and readability of the code.
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index b83aff1..888b91d 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -171,17 +171,11 @@ struct __DRIframeTrackingExtensionRec {
* Used by drivers that implement the GLX_SGI_video_sync extension.
*/
#define __DRI_MEDIA_STREAM_COUNTER "DRI_MediaStreamCounter"
-#define __DRI_MEDIA_STREAM_COUNTER_VERSION 2
+#define __DRI_MEDIA_STREAM_COUNTER_VERSION 1
struct __DRImediaStreamCounterExtensionRec {
__DRIextension base;
/**
- * Get the number of vertical refreshes since some point in time before
- * this function was first called (i.e., system start up).
- */
- int (*getMSC)(__DRIscreen *screen, int64_t *msc);
-
- /**
* Wait for the MSC to equal target_msc, or, if that has already passed,
* the next time (MSC % divisor) is equal to remainder. If divisor is
* zero, the function will return as soon as MSC is greater than or equal
@@ -192,15 +186,10 @@ struct __DRImediaStreamCounterExtensionRec {
int64_t * msc, int64_t * sbc);
/**
- * Like the screen version of getMSC, but also takes a drawable so that
- * the appropriate pipe's counter can be retrieved.
- *
* Get the number of vertical refreshes since some point in time before
* this function was first called (i.e., system start up).
- *
- * \since Internal API version 2
*/
- int (*getDrawableMSC)(__DRIscreen *screen, void *drawablePrivate,
+ int (*getDrawableMSC)(__DRIscreen *screen, __DRIdrawable *drawable,
int64_t *msc);
};