summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_instruction.h
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/prog_instruction.h
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/prog_instruction.h')
-rw-r--r--src/mesa/program/prog_instruction.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h
index 96da198f86d..3ada85750a5 100644
--- a/src/mesa/program/prog_instruction.h
+++ b/src/mesa/program/prog_instruction.h
@@ -118,15 +118,6 @@
/**
- * Saturation modes when storing values.
- */
-/*@{*/
-#define SATURATE_OFF 0
-#define SATURATE_ZERO_ONE 1
-/*@}*/
-
-
-/**
* Per-component negation masks
*/
/*@{*/
@@ -327,15 +318,12 @@ struct prog_instruction
GLuint CondDst:1;
/**
- * Saturate each value of the vectored result to the range [0,1] or the
- * range [-1,1]. \c SSAT mode (i.e., saturation to the range [-1,1]) is
- * only available in NV_fragment_program2 mode.
- * Value is one of the SATURATE_* tokens.
+ * Saturate each value of the vectored result to the range [0,1].
*
* \since
* NV_fragment_program_option, NV_vertex_program3.
*/
- GLuint SaturateMode:2;
+ GLuint Saturate:1;
/**
* Per-instruction selectable precision: FLOAT32, FLOAT16, FIXED12.