summaryrefslogtreecommitdiff
path: root/src/r6xx_accel.c
diff options
context:
space:
mode:
authorWolfram <bugzilla1@malloc.de>2010-06-21 18:59:19 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-06-21 18:59:19 -0400
commit801e83227a59a29eea425ea612083bbf2b536c30 (patch)
treec9d91fed9309df84d1a93e61d1702a21aa3df68a /src/r6xx_accel.c
parentb13d719080b75fc6db4d15d2d323b8fce8b7ad06 (diff)
r6xx/r7xx: fix ums cmd buffer leak
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=27957
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 c8ef4516..0edfe8bf 100644
--- a/src/r6xx_accel.c
+++ b/src/r6xx_accel.c
@@ -1283,6 +1283,8 @@ void r600_vb_no_space(ScrnInfoPtr pScrn, int vert_size)
}
#endif
- r600_finish_op(pScrn, vert_size);
- r600_cp_start(pScrn);
+ if (accel_state->vb_start_op != -1) {
+ r600_finish_op(pScrn, vert_size);
+ r600_cp_start(pScrn);
+ }
}