From: Samuel Pitoiset Date: Sat, 29 Apr 2017 15:40:26 +0000 (+0200) Subject: gm107/ir: add a missing assertion in emitISCADD() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dec5b27b1bda6094855a71d7bd0b180754276315;p=mesa.git gm107/ir: add a missing assertion in emitISCADD() For consistency, similar to the other emitters. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- 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 8b58df49c27..b1e9f941fe8 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -1858,6 +1858,8 @@ CodeEmitterGM107::emitIMAD() void CodeEmitterGM107::emitISCADD() { + assert(insn->src(1).get()->asImm()); + switch (insn->src(2).getFile()) { case FILE_GPR: emitInsn(0x5c180000);