summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-29 17:40:26 +0200
committerSamuel Pitoiset <[email protected]>2017-05-01 11:56:49 +0200
commitdec5b27b1bda6094855a71d7bd0b180754276315 (patch)
treeb649116e63c1c074b35ffacd02158a8b34c69ad5
parentde8e01698fb745e6f91c22470393777093c2c2ee (diff)
gm107/ir: add a missing assertion in emitISCADD()
For consistency, similar to the other emitters. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp2
1 files changed, 2 insertions, 0 deletions
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);