From: Samuel Pitoiset Date: Sun, 26 Jun 2016 16:42:22 +0000 (+0200) Subject: gm107/ir: make use of IMUL32I for all immediates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b84c97587b4a838c32fb7ac4eab31a6ba4f69886;p=mesa.git gm107/ir: make use of IMUL32I for all immediates IMUL only allows to emit 19-bits immediates. This is similar to d30768025a2283d4cc57930b784798bf278969da which fixed the same thing for the GK110 emitter. 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 ef02dbb4c63..1010ecfe927 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -1719,7 +1719,7 @@ CodeEmitterGM107::emitIADD() void CodeEmitterGM107::emitIMUL() { - if (!longIMMD(insn->src(1))) { + if (insn->src(1).getFile() != FILE_IMMEDIATE) { switch (insn->src(1).getFile()) { case FILE_GPR: emitInsn(0x5c380000);