gm107/ir: add a missing assertion in emitISCADD()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 29 Apr 2017 15:40:26 +0000 (17:40 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 May 2017 09:56:49 +0000 (11:56 +0200)
For consistency, similar to the other emitters.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 8b58df49c2782542b8cf4d4423cf685a62f0e48c..b1e9f941fe86edf6802a06cbf4cc2defde230d47 100644 (file)
@@ -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);