nv50/ir: print CCTL subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Oct 2016 12:01:33 +0000 (14:01 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Oct 2016 21:53:39 +0000 (23:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp

index dbd0f7d1fd3840ad82a2994b2bec83c67c203545..0c143e5150def9c4b0fe15506da816f184f9995e 100644 (file)
@@ -231,6 +231,11 @@ static const char *emitOpStr[] =
    "", "restart"
 };
 
+static const char *cctlOpStr[] =
+{
+   "", "", "", "", "", "iv", "ivall"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -602,6 +607,10 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(emitOpStr))
             PRINT("%s ", emitOpStr[subOp]);
          break;
+      case OP_CCTL:
+         if (subOp < ARRAY_SIZE(cctlOpStr))
+            PRINT("%s ", cctlOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);