nv50/ir: print RSQ/RCP subops in debug mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 13:34:35 +0000 (15:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jun 2016 18:37:36 +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 f95d515c3fc40d217e883c774480cb13f86d177b..d7b2579d387cf56cb2c70b626e00c308d2073c18 100644 (file)
@@ -220,6 +220,11 @@ static const char *pixldOpStr[] =
    "count", "covmask", "offset", "cent_offset", "sampleid"
 };
 
+static const char *rcprsqOpStr[] =
+{
+   "", "64h"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -580,6 +585,11 @@ void Instruction::print() const
          if (subOp < ARRAY_SIZE(pixldOpStr))
             PRINT("%s ", pixldOpStr[subOp]);
          break;
+      case OP_RCP:
+      case OP_RSQ:
+         if (subOp < ARRAY_SIZE(rcprsqOpStr))
+            PRINT("%s ", rcprsqOpStr[subOp]);
+         break;
       default:
          if (subOp)
             PRINT("(SUBOP:%u) ", subOp);