nv50/ir: make sure to fetch all sources before creating instruction
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 3 Feb 2016 23:16:04 +0000 (18:16 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 3 Feb 2016 23:40:38 +0000 (18:40 -0500)
commitedd494ddf0d6649800c4e83dbc3cc6cd97ce56f7
tree6853863c0673820d51f256cb20d00cc927975d30
parenta9d5c64c34b48a3e2f93b7c9f48f4735f9bb0d8b
nv50/ir: make sure to fetch all sources before creating instruction

We must fetch all sources into the instruction stream before generating
the instruction that uses them. Otherwise we'll define values after
using them, which won't work so well.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp