diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2018-02-20 02:36:03 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2018-02-22 11:54:02 -0800 |
commit | ff4d4ff6124c7173bec28e195d3daff660f4d972 (patch) | |
tree | 82c89b3f5a81127292ddd4ac2d8a3aa628c58fe9 | |
parent | 21eb83d4736b4dd019f119b0abe7f2c5d5593aa3 (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>
-rw-r--r-- | tools/aubdump.c | 2 |
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); } |