mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
r300: improve precission of linear interpolation
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13554>
This commit is contained in:
parent
aa264ded94
commit
021ec93273
1 changed files with 3 additions and 3 deletions
|
|
@ -427,12 +427,12 @@ static void transform_LRP(struct radeon_compiler* c,
|
|||
{
|
||||
struct rc_dst_register dst = try_to_reuse_dst(c, inst);
|
||||
|
||||
emit2(c, inst->Prev, RC_OPCODE_ADD, 0,
|
||||
emit3(c, inst->Prev, RC_OPCODE_MAD, 0,
|
||||
dst,
|
||||
inst->U.I.SrcReg[1], negate(inst->U.I.SrcReg[2]));
|
||||
negate(inst->U.I.SrcReg[0]), inst->U.I.SrcReg[2], inst->U.I.SrcReg[2]);
|
||||
emit3(c, inst->Prev, RC_OPCODE_MAD, &inst->U.I,
|
||||
inst->U.I.DstReg,
|
||||
inst->U.I.SrcReg[0], srcreg(RC_FILE_TEMPORARY, dst.Index), inst->U.I.SrcReg[2]);
|
||||
inst->U.I.SrcReg[0], inst->U.I.SrcReg[1], srcreg(RC_FILE_TEMPORARY, dst.Index));
|
||||
|
||||
rc_remove_instruction(inst);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue