diff options
author | Michal Krol <michal@vmware.com> | 2010-01-11 20:05:55 +0100 |
---|---|---|
committer | Igor Oliveira <igor.oliveira@openbossa.org> | 2010-09-29 23:07:25 -0400 |
commit | 6e187ce75b919b5877e2b8b746db91b2977a409f (patch) | |
tree | 29d7656502bb2ca0b9d8edfedfbbde02e1d03b2f | |
parent | 72b368ae69bc037681ab4e458296c07cb04349be (diff) |
gallium: Initial commit for TGSI opcodes operating on doubles.
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_info.c | 6 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c index e59e964ffa..8c2ef955a4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_info.c +++ b/src/gallium/auxiliary/tgsi/tgsi_info.c @@ -175,7 +175,11 @@ static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] = { 0, 1, 0, 0, 0, 0, "SWITCH", TGSI_OPCODE_SWITCH }, { 0, 1, 0, 0, 0, 0, "CASE", TGSI_OPCODE_CASE }, { 0, 0, 0, 0, 0, 0, "DEFAULT", TGSI_OPCODE_DEFAULT }, - { 0, 0, 0, 0, 0, 0, "ENDSWITCH", TGSI_OPCODE_ENDSWITCH } + { 0, 0, 0, 0, 0, 0, "ENDSWITCH", TGSI_OPCODE_ENDSWITCH }, + { 1, 1, 0, 0, 0, 0, "F2D", TGSI_OPCODE_F2D }, + { 1, 1, 0, 0, 0, 0, "D2F", TGSI_OPCODE_D2F }, + { 1, 1, 0, 0, 0, 0, "DMOV", TGSI_OPCODE_DMOV }, + { 1, 2, 0, 0, 0, 0, "DADD", TGSI_OPCODE_DADD } }; const struct tgsi_opcode_info * diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 74488de17e..3a55de3ae6 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -337,7 +337,11 @@ struct tgsi_property_data { #define TGSI_OPCODE_CASE 142 #define TGSI_OPCODE_DEFAULT 143 #define TGSI_OPCODE_ENDSWITCH 144 -#define TGSI_OPCODE_LAST 145 +#define TGSI_OPCODE_F2D 145 +#define TGSI_OPCODE_D2F 146 +#define TGSI_OPCODE_DMOV 147 +#define TGSI_OPCODE_DADD 148 +#define TGSI_OPCODE_LAST 149 #define TGSI_SAT_NONE 0 /* do not saturate */ #define TGSI_SAT_ZERO_ONE 1 /* clamp to [0,1] */ |