diff options
author | Michal Krol <michal@vmware.com> | 2010-01-01 23:44:00 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2010-01-05 09:28:25 +0100 |
commit | 062aab96e015021f3b83067848495a8ce2d92456 (patch) | |
tree | b5cf9c12a7445c02eef2626f5924c65a9b93953f /src/gallium/include/pipe/p_shader_tokens.h | |
parent | 08a3efee10034d9bd8809eb6707a372b81ea3957 (diff) |
gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.
Provide reference implementation of them in tgsi_exec.
Note that BREAK opcode is overloaded and can be used to break out
of either a loop or a switch-case statement.
Diffstat (limited to 'src/gallium/include/pipe/p_shader_tokens.h')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index a12afbcb5c..f8d4a45dfd 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -314,7 +314,11 @@ struct tgsi_property_data { #define TGSI_OPCODE_USHR 137 #define TGSI_OPCODE_USLT 138 #define TGSI_OPCODE_USNE 139 -#define TGSI_OPCODE_LAST 140 +#define TGSI_OPCODE_SWITCH 140 +#define TGSI_OPCODE_CASE 141 +#define TGSI_OPCODE_DEFAULT 142 +#define TGSI_OPCODE_ENDSWITCH 143 +#define TGSI_OPCODE_LAST 144 #define TGSI_SAT_NONE 0 /* do not saturate */ #define TGSI_SAT_ZERO_ONE 1 /* clamp to [0,1] */ |