[Beignet] [PATCH] fix issue to pass utest of runtime_climage_from_boname for BDW

Zhigang Gong zhigang.gong at linux.intel.com
Thu Nov 27 18:36:44 PST 2014


LGTM, pushed, thanks.

On Fri, Nov 28, 2014 at 10:57:27AM +0800, Guo Yejun wrote:
> To create cl image from bo name with offset, the offset needs to
> be added into surface_base_addr_lo/hi.
> 
> Signed-off-by: Guo Yejun <yejun.guo at intel.com>
> ---
>  src/intel/intel_gpgpu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
> index 09f2317..0df7876 100644
> --- a/src/intel/intel_gpgpu.c
> +++ b/src/intel/intel_gpgpu.c
> @@ -1170,8 +1170,8 @@ intel_gpgpu_bind_image_gen8(intel_gpgpu_t *gpgpu,
>    ss->ss2.height = h - 1;
>    ss->ss3.depth = depth - 1;
>  
> -  ss->ss8.surface_base_addr_lo = obj_bo->offset64 & 0xffffffff;
> -  ss->ss9.surface_base_addr_hi = (obj_bo->offset64 >> 32) & 0xffffffff;
> +  ss->ss8.surface_base_addr_lo = (obj_bo->offset64 + obj_bo_offset) & 0xffffffff;
> +  ss->ss9.surface_base_addr_hi = ((obj_bo->offset64 + obj_bo_offset) >> 32) & 0xffffffff;
>  
>    ss->ss4.render_target_view_ext = depth - 1;
>    ss->ss4.min_array_elt = 0;
> -- 
> 1.9.1
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list