Re: [PATCH 2/2] Set alignment value in drm_intel_add_validate_buffer()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+Ben

On Fri, Apr 10, 2015 at 5:20 PM, Anuj Phogat <anuj.phogat@xxxxxxxxx> wrote:
> Signed-off-by: Anuj Phogat <anuj.phogat@xxxxxxxxx>
> ---
>  intel/intel_bufmgr_gem.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
> index 51d87ae..92701a5 100644
> --- a/intel/intel_bufmgr_gem.c
> +++ b/intel/intel_bufmgr_gem.c
> @@ -459,7 +459,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++;
> @@ -501,7 +501,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;
> --
> 2.3.4
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux