summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2018-02-20 02:36:03 -0800
committerJordan Justen <jordan.l.justen@intel.com>2018-02-22 11:54:02 -0800
commitff4d4ff6124c7173bec28e195d3daff660f4d972 (patch)
tree82c89b3f5a81127292ddd4ac2d8a3aa628c58fe9 /tools
parent21eb83d4736b4dd019f119b0abe7f2c5d5593aa3 (diff)
tools/aubdump: Support alignment of BO in execbuffer2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 700296f4..c290ecaa 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -837,6 +837,8 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2)
if (obj->flags & EXEC_OBJECT_PINNED) {
bo->offset = obj->offset;
} else {
+ if (obj->alignment != 0)
+ offset = align_u32(offset, obj->alignment);
bo->offset = offset;
offset = align_u32(offset + bo->size + 4095, 4096);
}