summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug_gen4.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-11 12:09:13 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-11 12:10:18 +0000
commit0a5313900ec9a7c499eb5051f3a5f078a9b0bbde (patch)
treee4c68410f3f0b8cb5d8071fe49883d1fd38f53ef /src/sna/kgem_debug_gen4.c
parent2add5991a7d186d8271cb79ae4f62dad7b4ca243 (diff)
sna: Explicitly retire the bo following a serialisation point
This is to keep the sanity checks in order, but conceptually should be useful as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug_gen4.c')
-rw-r--r--src/sna/kgem_debug_gen4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem_debug_gen4.c b/src/sna/kgem_debug_gen4.c
index 0004ecf5..53c350b8 100644
--- a/src/sna/kgem_debug_gen4.c
+++ b/src/sna/kgem_debug_gen4.c
@@ -84,7 +84,7 @@ static void gen4_update_vertex_buffer(struct kgem *kgem, const uint32_t *data)
if (bo->handle == reloc)
break;
assert(&bo->request != &kgem->next_request->buffers);
- base = kgem_bo_map(kgem, bo, PROT_READ);
+ base = kgem_bo_map__debug(kgem, bo);
}
ptr = (char *)base + kgem->reloc[i].delta;
@@ -405,7 +405,7 @@ get_reloc(struct kgem *kgem,
if (bo->handle == handle)
break;
assert(&bo->request != &kgem->next_request->buffers);
- base = kgem_bo_map(kgem, bo, PROT_READ);
+ base = kgem_bo_map__debug(kgem, bo);
r->bo = bo;
r->base = base;
}