diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-01 20:10:17 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-01 20:10:17 +0000 |
commit | da84f0b642a65614c2618121869d5cd45ad986f5 (patch) | |
tree | 3aa7d5f103bd8446e2b2fcca0e661e23d47d7829 /src/mesa/drivers/dri/r200/r200_ioctl.c | |
parent | 98e92d261bbf11a35a1a26d1c1bdc3cfb304b2ae (diff) |
fix page flipping breakage
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_ioctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c index bf2d091759..e45a59fe3a 100644 --- a/src/mesa/drivers/dri/r200/r200_ioctl.c +++ b/src/mesa/drivers/dri/r200/r200_ioctl.c @@ -49,9 +49,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "r200_sanity.h" #include "radeon_reg.h" +#include "drirenderbuffer.h" #include "vblank.h" - #define R200_TIMEOUT 512 #define R200_IDLE_RETRY 16 @@ -573,6 +573,13 @@ void r200PageFlip( const __DRIdrawablePrivate *dPriv ) rmesa->hw.ctx.cmd[CTX_RB3D_COLORPITCH] |= R200_COLOR_TILE_ENABLE; } #else + /* Get ready for drawing next frame. Update the renderbuffers' + * flippedOffset/Pitch fields so we draw into the right place. + */ + driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer, + rmesa->sarea->pfCurrentPage); + + r200UpdateDrawBuffer(rmesa->glCtx); #endif } |