diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2018-02-20 14:22:52 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2018-02-22 11:54:02 -0800 |
commit | bfd586c18b820a3f1174197d9031b6ffde091872 (patch) | |
tree | 4fbd006b481e2907e61beedc6c1c5fb6b83e0d7b /tools | |
parent | ff4d4ff6124c7173bec28e195d3daff660f4d972 (diff) |
tools/aubdump: Note pinned BO in verbose output
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/aubdump.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c index c290ecaa..c2950375 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -831,15 +831,18 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2) return; } - if (verbose) - printf("BO #%d (%dB) @ 0x%x\n", obj->handle, bo->size, offset); - if (obj->flags & EXEC_OBJECT_PINNED) { bo->offset = obj->offset; + if (verbose) + printf("BO #%d (%dB) pinned @ 0x%lx\n", + obj->handle, bo->size, bo->offset); } else { if (obj->alignment != 0) offset = align_u32(offset, obj->alignment); bo->offset = offset; + if (verbose) + printf("BO #%d (%dB) @ 0x%lx\n", obj->handle, + bo->size, bo->offset); offset = align_u32(offset + bo->size + 4095, 4096); } |