diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-11 12:09:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-11 12:10:18 +0000 |
commit | 0a5313900ec9a7c499eb5051f3a5f078a9b0bbde (patch) | |
tree | e4c68410f3f0b8cb5d8071fe49883d1fd38f53ef /src/sna/kgem_debug_gen3.c | |
parent | 2add5991a7d186d8271cb79ae4f62dad7b4ca243 (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_gen3.c')
-rw-r--r-- | src/sna/kgem_debug_gen3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem_debug_gen3.c b/src/sna/kgem_debug_gen3.c index 213c69f6..969b1d19 100644 --- a/src/sna/kgem_debug_gen3.c +++ b/src/sna/kgem_debug_gen3.c @@ -97,7 +97,7 @@ static void gen3_update_vertex_buffer_addr(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); } ptr = (char *)base + kgem->reloc[i].delta; |