diff options
author | Eric Anholt <[email protected]> | 2011-10-14 14:04:48 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-28 11:31:11 -0700 |
commit | eb135fe8c16388cd33b424ee3915ae52d20cb3ff (patch) | |
tree | 71e5f4107421f99fd364e4c88e85c605f5e97378 /src/mesa | |
parent | a9f75158908d027800c56b4879480cbcefd9414f (diff) |
radeon: Drop some remaining DRI1 vblank support code.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.c | 9 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.h | 16 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 33 |
3 files changed, 0 insertions, 58 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c index ada010b0b7e..dbd0ed247bf 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c @@ -716,7 +716,6 @@ GLboolean radeonMakeCurrent(__DRIcontext * driContextPriv, __DRIdrawable * driReadPriv) { radeonContextPtr radeon; - struct radeon_framebuffer *rdrfb; struct gl_framebuffer *drfb, *readfb; if (!driContextPriv) { @@ -766,9 +765,7 @@ GLboolean radeonMakeCurrent(__DRIcontext * driContextPriv, if (radeon->glCtx->DrawBuffer == drfb) { if(driDrawPriv != NULL) { - rdrfb = (struct radeon_framebuffer *)drfb; if (driDrawPriv->swap_interval == (unsigned)-1) { - int i; driDrawPriv->vblFlags = (radeon->radeonScreen->irq != 0) ? driGetDefaultVBlankFlags(&radeon-> @@ -776,12 +773,6 @@ GLboolean radeonMakeCurrent(__DRIcontext * driContextPriv, : VBLANK_FLAG_NO_IRQ; driDrawableInitVBlank(driDrawPriv); - rdrfb->vbl_waited = driDrawPriv->vblSeq; - - for (i = 0; i < 2; i++) { - if (rdrfb->color_rb[i]) - rdrfb->color_rb[i]->vbl_pending = driDrawPriv->vblSeq; - } } radeon_window_moved(radeon); } diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index 2b478e1ee0c..1b2348105cb 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -91,7 +91,6 @@ struct radeon_renderbuffer int has_surface; GLuint pf_pending; /**< sequence number of pending flip */ - GLuint vbl_pending; /**< vblank sequence number of pending flip */ __DRIdrawable *dPriv; /* r6xx+ tiling */ @@ -107,21 +106,6 @@ struct radeon_framebuffer struct gl_framebuffer base; struct radeon_renderbuffer *color_rb[2]; - - GLuint vbl_waited; - - /* buffer swap */ - int64_t swap_ust; - int64_t swap_missed_ust; - - GLuint swap_count; - GLuint swap_missed_count; - - /* Drawable page flipping state */ - GLboolean pf_active; - GLint pf_current_page; - GLint pf_num_pages; - }; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index fed56031fbc..c142239cf28 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -135,8 +135,6 @@ static const GLuint __driNConfigOptions = 17; #endif -static int getSwapInfo( __DRIdrawable *dPriv, __DRIswapInfo * sInfo ); - #ifndef RADEON_INFO_TILE_CONFIG #define RADEON_INFO_TILE_CONFIG 0x6 #endif @@ -1537,32 +1535,6 @@ __DRIconfig **radeonInitScreen2(__DRIscreen *psp) return (const __DRIconfig **)configs; } -/** - * Get information about previous buffer swaps. - */ -static int -getSwapInfo( __DRIdrawable *dPriv, __DRIswapInfo * sInfo ) -{ - struct radeon_framebuffer *rfb; - - if ( (dPriv == NULL) || (dPriv->driContextPriv == NULL) - || (dPriv->driContextPriv->driverPrivate == NULL) - || (sInfo == NULL) ) { - return -1; - } - - rfb = dPriv->driverPrivate; - sInfo->swap_count = rfb->swap_count; - sInfo->swap_ust = rfb->swap_ust; - sInfo->swap_missed_count = rfb->swap_missed_count; - - sInfo->swap_missed_usage = (sInfo->swap_missed_count != 0) - ? driCalculateSwapUsage( dPriv, 0, rfb->swap_missed_ust ) - : 0.0; - - return 0; -} - const struct __DriverAPIRec driDriverAPI = { .DestroyScreen = radeonDestroyScreen, #if defined(RADEON_R200) @@ -1576,11 +1548,6 @@ const struct __DriverAPIRec driDriverAPI = { .DestroyBuffer = radeonDestroyBuffer, .MakeCurrent = radeonMakeCurrent, .UnbindContext = radeonUnbindContext, - .GetSwapInfo = getSwapInfo, - .GetDrawableMSC = driDrawableGetMSC32, - .WaitForMSC = driWaitForMSC32, - .WaitForSBC = NULL, - .SwapBuffersMSC = NULL, /* DRI2 */ .InitScreen2 = radeonInitScreen2, }; |