libocl: Add shuffle and shuffle2 builtins for half type

Submitted by Song, Ruiling on Sept. 20, 2017, 8:43 a.m.

Details

Message ID 148B1B7A67D1C24B9EF0BE42EA49770684E150E3@SHSMSX103.ccr.corp.intel.com
State New
Series "libocl: Add shuffle and shuffle2 builtins for half type"
Headers show

Commit Message

Song, Ruiling Sept. 20, 2017, 8:43 a.m.
LGTM

Ruiling

-----Original Message-----
From: Beignet [mailto:beignet-bounces@lists.freedesktop.org] On Behalf Of Jan Vesely

Sent: Tuesday, September 19, 2017 12:17 PM
To: beignet@lists.freedesktop.org
Subject: [Beignet] [PATCH] libocl: Add shuffle and shuffle2 builtins for half type

Signed-off-by: Jan Vesely <jano.vesely@gmail.com>

---
Fixes shuffle and shuffle2(mostly) piglit tests for half type

 backend/src/libocl/include/ocl_misc.h | 2 ++
 backend/src/libocl/src/ocl_misc.cl    | 2 ++
 2 files changed, 4 insertions(+)

-- 
2.13.5

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet

Patch hide | download patch | download mbox

diff --git a/backend/src/libocl/include/ocl_misc.h b/backend/src/libocl/include/ocl_misc.h
index cb9e5bdd..a6a29e39 100644
--- a/backend/src/libocl/include/ocl_misc.h
+++ b/backend/src/libocl/include/ocl_misc.h
@@ -52,6 +52,7 @@  DEF(char)
 DEF(uchar)
 DEF(short)
 DEF(ushort)
+DEF(half)
 DEF(int)
 DEF(uint)
 DEF(float)
@@ -117,6 +118,7 @@  DEF(char)
 DEF(uchar)
 DEF(short)
 DEF(ushort)
+DEF(half)
 DEF(int)
 DEF(uint)
 DEF(float)
diff --git a/backend/src/libocl/src/ocl_misc.cl b/backend/src/libocl/src/ocl_misc.cl
index ce139a6c..d8e09aed 100644
--- a/backend/src/libocl/src/ocl_misc.cl
+++ b/backend/src/libocl/src/ocl_misc.cl
@@ -87,6 +87,7 @@  DEF(char)
 DEF(uchar)
 DEF(short)
 DEF(ushort)
+DEF(half)
 DEF(int)
 DEF(uint)
 DEF(float)
@@ -202,6 +203,7 @@  DEF(char)
 DEF(uchar)
 DEF(short)
 DEF(ushort)
+DEF(half)
 DEF(int)
 DEF(uint)
 DEF(float)

Comments

Yang, Rong R Sept. 21, 2017, 7:14 a.m.
Pushed, thanks.

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

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

> Song, Ruiling

> Sent: Wednesday, September 20, 2017 4:44 PM

> To: Jan Vesely <jano.vesely@gmail.com>; beignet@lists.freedesktop.org

> Subject: Re: [Beignet] [PATCH] libocl: Add shuffle and shuffle2 builtins for half

> type

> 

> LGTM

> 

> Ruiling

> 

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

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

> Vesely

> Sent: Tuesday, September 19, 2017 12:17 PM

> To: beignet@lists.freedesktop.org

> Subject: [Beignet] [PATCH] libocl: Add shuffle and shuffle2 builtins for half type

> 

> Signed-off-by: Jan Vesely <jano.vesely@gmail.com>

> ---

> Fixes shuffle and shuffle2(mostly) piglit tests for half type

> 

>  backend/src/libocl/include/ocl_misc.h | 2 ++

>  backend/src/libocl/src/ocl_misc.cl    | 2 ++

>  2 files changed, 4 insertions(+)

> 

> diff --git a/backend/src/libocl/include/ocl_misc.h

> b/backend/src/libocl/include/ocl_misc.h

> index cb9e5bdd..a6a29e39 100644

> --- a/backend/src/libocl/include/ocl_misc.h

> +++ b/backend/src/libocl/include/ocl_misc.h

> @@ -52,6 +52,7 @@ DEF(char)

>  DEF(uchar)

>  DEF(short)

>  DEF(ushort)

> +DEF(half)

>  DEF(int)

>  DEF(uint)

>  DEF(float)

> @@ -117,6 +118,7 @@ DEF(char)

>  DEF(uchar)

>  DEF(short)

>  DEF(ushort)

> +DEF(half)

>  DEF(int)

>  DEF(uint)

>  DEF(float)

> diff --git a/backend/src/libocl/src/ocl_misc.cl

> b/backend/src/libocl/src/ocl_misc.cl

> index ce139a6c..d8e09aed 100644

> --- a/backend/src/libocl/src/ocl_misc.cl

> +++ b/backend/src/libocl/src/ocl_misc.cl

> @@ -87,6 +87,7 @@ DEF(char)

>  DEF(uchar)

>  DEF(short)

>  DEF(ushort)

> +DEF(half)

>  DEF(int)

>  DEF(uint)

>  DEF(float)

> @@ -202,6 +203,7 @@ DEF(char)

>  DEF(uchar)

>  DEF(short)

>  DEF(ushort)

> +DEF(half)

>  DEF(int)

>  DEF(uint)

>  DEF(float)

> --

> 2.13.5

> 

> _______________________________________________

> Beignet mailing list

> Beignet@lists.freedesktop.org

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

> _______________________________________________

> Beignet mailing list

> Beignet@lists.freedesktop.org

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