nv50/ir: print SHFL subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 13:16:35 +0000 (15:16 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 18:37:18 +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 e4aebaa500b9277ea048de52da3f485d7c1b39e5..246e519b263ed0474c17836bbab15a6a795cc647 100644 (file)
@@ -210,6 +210,11 @@ static const char *subfmOpStr[] =
    "", "3d"
 };
 
+static const char *shflOpStr[] =
+{
+  "idx", "up", "down", "bfly"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -562,6 +567,10 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(subfmOpStr))
             PRINT("%s ", subfmOpStr[subOp]);
          break;
+      case OP_SHFL:
+         if (subOp < ARRAY_SIZE(shflOpStr))
+            PRINT("%s ", shflOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);