program: Shrink and rename SaturateMode field to Saturate.
It was 2 bits to accommodate SATURATE_PLUS_MINUS_ONE (removed by commit09b566e1
). A similar change was made to TGSI recently in commite1c4e8aa
. 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>
This commit is contained in:
@@ -220,7 +220,7 @@ get_result_flags(const struct prog_instruction *inst)
|
||||
{
|
||||
GLuint flags = 0;
|
||||
|
||||
if (inst->SaturateMode == SATURATE_ZERO_ONE)
|
||||
if (inst->Saturate)
|
||||
flags |= A0_DEST_SATURATE;
|
||||
if (inst->DstReg.WriteMask & WRITEMASK_X)
|
||||
flags |= A0_DEST_CHANNEL_X;
|
||||
|
Reference in New Issue
Block a user