mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
r300-gallium: r500-fs: Add ABS.
This commit is contained in:
parent
567aead92a
commit
5ad1721540
1 changed files with 13 additions and 0 deletions
|
|
@ -398,6 +398,19 @@ static void r500_fs_instruction(struct r500_fragment_shader* fs,
|
|||
&inst->FullDstRegisters[0], inst->Instruction.Opcode, 3,
|
||||
false);
|
||||
break;
|
||||
case TGSI_OPCODE_ABS:
|
||||
r500_emit_maths(fs, assembler, inst->FullSrcRegisters,
|
||||
&inst->FullDstRegisters[0], inst->Instruction.Opcode, 3,
|
||||
false);
|
||||
/* Set absolute value modifiers. */
|
||||
i = fs->instruction_count - 1;
|
||||
fs->instructions[i].inst3 |=
|
||||
R500_ALU_RGB_MOD_A_ABS |
|
||||
R500_ALU_RGB_MOD_B_ABS;
|
||||
fs->instructions[i].inst4 |=
|
||||
R500_ALPHA_MOD_A_ABS |
|
||||
R500_ALPHA_MOD_B_ABS;
|
||||
break;
|
||||
case TGSI_OPCODE_MAD:
|
||||
r500_emit_maths(fs, assembler, inst->FullSrcRegisters,
|
||||
&inst->FullDstRegisters[0], inst->Instruction.Opcode, 3,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue