mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
aco: simplify v_mul_* labelling slightly
This was from before VALU_instruction existed. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26445>
This commit is contained in:
parent
468ee8b80c
commit
7a37a39fe0
1 changed files with 5 additions and 5 deletions
|
|
@ -1889,15 +1889,15 @@ label_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
instr->operands[!i].constantEquals(fp16 ? 0xbc00 : 0xbf800000u))) { /* -1.0 */
|
||||
bool neg1 = instr->operands[!i].constantEquals(fp16 ? 0xbc00 : 0xbf800000u);
|
||||
|
||||
VALU_instruction* vop3 = instr->isVOP3() ? &instr->valu() : NULL;
|
||||
if (vop3 && (vop3->abs[!i] || vop3->neg[!i] || vop3->omod))
|
||||
VALU_instruction* valu = &instr->valu();
|
||||
if (valu->abs[!i] || valu->neg[!i] || valu->omod)
|
||||
continue;
|
||||
|
||||
bool abs = vop3 && vop3->abs[i];
|
||||
bool neg = neg1 ^ (vop3 && vop3->neg[i]);
|
||||
bool abs = valu->abs[i];
|
||||
bool neg = neg1 ^ valu->neg[i];
|
||||
Temp other = instr->operands[i].getTemp();
|
||||
|
||||
if (vop3 && vop3->clamp) {
|
||||
if (valu->clamp) {
|
||||
if (!abs && !neg && other.type() == RegType::vgpr)
|
||||
ctx.info[other.id()].set_clamp(instr.get());
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue