diff options
author | Matt Turner <mattst88@gmail.com> | 2015-06-01 16:22:55 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-06-03 10:40:59 -0700 |
commit | ef3f89e53e76332ddb300b08f4698347e17d1633 (patch) | |
tree | 5ae3faa1fac8d55929b0e36864ab5d20e4849ba5 /src/mesa/program/programopt.c | |
parent | 56b2b3d385170ab33934ec71fd9d0a6e0e1af9a8 (diff) | |
download | external_mesa3d-ef3f89e53e76332ddb300b08f4698347e17d1633.zip external_mesa3d-ef3f89e53e76332ddb300b08f4698347e17d1633.tar.gz external_mesa3d-ef3f89e53e76332ddb300b08f4698347e17d1633.tar.bz2 |
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 <brianp@vmware.com>
Diffstat (limited to 'src/mesa/program/programopt.c')
-rw-r--r-- | src/mesa/program/programopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/program/programopt.c b/src/mesa/program/programopt.c index e82c68a..af78150 100644 --- a/src/mesa/program/programopt.c +++ b/src/mesa/program/programopt.c @@ -305,7 +305,7 @@ _mesa_append_fog_code(struct gl_context *ctx, /* change the instruction to write to colorTemp w/ clamping */ inst->DstReg.File = PROGRAM_TEMPORARY; inst->DstReg.Index = colorTemp; - inst->SaturateMode = saturate; + inst->Saturate = saturate; /* don't break (may be several writes to result.color) */ } inst++; @@ -331,7 +331,7 @@ _mesa_append_fog_code(struct gl_context *ctx, inst->SrcReg[2].File = PROGRAM_STATE_VAR; inst->SrcReg[2].Index = fogPRefOpt; inst->SrcReg[2].Swizzle = SWIZZLE_YYYY; - inst->SaturateMode = SATURATE_ZERO_ONE; + inst->Saturate = GL_TRUE; inst++; } else { @@ -374,7 +374,7 @@ _mesa_append_fog_code(struct gl_context *ctx, inst->SrcReg[0].Index = fogFactorTemp; inst->SrcReg[0].Negate = NEGATE_XYZW; inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; - inst->SaturateMode = SATURATE_ZERO_ONE; + inst->Saturate = GL_TRUE; inst++; } /* LRP result.color.xyz, fogFactorTemp.xxxx, colorTemp, fogColorRef; */ |