summaryrefslogtreecommitdiff
path: root/src/r6xx_accel.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-08-31 19:41:59 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-08-31 19:41:59 -0400
commit8f4196e88855f10762254fca9e0a0988e7b5562f (patch)
tree1d917d246c5683d3b1e0bc63265ab7ed9bdd414c /src/r6xx_accel.c
parente87f0f50f31a59ca1f60d4582d4a57ed00854fb7 (diff)
r6xx/r7xx: various CS fixes from Dave
Diffstat (limited to 'src/r6xx_accel.c')
-rw-r--r--src/r6xx_accel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c
index 7c7f4693..6346e526 100644
--- a/src/r6xx_accel.c
+++ b/src/r6xx_accel.c
@@ -48,9 +48,11 @@ void r600_cs_flush_indirect(ScrnInfoPtr pScrn)
if (!info->cs->cdw)
return;
- if (info->accel_state->vb_bo)
+ if (info->accel_state->vb_bo) {
radeon_bo_unmap(info->accel_state->vb_bo);
- info->accel_state->vb_bo = NULL;
+ radeon_bo_ref(info->accel_state->vb_bo);
+ info->accel_state->vb_bo = NULL;
+ }
radeon_cs_emit(info->cs);
radeon_cs_erase(info->cs);