From c7fa3c92f8fc9634af966e760a7601922cca43f6 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 27 Jun 2016 00:52:46 +0200 Subject: [PATCH] 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: --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.30.2