[Mesa-dev] [PATCH 1/3] nv50/ir: print CCTL subops in debug mode
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Oct 19 21:21:50 UTC 2016
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
index dbd0f7d..0c143e5 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -231,6 +231,11 @@ static const char *emitOpStr[] =
"", "restart"
};
+static const char *cctlOpStr[] =
+{
+ "", "", "", "", "", "iv", "ivall"
+};
+
static const char *DataTypeStr[] =
{
"-",
@@ -602,6 +607,10 @@ void Instruction::print() const
if (subOp < ARRAY_SIZE(emitOpStr))
PRINT("%s ", emitOpStr[subOp]);
break;
+ case OP_CCTL:
+ if (subOp < ARRAY_SIZE(cctlOpStr))
+ PRINT("%s ", cctlOpStr[subOp]);
+ break;
default:
if (subOp)
PRINT("(SUBOP:%u) ", subOp);
--
2.10.0
More information about the mesa-dev
mailing list