nvc0/ir: fix LSB/BFE/BFI implementations
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 8 Apr 2017 00:17:47 +0000 (20:17 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 8 Apr 2017 00:20:16 +0000 (20:20 -0400)
commit60f5766db48fe81f55f4b7be47c2be27bdbe2c10
tree4e2582e11cf44ea5be6273950171a62cb9f024f2
parentc05cf9cf1b6b9d42655243ffc6295e60581ecbc5
nvc0/ir: fix LSB/BFE/BFI implementations

Overwriting the src register is a very bad idea - it logically maps onto
the TGSI registers, and so is effectively overwriting the source values.

Reported-by: Boyan Ding <boyan.j.ding@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp