summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-01-11 20:05:55 +0100
committerMichal Krol <michal@vmware.com>2010-01-11 20:05:55 +0100
commite5ce45b62ca5c6837f3b0e7673b6d3e9be8c64e7 (patch)
treec8d8c9ea4e0d46271edceb5d5c82ac3ad5b04a46
parent015a5a126b9d4a0f0fbfc0e522bb63fa5381985e (diff)
gallium: Initial commit for TGSI opcodes operating on doubles.
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_info.c6
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h6
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 de0e09cdbae..c02b29c8ca4 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 550e2abc32a..59751469c2a 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -319,7 +319,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] */