summaryrefslogtreecommitdiff
path: root/tools/aubdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aubdump.c')
-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);
}