[Mesa-dev] [PATCH 4/4] nv50/ir: print EMIT subops in debug mode
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Jun 29 16:13:09 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 7d8549a..d88bdce 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -226,6 +226,11 @@ static const char *rcprsqOpStr[] =
"", "64h"
};
+static const char *emitOpStr[] =
+{
+ "", "restart"
+};
+
static const char *DataTypeStr[] =
{
"-",
@@ -591,6 +596,10 @@ void Instruction::print() const
if (subOp < ARRAY_SIZE(rcprsqOpStr))
PRINT("%s ", rcprsqOpStr[subOp]);
break;
+ case OP_EMIT:
+ if (subOp < ARRAY_SIZE(emitOpStr))
+ PRINT("%s ", emitOpStr[subOp]);
+ break;
default:
if (subOp)
PRINT("(SUBOP:%u) ", subOp);
--
2.8.0
More information about the mesa-dev
mailing list