nv50/ir: restore OP_SELP to be a regular instruction
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 21 Feb 2016 18:40:01 +0000 (19:40 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 22 Feb 2016 20:28:51 +0000 (21:28 +0100)
commit6526225f888a08b301e8c39ec70b4e739081e490
tree7578aeedd3cf643e1b5f2cfda3fd427df8c9efef
parent9de3b0273d4fc01f5fdb5e9c9301a42575694d88
nv50/ir: restore OP_SELP to be a regular instruction

Actually OP_SELP doesn't need to be a compare instruction. Instead we
just need to set the NOT modifier when building the instruction.
While we are at it, fix the dst register type and use a GPR.

Suggested by Ilia Mirkin.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp