mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 16:10:17 +01:00
nvc0/ir: fix spilling predicates to registers
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
1f895caba0
commit
4b1a167a2b
1 changed files with 4 additions and 0 deletions
|
|
@ -1985,6 +1985,10 @@ CodeEmitterNVC0::emitMOV(const Instruction *i)
|
|||
opc |= i->lanes << 5;
|
||||
|
||||
emitForm_B(i, opc);
|
||||
|
||||
// Explicitly emit the predicate source as emitForm_B skips it.
|
||||
if (i->src(0).getFile() == FILE_PREDICATE)
|
||||
srcId(i->src(0), 20);
|
||||
} else {
|
||||
uint32_t imm;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue