summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug_gen5.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_gen5.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_gen5.c')
-rw-r--r--src/sna/kgem_debug_gen5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem_debug_gen5.c b/src/sna/kgem_debug_gen5.c
index 7912cc91..f21220f3 100644
--- a/src/sna/kgem_debug_gen5.c
+++ b/src/sna/kgem_debug_gen5.c
@@ -78,7 +78,7 @@ static void gen5_update_vertex_buffer(struct kgem *kgem, const uint32_t *data)
size = kgem->nbatch * sizeof(uint32_t);
} else {
bo = kgem_debug_get_bo_for_reloc_entry(kgem, reloc);
- base = kgem_bo_map(kgem, bo, PROT_READ);
+ base = kgem_bo_map__debug(kgem, bo);
size = bo->size;
}
ptr = (char *)base + reloc->delta;