mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
nv50/ir: fix imad emission when dst == src2
Commit fb63df2215 added 4-byte mad support, but only supported
emission for floats. Disable it for ints for now.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
da5ec2ac0b
commit
603d28f32c
1 changed files with 1 additions and 1 deletions
|
|
@ -1942,7 +1942,7 @@ CodeEmitterNV50::getMinEncodingSize(const Instruction *i) const
|
|||
|
||||
// check constraints on short MAD
|
||||
if (info.srcNr >= 2 && i->srcExists(2)) {
|
||||
if (!i->defExists(0) ||
|
||||
if (!i->defExists(0) || !isFloatType(i->dType) ||
|
||||
i->def(0).rep()->reg.data.id != i->src(2).rep()->reg.data.id)
|
||||
return 8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue