libocl: Add shuffle and shuffle2 builtins for half type

Submitted by Jan Vesely on Sept. 19, 2017, 4:16 a.m.

Details

Message ID 20170919041634.2277-1-jano.vesely@gmail.com
State Accepted
Headers show
Series "libocl: Add shuffle and shuffle2 builtins for half type" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Jan Vesely Sept. 19, 2017, 4:16 a.m.
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(+)

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)