diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2015-04-10 17:20:56 -0700 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2015-07-06 15:38:05 -0700 |
commit | 5ba34e1aeed3c343bc9b53727220449d244b3296 (patch) | |
tree | 2d27305e4cb4e9b4bc0524a5f615edfd4749d4f6 /intel | |
parent | 5c68f9f6f9bcc7edeacbc18b1052aed46a89c9f2 (diff) | |
download | libdrm-5ba34e1aeed3c343bc9b53727220449d244b3296.tar.gz libdrm-5ba34e1aeed3c343bc9b53727220449d244b3296.tar.bz2 libdrm-5ba34e1aeed3c343bc9b53727220449d244b3296.zip |
Set alignment value in drm_intel_add_validate_buffer()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'intel')
-rw-r--r-- | intel/intel_bufmgr_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 30180817..b1c3b3a1 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -465,7 +465,7 @@ drm_intel_add_validate_buffer(drm_intel_bo *bo) bufmgr_gem->exec_objects[index].handle = bo_gem->gem_handle; bufmgr_gem->exec_objects[index].relocation_count = bo_gem->reloc_count; bufmgr_gem->exec_objects[index].relocs_ptr = (uintptr_t) bo_gem->relocs; - bufmgr_gem->exec_objects[index].alignment = 0; + bufmgr_gem->exec_objects[index].alignment = bo->align; bufmgr_gem->exec_objects[index].offset = 0; bufmgr_gem->exec_bos[index] = bo; bufmgr_gem->exec_count++; @@ -507,7 +507,7 @@ drm_intel_add_validate_buffer2(drm_intel_bo *bo, int need_fence) bufmgr_gem->exec2_objects[index].handle = bo_gem->gem_handle; bufmgr_gem->exec2_objects[index].relocation_count = bo_gem->reloc_count; bufmgr_gem->exec2_objects[index].relocs_ptr = (uintptr_t)bo_gem->relocs; - bufmgr_gem->exec2_objects[index].alignment = 0; + bufmgr_gem->exec2_objects[index].alignment = bo->align; bufmgr_gem->exec2_objects[index].offset = 0; bufmgr_gem->exec_bos[index] = bo; bufmgr_gem->exec2_objects[index].flags = 0; |