mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nvc0/ir/emit: fix emitTXQ 2nd src
This commit is contained in:
parent
3a9f036e00
commit
d9baa004ea
1 changed files with 3 additions and 1 deletions
|
|
@ -1063,9 +1063,11 @@ CodeEmitterNVC0::emitTXQ(const TexInstruction *i)
|
|||
if (i->tex.sIndirectSrc >= 0 || i->tex.rIndirectSrc >= 0)
|
||||
code[1] |= 1 << 18;
|
||||
|
||||
const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
|
||||
|
||||
defId(i->def(0), 14);
|
||||
srcId(i->src(0), 20);
|
||||
srcId(i->src(1), 26);
|
||||
srcId(i, src1, 26);
|
||||
|
||||
emitPredicate(i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue