[libclc] r248162 - Add image attribute defines.
Tom Stellard via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 21 07:59:57 PDT 2015
Author: tstellar
Date: Mon Sep 21 09:59:57 2015
New Revision: 248162
URL: http://llvm.org/viewvc/llvm-project?rev=248162&view=rev
Log:
Add image attribute defines.
Patch by: Zoltan Gilian
Added:
libclc/trunk/generic/include/clc/image/image_defines.h
Modified:
libclc/trunk/generic/include/clc/clc.h
Modified: libclc/trunk/generic/include/clc/clc.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clc.h?rev=248162&r1=248161&r2=248162&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Mon Sep 21 09:59:57 2015
@@ -212,6 +212,7 @@
/* 6.11.13 Image Read and Write Functions */
+#include <clc/image/image_defines.h>
#include <clc/image/image.h>
/* libclc internal defintions */
Added: libclc/trunk/generic/include/clc/image/image_defines.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/image/image_defines.h?rev=248162&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/image/image_defines.h (added)
+++ libclc/trunk/generic/include/clc/image/image_defines.h Mon Sep 21 09:59:57 2015
@@ -0,0 +1,31 @@
+/* get_image_channel_data_type flags */
+#define CLK_SNORM_INT8 0x10D0
+#define CLK_SNORM_INT16 0x10D1
+#define CLK_UNORM_INT8 0x10D2
+#define CLK_UNORM_INT16 0x10D3
+#define CLK_UNORM_SHORT_565 0x10D4
+#define CLK_UNORM_SHORT_555 0x10D5
+#define CLK_UNORM_SHORT_101010 0x10D6
+#define CLK_SIGNED_INT8 0x10D7
+#define CLK_SIGNED_INT16 0x10D8
+#define CLK_SIGNED_INT32 0x10D9
+#define CLK_UNSIGNED_INT8 0x10DA
+#define CLK_UNSIGNED_INT16 0x10DB
+#define CLK_UNSIGNED_INT32 0x10DC
+#define CLK_HALF_FLOAT 0x10DD
+#define CLK_FLOAT 0x10DE
+
+/* get_image_channel_order flags */
+#define CLK_R 0x10B0
+#define CLK_A 0x10B1
+#define CLK_RG 0x10B2
+#define CLK_RA 0x10B3
+#define CLK_RGB 0x10B4
+#define CLK_RGBA 0x10B5
+#define CLK_BGRA 0x10B6
+#define CLK_ARGB 0x10B7
+#define CLK_INTENSITY 0x10B8
+#define CLK_LUMINANCE 0x10B9
+#define CLK_Rx 0x10BA
+#define CLK_RGx 0x10BB
+#define CLK_RGBx 0x10BC
More information about the cfe-commits
mailing list