nv50/ir: copy over value's register id when resolving merge of a phi
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 10 Oct 2016 20:57:50 +0000 (16:57 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 12 Oct 2016 17:18:14 +0000 (13:18 -0400)
commit300b5ad023962ee95322e890a9ba57396392407e
treeeeee5cbc12b13a5419a4213f6bf4a41707e8f6e1
parent789119d21212da3891ed57018ec1af197a48977c
nv50/ir: copy over value's register id when resolving merge of a phi

The offset needs to be properly copied over to the phi value, otherwise
it will get assigned to the base of the merge instead of the proper
location.

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_ra.cpp