runtime: The depth should be 1 for CL_MEM_OBJECT_IMAGE2D in beignet's implementation.

Submitted by Chuanbo Weng on June 7, 2016, 3:03 a.m.

Details

Message ID 1465268623-29632-1-git-send-email-chuanbo.weng@intel.com
State New
Headers show
Series "runtime: The depth should be 1 for CL_MEM_OBJECT_IMAGE2D in beignet's implementation." ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Chuanbo Weng June 7, 2016, 3:03 a.m.
Reported by Feng Yuan.

Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com>
---
 src/cl_mem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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;

Comments

LGTM, pushed.

> -----Original Message-----

> From: Beignet [mailto:beignet-bounces@lists.freedesktop.org] On Behalf Of

> Chuanbo Weng

> Sent: Tuesday, June 7, 2016 11:04

> To: beignet@lists.freedesktop.org

> Cc: Weng, Chuanbo <chuanbo.weng@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@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@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/beignet