nv50/ir: print EMIT subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 13:35:44 +0000 (15:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 18:37:38 +0000 (20:37 +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 d7b2579d387cf56cb2c70b626e00c308d2073c18..6469f71203f73dee18d56b22ebc3bb9cdf644ceb 100644 (file)
@@ -225,6 +225,11 @@ static const char *rcprsqOpStr[] =
    "", "64h"
 };
 
+static const char *emitOpStr[] =
+{
+   "", "restart"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -590,6 +595,10 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(rcprsqOpStr))
             PRINT("%s ", rcprsqOpStr[subOp]);
          break;
+      case OP_EMIT:
+         if (subOp < ARRAY_SIZE(emitOpStr))
+            PRINT("%s ", emitOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);