nv50/ir: replace zeros in movs as well
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 04:43:44 +0000 (23:43 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 04:46:02 +0000 (23:46 -0500)
commit204f803ce0e47720d072603fec8a2acde6993fed
tree350a962a192c6e4d5a6f605867041fe4d8f6ff8a
parenta3722b81f534598f25d9d155a6d30bc59a6f4e59
nv50/ir: replace zeros in movs as well

The original change to put zeroes directly into instructions created
conditional mov's with the zero immediate. However that can't be
emitted, so make sure to replace the zero with r63.

Fixes: 52a800a68 (nv50/ir: allow immediate 0 to be loaded anywhere)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp