From: Ben Skeggs Date: Fri, 9 May 2014 05:56:01 +0000 (+1000) Subject: nvc0: replace immd 0 with $rLASTGPR for emit/restart opcodes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07d3972b4927841bb892af16ff0389f8a241b24c;p=mesa.git nvc0: replace immd 0 with $rLASTGPR for emit/restart opcodes Signed-off-by: Ben Skeggs Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index dfaa28ff740..fb9bed4454c 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -494,6 +494,7 @@ NVC0LegalizePostRA::visit(BasicBlock *bb) i->setDef(0, NULL); if (i->src(0).getFile() == FILE_IMMEDIATE) i->setSrc(0, rZero); // initial value must be 0 + replaceZero(i); } else if (i->isNop()) { bb->remove(i);