From dec5b27b1bda6094855a71d7bd0b180754276315 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Sat, 29 Apr 2017 17:40:26 +0200 Subject: gm107/ir: add a missing assertion in emitISCADD() For consistency, similar to the other emitters. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/nouveau/codegen') 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); -- cgit v1.2.3