summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program_parse_extra.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-06-01 16:22:55 -0700
committerMatt Turner <[email protected]>2015-06-03 10:40:59 -0700
commitef3f89e53e76332ddb300b08f4698347e17d1633 (patch)
tree5ae3faa1fac8d55929b0e36864ab5d20e4849ba5 /src/mesa/program/program_parse_extra.c
parent56b2b3d385170ab33934ec71fd9d0a6e0e1af9a8 (diff)
program: Shrink and rename SaturateMode field to Saturate.
It was 2 bits to accommodate SATURATE_PLUS_MINUS_ONE (removed by commit 09b566e1). A similar change was made to TGSI recently in commit e1c4e8aa. Reducing the size from 2 bits to 1 reduces the size of the bit fields from 17 bits to 16, which is a much nicer number. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/program/program_parse_extra.c')
-rw-r--r--src/mesa/program/program_parse_extra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/program_parse_extra.c b/src/mesa/program/program_parse_extra.c
index a9e36404580..32b54afc57b 100644
--- a/src/mesa/program/program_parse_extra.c
+++ b/src/mesa/program/program_parse_extra.c
@@ -40,7 +40,7 @@ _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
{
inst->CondUpdate = 0;
inst->CondDst = 0;
- inst->SaturateMode = SATURATE_OFF;
+ inst->Saturate = GL_FALSE;
inst->Precision = FLOAT32;
@@ -82,7 +82,7 @@ _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
*/
if (state->mode == ARB_fragment) {
if (strcmp(suffix, "_SAT") == 0) {
- inst->SaturateMode = SATURATE_ZERO_ONE;
+ inst->Saturate = GL_TRUE;
suffix += 4;
}
}