summaryrefslogtreecommitdiff
path: root/src/r6xx_accel.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-21 15:59:32 -0500
committerAlex Deucher <alexdeucher@gmail.com>2011-01-21 15:59:32 -0500
commit4817fac5f728b777939e2e2bee16b842c9e1367b (patch)
treefc6cd2d26d01d56d3a7ae87c33a2524624c8a485 /src/r6xx_accel.c
parent0a03f03a65aad925ba2d9c76b1d3356184607bf9 (diff)
vbo: remove useless radeon_vb_discard()
We already reset vb_start_op to -1 in the UMS/KMS ib discard functions.
Diffstat (limited to 'src/r6xx_accel.c')
-rw-r--r--src/r6xx_accel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c
index e4365141..0c7714a9 100644
--- a/src/r6xx_accel.c
+++ b/src/r6xx_accel.c
@@ -71,6 +71,9 @@ void R600CPFlushIndirect(ScrnInfoPtr pScrn, drmBufPtr ib)
END_BATCH();
}
+ info->accel_state->vbo.vb_offset = 0;
+ info->accel_state->vbo.vb_start_op = -1;
+
//ErrorF("buffer bytes: %d\n", buffer->used);
indirect.idx = buffer->idx;
@@ -1173,7 +1176,6 @@ void r600_finish_op(ScrnInfoPtr pScrn, int vtx_size)
if (accel_state->vbo.vb_offset == accel_state->vbo.vb_start_op) {
R600IBDiscard(pScrn, accel_state->ib);
- radeon_vb_discard(pScrn, &accel_state->vbo);
return;
}