[igt-dev] [PATCH i-g-t 5/6] aubdump: Note pinned BO in verbose output

Jordan Justen jordan.l.justen at intel.com
Wed Feb 21 23:19:04 UTC 2018


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 tools/aubdump.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/aubdump.c b/tools/aubdump.c
index aea10970..4ecba01a 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -936,15 +936,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);
 		}
 
-- 
2.16.1



More information about the igt-dev mailing list