mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 14:50:24 +01:00
r500: Set Saturate correctly in radeon_program_pair
This commit is contained in:
parent
8774fcd89a
commit
cf0ae102db
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue