From: Samuel Pitoiset Date: Tue, 19 Jul 2016 12:47:57 +0000 (+0200) Subject: gm107/ir: make use of ADD32I for all immediates X-Git-Tag: upstream/17.1.0~7919 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c63224540ef0f727aae24274fa4afdf2e2376ac;p=platform%2Fupstream%2Fmesa.git gm107/ir: make use of ADD32I for all immediates ADD only allows to emit 19-bits immediates. 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 5ae1898..6904eba 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -1682,7 +1682,7 @@ CodeEmitterGM107::emitNOT() void CodeEmitterGM107::emitIADD() { - if (!longIMMD(insn->src(1))) { + if (insn->src(1).getFile() != FILE_IMMEDIATE) { switch (insn->src(1).getFile()) { case FILE_GPR: emitInsn(0x5c100000);