[libclc] r248163 - Add sampler defines.
Tom Stellard via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 21 07:59:59 PDT 2015
Author: tstellar
Date: Mon Sep 21 09:59:58 2015
New Revision: 248163
URL: http://llvm.org/viewvc/llvm-project?rev=248163&view=rev
Log:
Add sampler defines.
Patch by: Zoltan Gilian
Modified:
libclc/trunk/generic/include/clc/image/image_defines.h
Modified: 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=248163&r1=248162&r2=248163&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/image/image_defines.h (original)
+++ libclc/trunk/generic/include/clc/image/image_defines.h Mon Sep 21 09:59:58 2015
@@ -29,3 +29,21 @@
#define CLK_Rx 0x10BA
#define CLK_RGx 0x10BB
#define CLK_RGBx 0x10BC
+
+/* sampler normalized coords */
+#define CLK_NORMALIZED_COORDS_FALSE 0x0000
+#define CLK_NORMALIZED_COORDS_TRUE 0x0001
+#define __CLC_NORMALIZED_COORDS_MASK 0x0001
+
+/* sampler addressing mode */
+#define CLK_ADDRESS_NONE 0x0000
+#define CLK_ADDRESS_CLAMP_TO_EDGE 0x0002
+#define CLK_ADDRESS_CLAMP 0x0004
+#define CLK_ADDRESS_REPEAT 0x0006
+#define CLK_ADDRESS_MIRRORED_REPEAT 0x0008
+#define __CLC_ADDRESS_MASK 0x000E
+
+/* sampler filter mode */
+#define CLK_FILTER_NEAREST 0x0000
+#define CLK_FILTER_LINEAR 0x0010
+#define __CLC_FILTER_MASK 0x0010
More information about the cfe-commits
mailing list