mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
nv50/ir: handle NEG,ABS modifiers for short RCP encoding
This commit is contained in:
parent
f677954e07
commit
ef51ce522b
1 changed files with 2 additions and 0 deletions
|
|
@ -1239,6 +1239,8 @@ CodeEmitterNV50::emitSFnOp(const Instruction *i, uint8_t subOp)
|
|||
|
||||
if (i->encSize == 4) {
|
||||
assert(i->op == OP_RCP);
|
||||
code[0] |= i->src(0).mod.abs() << 15;
|
||||
code[0] |= i->src(0).mod.neg() << 22;
|
||||
emitForm_MUL(i);
|
||||
} else {
|
||||
code[1] = subOp << 29;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue