diff options
author | Kristian Høgsberg <[email protected]> | 2011-10-28 15:08:24 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-11-02 11:15:57 -0400 |
commit | d02bd705fb0ae93adc53925d0191b86f7a6791f2 (patch) | |
tree | 35163126aec0bcacd3805dc29a89a1903548244b | |
parent | 73ec71cb16fbae0effcb4a92da7dc7f17cd6a62a (diff) |
dri: Remove unused __DRIswapInfoRec
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 2f33a622fc6..1ace19ebda2 100644 --- a/src/mesa/drivers/dri/common/dri_util.h +++ b/src/mesa/drivers/dri/common/dri_util.h @@ -58,8 +58,6 @@ #define GLX_BAD_CONTEXT 5 -typedef struct __DRIswapInfoRec __DRIswapInfo; - /** * Extensions. */ @@ -183,13 +181,6 @@ struct __DriverAPIRec { GLboolean (*UnbindContext)(__DRIcontext *driContextPriv); /** - * Retrieves statistics about buffer swap operations. Required if - * GLX_OML_sync_control or GLX_MESA_swap_frame_usage is supported. - */ - int (*GetSwapInfo)( __DRIdrawable *dPriv, __DRIswapInfo * sInfo ); - - - /** * These are required if GLX_OML_sync_control is supported. */ /*@{*/ @@ -229,37 +220,6 @@ struct __DriverAPIRec { extern const struct __DriverAPIRec driDriverAPI; -struct __DRIswapInfoRec { - /** - * Number of swapBuffers operations that have been *completed*. - */ - uint64_t swap_count; - - /** - * Unadjusted system time of the last buffer swap. This is the time - * when the swap completed, not the time when swapBuffers was called. - */ - int64_t swap_ust; - - /** - * Number of swap operations that occurred after the swap deadline. That - * is if a swap happens more than swap_interval frames after the previous - * swap, it has missed its deadline. If swap_interval is 0, then the - * swap deadline is 1 frame after the previous swap. - */ - uint64_t swap_missed_count; - - /** - * Amount of time used by the last swap that missed its deadline. This - * is calculated as (__glXGetUST() - swap_ust) / (swap_interval * - * time_for_single_vrefresh)). If the actual value of swap_interval is - * 0, then 1 is used instead. If swap_missed_count is non-zero, this - * should be greater-than 1.0. - */ - float swap_missed_usage; -}; - - /** * Per-drawable private DRI driver information. */ |