[Beignet] [PATCH] runtime: The depth should be 1 for CL_MEM_OBJECT_IMAGE2D in beignet's implementation.

Yang, Rong R rong.r.yang at intel.com
Sun Jun 12 08:03:50 UTC 2016


LGTM, pushed.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Chuanbo Weng
> Sent: Tuesday, June 7, 2016 11:04
> To: beignet at lists.freedesktop.org
> Cc: Weng, Chuanbo <chuanbo.weng at intel.com>
> Subject: [Beignet] [PATCH] runtime: The depth should be 1 for
> CL_MEM_OBJECT_IMAGE2D in beignet's implementation.
> 
> Reported by Feng Yuan.
> 
> Signed-off-by: Chuanbo Weng <chuanbo.weng at intel.com>
> ---
>  src/cl_mem.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/cl_mem.c b/src/cl_mem.c index 229bc0a..79cd41d 100644
> --- a/src/cl_mem.c
> +++ b/src/cl_mem.c
> @@ -2194,7 +2194,7 @@ LOCAL cl_mem
> cl_mem_new_libva_image(cl_context ctx,
>    image->w = width;
>    image->h = height;
>    image->image_type = CL_MEM_OBJECT_IMAGE2D;
> -  image->depth = 2;
> +  image->depth = 1;
>    image->fmt = fmt;
>    image->intel_fmt = intel_fmt;
>    image->bpp = bpp;
> @@ -2292,7 +2292,7 @@ LOCAL cl_mem
> cl_mem_new_image_from_fd(cl_context ctx,
>    image->w = width;
>    image->h = height;
>    image->image_type = CL_MEM_OBJECT_IMAGE2D;
> -  image->depth = 0;
> +  image->depth = 1;
>    image->fmt = fmt;
>    image->intel_fmt = intel_fmt;
>    image->bpp = bpp;
> --
> 1.9.1
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list