diff options
author | Nicolai Haehnle <[email protected]> | 2008-07-12 12:04:28 +0200 |
---|---|---|
committer | Nicolai Haehnle <[email protected]> | 2008-07-12 12:04:28 +0200 |
commit | cf0ae102dbc34bf75e853c2ece630fe18dd4d41e (patch) | |
tree | 48011bf9956a230aa473dce3e5343ee8ec64f86e /src | |
parent | 8774fcd89acc9e180e0cb135bd62646f58cb623e (diff) |
r500: Set Saturate correctly in radeon_program_pair
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_program_pair.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_program_pair.c b/src/mesa/drivers/dri/r300/radeon_program_pair.c index 4eaac50412e..85ddf1dc50e 100644 --- a/src/mesa/drivers/dri/r300/radeon_program_pair.c +++ b/src/mesa/drivers/dri/r300/radeon_program_pair.c @@ -682,9 +682,14 @@ static GLboolean fill_instruction_into_pair(struct pair_state *s, struct radeon_ pair->RGB.Opcode = OPCODE_REPL_ALPHA; else pair->RGB.Opcode = inst->Opcode; + if (inst->SaturateMode == SATURATE_ZERO_ONE) + pair->RGB.Saturate = 1; } - if (pairinst->NeedAlpha) + if (pairinst->NeedAlpha) { pair->Alpha.Opcode = inst->Opcode; + if (inst->SaturateMode == SATURATE_ZERO_ONE) + pair->Alpha.Saturate = 1; + } int nargs = _mesa_num_inst_src_regs(inst->Opcode); int i; |