mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
nv50/ir: we can't do the add to mad conversion when the mul saturates
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
068e9848ba
commit
edf774bb7e
1 changed files with 3 additions and 0 deletions
|
|
@ -1635,6 +1635,9 @@ AlgebraicOpt::tryADDToMADOrSAD(Instruction *add, operation toOp)
|
|||
if (src->getUniqueInsn() && src->getUniqueInsn()->bb != add->bb)
|
||||
return false;
|
||||
|
||||
if (src->getInsn()->saturate)
|
||||
return false;
|
||||
|
||||
if (src->getInsn()->postFactor)
|
||||
return false;
|
||||
if (toOp == OP_SAD) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue