mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
dri: Remove driMediaStreamCounterExtension
Also DRI1-only.
This commit is contained in:
parent
759cbb751b
commit
73ec71cb16
4 changed files with 0 additions and 45 deletions
|
|
@ -620,7 +620,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = {
|
|||
*/
|
||||
|
||||
static const __DRIextension *dri_screen_extensions[] = {
|
||||
&driMediaStreamCounterExtension.base,
|
||||
&driTexBufferExtension.base,
|
||||
&dri2FlushExtension.base,
|
||||
&dri2ImageExtension.base,
|
||||
|
|
@ -629,7 +628,6 @@ static const __DRIextension *dri_screen_extensions[] = {
|
|||
};
|
||||
|
||||
static const __DRIextension *dri_screen_extensions_throttle[] = {
|
||||
&driMediaStreamCounterExtension.base,
|
||||
&driTexBufferExtension.base,
|
||||
&dri2FlushExtension.base,
|
||||
&dri2ImageExtension.base,
|
||||
|
|
|
|||
|
|
@ -321,45 +321,6 @@ static void driSwapBuffers(__DRIdrawable *dPriv)
|
|||
free(rects);
|
||||
}
|
||||
|
||||
static int driDrawableGetMSC( __DRIscreen *sPriv, __DRIdrawable *dPriv,
|
||||
int64_t *msc )
|
||||
{
|
||||
return sPriv->DriverAPI.GetDrawableMSC(sPriv, dPriv, msc);
|
||||
}
|
||||
|
||||
|
||||
static int driWaitForMSC(__DRIdrawable *dPriv, int64_t target_msc,
|
||||
int64_t divisor, int64_t remainder,
|
||||
int64_t * msc, int64_t * sbc)
|
||||
{
|
||||
__DRIswapInfo sInfo;
|
||||
int status;
|
||||
|
||||
status = dPriv->driScreenPriv->DriverAPI.WaitForMSC( dPriv, target_msc,
|
||||
divisor, remainder,
|
||||
msc );
|
||||
|
||||
/* GetSwapInfo() may not be provided by the driver if GLX_SGI_video_sync
|
||||
* is supported but GLX_OML_sync_control is not. Therefore, don't return
|
||||
* an error value if GetSwapInfo() is not implemented.
|
||||
*/
|
||||
if ( status == 0
|
||||
&& dPriv->driScreenPriv->DriverAPI.GetSwapInfo ) {
|
||||
status = dPriv->driScreenPriv->DriverAPI.GetSwapInfo( dPriv, & sInfo );
|
||||
*sbc = sInfo.swap_count;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
const __DRImediaStreamCounterExtension driMediaStreamCounterExtension = {
|
||||
{ __DRI_MEDIA_STREAM_COUNTER, __DRI_MEDIA_STREAM_COUNTER_VERSION },
|
||||
driWaitForMSC,
|
||||
driDrawableGetMSC,
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* This is called via __DRIscreenRec's createNewDrawable pointer.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ typedef struct __DRIswapInfoRec __DRIswapInfo;
|
|||
*/
|
||||
extern const __DRIcoreExtension driCoreExtension;
|
||||
extern const __DRIdri2Extension driDRI2Extension;
|
||||
extern const __DRImediaStreamCounterExtension driMediaStreamCounterExtension;
|
||||
extern const __DRI2configQueryExtension dri2ConfigQueryExtension;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1099,9 +1099,6 @@ radeonCreateScreen2(__DRIscreen *sPriv)
|
|||
i = 0;
|
||||
screen->extensions[i++] = &dri2ConfigQueryExtension.base;
|
||||
|
||||
if ( screen->irq != 0 )
|
||||
screen->extensions[i++] = &driMediaStreamCounterExtension.base;
|
||||
|
||||
#if defined(RADEON_R100)
|
||||
screen->extensions[i++] = &radeonTexBufferExtension.base;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue