From 19f1a357944f9d8f4567a2691a68067ec033ccb7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 25 Nov 2009 11:41:52 +1000 Subject: radeon: fix check for no work in operation --- src/r600_exa.c | 6 +++--- src/r600_textured_videofuncs.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/r600_exa.c b/src/r600_exa.c index 331711c8..34880704 100644 --- a/src/r600_exa.c +++ b/src/r600_exa.c @@ -406,7 +406,7 @@ R600DoneSolid(PixmapPtr pPix) CLEAR (draw_conf); CLEAR (vtx_res); - if (accel_state->vb_offset == 0) { + if (accel_state->vb_offset == accel_state->vb_start_op) { R600IBDiscard(pScrn, accel_state->ib); r600_vb_discard(pScrn); return; @@ -672,7 +672,7 @@ R600DoCopy(ScrnInfoPtr pScrn) CLEAR (draw_conf); CLEAR (vtx_res); - if (accel_state->vb_offset == 0) { + if (accel_state->vb_offset == accel_state->vb_start_op) { R600IBDiscard(pScrn, accel_state->ib); r600_vb_discard(pScrn); return; @@ -1994,7 +1994,7 @@ static void R600DoneComposite(PixmapPtr pDst) CLEAR (draw_conf); CLEAR (vtx_res); - if (accel_state->vb_offset == 0) { + if (accel_state->vb_offset == accel_state->vb_start_op) { R600IBDiscard(pScrn, accel_state->ib); r600_vb_discard(pScrn); return; diff --git a/src/r600_textured_videofuncs.c b/src/r600_textured_videofuncs.c index 7d0cfa78..c740e066 100644 --- a/src/r600_textured_videofuncs.c +++ b/src/r600_textured_videofuncs.c @@ -65,7 +65,7 @@ R600DoneTexturedVideo(ScrnInfoPtr pScrn) CLEAR (draw_conf); CLEAR (vtx_res); - if (accel_state->vb_offset == 0) { + if (accel_state->vb_offset == accel_state->vb_start_op) { R600IBDiscard(pScrn, accel_state->ib); r600_vb_discard(pScrn); return; -- cgit v1.2.3