aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-04-30 20:22:23 +0200
committerFrancisco Jerez <[email protected]>2012-05-11 12:39:41 +0200
commitc2d31a83a8104acba05f92b025bc9b145ca34974 (patch)
tree30b9452f2e14ad4e9c79b22d889c1fec7496c11c /src/gallium/include/pipe
parent9e550c34237898385c07af2cbb2da76670ed994e (diff)
gallium/tgsi: Add support for atomic opcodes.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index 41347ad2026..2579112a25b 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -418,7 +418,18 @@ struct tgsi_property_data {
#define TGSI_OPCODE_SFENCE 165
#define TGSI_OPCODE_BARRIER 166
-#define TGSI_OPCODE_LAST 167
+#define TGSI_OPCODE_ATOMUADD 167
+#define TGSI_OPCODE_ATOMXCHG 168
+#define TGSI_OPCODE_ATOMCAS 169
+#define TGSI_OPCODE_ATOMAND 170
+#define TGSI_OPCODE_ATOMOR 171
+#define TGSI_OPCODE_ATOMXOR 172
+#define TGSI_OPCODE_ATOMUMIN 173
+#define TGSI_OPCODE_ATOMUMAX 174
+#define TGSI_OPCODE_ATOMIMIN 175
+#define TGSI_OPCODE_ATOMIMAX 176
+
+#define TGSI_OPCODE_LAST 177
#define TGSI_SAT_NONE 0 /* do not saturate */
#define TGSI_SAT_ZERO_ONE 1 /* clamp to [0,1] */