nv50/ir: print PIXLD subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 13:25:16 +0000 (15:25 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 18:37:33 +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 246e519b263ed0474c17836bbab15a6a795cc647..f95d515c3fc40d217e883c774480cb13f86d177b 100644 (file)
@@ -215,6 +215,11 @@ static const char *shflOpStr[] =
   "idx", "up", "down", "bfly"
 };
 
+static const char *pixldOpStr[] =
+{
+   "count", "covmask", "offset", "cent_offset", "sampleid"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -571,6 +576,10 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(shflOpStr))
             PRINT("%s ", shflOpStr[subOp]);
          break;
+      case OP_PIXLD:
+         if (subOp < ARRAY_SIZE(pixldOpStr))
+            PRINT("%s ", pixldOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);