nv50/ir: display OP_BAR subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 24 Oct 2016 14:55:17 +0000 (16:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 24 Oct 2016 16:53:45 +0000 (18: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 0c143e5150def9c4b0fe15506da816f184f9995e..78c0757284617128018ac59205512ed5a834c426 100644 (file)
@@ -236,6 +236,11 @@ static const char *cctlOpStr[] =
    "", "", "", "", "", "iv", "ivall"
 };
 
+static const char *barOpStr[] =
+{
+   "sync", "arrive", "red and", "red or", "red popc"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -611,6 +616,10 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(cctlOpStr))
             PRINT("%s ", cctlOpStr[subOp]);
          break;
+      case OP_BAR:
+         if (subOp < ARRAY_SIZE(barOpStr))
+            PRINT("%s ", barOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);