summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-24 12:40:22 -0500
committerAlex Deucher <alexdeucher@gmail.com>2011-01-24 12:45:54 -0500
commit0f90133ac61c5e1d80b6fa9256e079349940029f (patch)
tree04dd2ad34706a7aed4b4d89b91ce3f14664f1fd2
parent42529603ecf86fcfd0a8f3495d9db9ce1ee9b4c3 (diff)
vbo: warn if we add a bo with a pointer to the wait list
-rw-r--r--src/radeon_vbo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_vbo.c b/src/radeon_vbo.c
index 09970465..767bb98a 100644
--- a/src/radeon_vbo.c
+++ b/src/radeon_vbo.c
@@ -136,6 +136,11 @@ void radeon_vbo_flush_bos(ScrnInfoPtr pScrn)
if (!radeon_bo_is_idle(dma_bo->bo))
continue;
+ if (dma_bo->bo->ptr) {
+ ErrorF("bo with pointer on wait list!\n");
+ continue;
+ }
+
remove_from_list(dma_bo);
dma_bo->expire_counter = expire_at;
insert_at_tail(&accel_state->bo_free, dma_bo);