[Mesa-dev] [PATCH 3/4] nv50/ir: print RSQ/RCP subops in debug mode

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Jun 29 16:13:08 UTC 2016


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
index 122245c..7d8549a 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -221,6 +221,11 @@ static const char *pixldOpStr[] =
    "count", "covmask", "offset", "cent_offset", "sampleid"
 };
 
+static const char *rcprsqOpStr[] =
+{
+   "", "64h"
+};
+
 static const char *DataTypeStr[] =
 {
    "-",
@@ -581,6 +586,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);
-- 
2.8.0



More information about the mesa-dev mailing list