From 83a4f28dc27bd3f679d001fb0065940ad1f0f422 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 27 Jun 2016 23:55:53 +0200 Subject: [PATCH] gm107/ir: make use of LOP32I for all immediates LOP only allows to emit 19-bits immediates. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin Cc: --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 25a9a529fa6..a92dba0aa16 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -1606,7 +1606,7 @@ CodeEmitterGM107::emitLOP() break; } - if (!longIMMD(insn->src(1))) { + if (insn->src(1).getFile() != FILE_IMMEDIATE) { switch (insn->src(1).getFile()) { case FILE_GPR: emitInsn(0x5c400000); -- 2.30.2