From: Samuel Pitoiset Date: Sun, 26 Jun 2016 22:52:46 +0000 (+0200) Subject: gm107/ir: make use of MOV32I for all immediates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7fa3c92f8fc9634af966e760a7601922cca43f6;p=mesa.git gm107/ir: make use of MOV32I for all immediates MOV only allows to emit 19-bits immediates. This is similar to the previous fix I did for IMUL. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin Cc: --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp index 1010ecfe927..25a9a529fa6 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -678,8 +678,7 @@ CodeEmitterGM107::emitRAM() void CodeEmitterGM107::emitMOV() { - if ( insn->src(0).getFile() != FILE_IMMEDIATE || - (insn->sType != TYPE_F32 && !longIMMD(insn->src(0)))) { + if (insn->src(0).getFile() != FILE_IMMEDIATE) { switch (insn->src(0).getFile()) { case FILE_GPR: if (insn->def(0).getFile() == FILE_PREDICATE) {