diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-12 21:05:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-12 21:15:58 +0000 |
commit | 20a4d7181983c7fed289844be49ccaf3f56965c6 (patch) | |
tree | 698d4e4311fea6dec8982971a2a2ca9ebf75c8d7 /src | |
parent | 7932a2a259069bb7d19af8566f7b7704f6c2eade (diff) |
sna: Dump batch contents for debugging before modification
We need to dump the batch contents before the maps are made by the
construction of the batch itself.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 50ed4bf1..be01f67b 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1432,6 +1432,10 @@ void _kgem_submit(struct kgem *kgem) kgem_finish_partials(kgem); +#if DEBUG_BATCH + __kgem_batch_debug(kgem, batch_end); +#endif + rq = kgem->next_request; if (kgem->surface != kgem->max_batch_size) size = compact_batch_surface(kgem); @@ -1460,10 +1464,6 @@ void _kgem_submit(struct kgem *kgem) kgem_fixup_self_relocs(kgem, rq->bo); -#if DEBUG_BATCH - __kgem_batch_debug(kgem, batch_end); -#endif - if (kgem_batch_write(kgem, handle, size) == 0) { struct drm_i915_gem_execbuffer2 execbuf; int ret, retry = 3; @@ -2343,8 +2343,6 @@ static void _kgem_bo_delete_partial(struct kgem *kgem, struct kgem_bo *bo) io->used = bo->delta; bubble_sort_partial(kgem, io); } - - assert(validate_partials(kgem)); } void _kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) @@ -2860,6 +2858,8 @@ struct kgem_bo *kgem_create_proxy(struct kgem_bo *target, struct kgem_bo *bo; assert(target->proxy == NULL); + DBG(("%s: target handle=%d, offset=%d, length=%d, io=%d\n", + __FUNCTION__, target->handle, offset, length, target->io)); bo = __kgem_bo_alloc(target->handle, length); if (bo == NULL) |