summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-06-29 15:35:44 +0200
committerSamuel Pitoiset <[email protected]>2016-06-29 20:37:38 +0200
commitfa10d1d67472cd2e821c5aa196590d43896a78fb (patch)
tree66844193063a940f2ee598722915c9b101400a1e
parenta6d3b2e176ce60852710b769f35b5dbcd4416b20 (diff)
nv50/ir: print EMIT subops in debug mode
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
index d7b2579d387..6469f71203f 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -225,6 +225,11 @@ static const char *rcprsqOpStr[] =
"", "64h"
};
+static const char *emitOpStr[] =
+{
+ "", "restart"
+};
+
static const char *DataTypeStr[] =
{
"-",
@@ -590,6 +595,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);