diff options
Diffstat (limited to 'src/sna/kgem_debug_gen4.c')
-rw-r--r-- | src/sna/kgem_debug_gen4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/kgem_debug_gen4.c b/src/sna/kgem_debug_gen4.c index d736cbd9..0f91d29a 100644 --- a/src/sna/kgem_debug_gen4.c +++ b/src/sna/kgem_debug_gen4.c @@ -90,7 +90,7 @@ static void gen4_update_vertex_buffer(struct kgem *kgem, const uint32_t *data) i = data[0] >> 27; if (state.vb[i].current) - munmap(state.vb[i].base, state.vb[i].current->size); + kgem_bo_unmap(kgem, state.vb[i].current); state.vb[i].current = bo; state.vb[i].base = base; @@ -420,7 +420,7 @@ static void put_reloc(struct kgem *kgem, struct reloc *r) { if (r->bo != NULL) - munmap(r->base, r->bo->size); + kgem_bo_unmap(kgem, r->bo); } #endif @@ -697,7 +697,7 @@ static void finish_vertex_buffers(struct kgem *kgem) for (i = 0; i < ARRAY_SIZE(state.vb); i++) if (state.vb[i].current) - munmap(state.vb[i].base, state.vb[i].current->size); + kgem_bo_unmap(kgem, state.vb[i].current); } void kgem_gen4_finish_state(struct kgem *kgem) @@ -705,7 +705,7 @@ void kgem_gen4_finish_state(struct kgem *kgem) finish_vertex_buffers(kgem); if (state.dynamic_state.current) - munmap(state.dynamic_state.base, state.dynamic_state.current->size); + kgem_bo_unmap(kgem, state.dynamic_state.base); memset(&state, 0, sizeof(state)); } |