mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 17:40:26 +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 (cherry picked from commita9d08a250a) Squashed with commit nvc0/ir: fix predicated PFETCH for real Commita9d08a250accidentally didn't make use of the new src1 variable. Use it. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit33f0d1138d)
This commit is contained in:
parent
a27d03dd9f
commit
b4c973da03
2 changed files with 6 additions and 2 deletions
|
|
@ -1265,8 +1265,10 @@ CodeEmitterGK110::emitPFETCH(const Instruction *i)
|
|||
|
||||
emitPredicate(i);
|
||||
|
||||
const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
|
||||
|
||||
defId(i->def(0), 2);
|
||||
srcId(i->src(1), 10);
|
||||
srcId(i, src1, 10);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1441,8 +1441,10 @@ CodeEmitterNVC0::emitPFETCH(const Instruction *i)
|
|||
|
||||
emitPredicate(i);
|
||||
|
||||
const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
|
||||
|
||||
defId(i->def(0), 14);
|
||||
srcId(i->src(1), 20);
|
||||
srcId(i, src1, 20);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue