mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
nvc0/ir: fix predicated PFETCH emission
src1 would contain the predicate, which would get emitted as a register source by an undiscerning srcId helper. Work around this in the same way as in emitTEX. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
515ac907e6
commit
a9d08a250a
2 changed files with 6 additions and 2 deletions
|
|
@ -1333,8 +1333,10 @@ CodeEmitterGK110::emitPFETCH(const Instruction *i)
|
||||||
|
|
||||||
emitPredicate(i);
|
emitPredicate(i);
|
||||||
|
|
||||||
|
const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
|
||||||
|
|
||||||
defId(i->def(0), 2);
|
defId(i->def(0), 2);
|
||||||
srcId(i->src(1), 10);
|
srcId(i, 1, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -1495,8 +1495,10 @@ CodeEmitterNVC0::emitPFETCH(const Instruction *i)
|
||||||
|
|
||||||
emitPredicate(i);
|
emitPredicate(i);
|
||||||
|
|
||||||
|
const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
|
||||||
|
|
||||||
defId(i->def(0), 14);
|
defId(i->def(0), 14);
|
||||||
srcId(i->src(1), 20);
|
srcId(i, 1, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue