nv50/ir: fetch indirect sources BEFORE the op that uses them
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 24 Jun 2017 16:08:52 +0000 (12:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Jun 2017 00:22:46 +0000 (20:22 -0400)
commit8c02ee4a8b0bea5dda3ced341dce81f340457c95
tree1eeb457601b9232ce6c79cf105fe37271f1bd0d0
parent9545139ce5f10180547568a3da94af9e291253fd
nv50/ir: fetch indirect sources BEFORE the op that uses them

All the BuildUtil helpers just insert the operation into the current BB.
So we have to take care that any fetchSrc() operations happen before the
operation whose setIndirect() it goes into.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp