summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_text.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-17 16:35:14 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-05-20 15:40:46 +0200
commite1c4e8aaaafddd0e04cf2a16e28ef8f1e09d8b44 (patch)
treef137da4bf3296d7850567eb10c6b6b8ffd708027 /src/gallium/auxiliary/tgsi/tgsi_text.c
parente4201bb618f02a279fda59a1c528d7218e6900a5 (diff)
downloadexternal_mesa3d-e1c4e8aaaafddd0e04cf2a16e28ef8f1e09d8b44.zip
external_mesa3d-e1c4e8aaaafddd0e04cf2a16e28ef8f1e09d8b44.tar.gz
external_mesa3d-e1c4e8aaaafddd0e04cf2a16e28ef8f1e09d8b44.tar.bz2
gallium: remove TGSI_SAT_MINUS_PLUS_ONE
It's a remnant of some old NV extension. Unused. I also have a patch that removes predicates if anyone is interested. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_text.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index b6b3585..a9734db 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -903,7 +903,7 @@ match_inst(const char **pcur,
/* simple case: the whole string matches the instruction name */
if (str_match_nocase_whole(&cur, info->mnemonic)) {
*pcur = cur;
- *saturate = TGSI_SAT_NONE;
+ *saturate = 0;
return TRUE;
}
@@ -911,13 +911,7 @@ match_inst(const char **pcur,
/* the instruction has a suffix, figure it out */
if (str_match_nocase_whole(&cur, "_SAT")) {
*pcur = cur;
- *saturate = TGSI_SAT_ZERO_ONE;
- return TRUE;
- }
-
- if (str_match_nocase_whole(&cur, "_SATNV")) {
- *pcur = cur;
- *saturate = TGSI_SAT_MINUS_PLUS_ONE;
+ *saturate = 1;
return TRUE;
}
}
@@ -931,7 +925,7 @@ parse_instruction(
boolean has_label )
{
uint i;
- uint saturate = TGSI_SAT_NONE;
+ uint saturate = 0;
const struct tgsi_opcode_info *info;
struct tgsi_full_instruction inst;
const char *cur;