Mesa (master): nv50/ir: display OP_BAR subops in debug mode
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Mon Oct 24 16:54:31 UTC 2016
Module: Mesa
Branch: master
Commit: d588e4f1925c5a2fc3efbf9ab192f0f6494be57b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d588e4f1925c5a2fc3efbf9ab192f0f6494be57b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon Oct 24 16:55:17 2016 +0200
nv50/ir: display OP_BAR subops in debug mode
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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 0c143e5..78c0757 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -236,6 +236,11 @@ static const char *cctlOpStr[] =
"", "", "", "", "", "iv", "ivall"
};
+static const char *barOpStr[] =
+{
+ "sync", "arrive", "red and", "red or", "red popc"
+};
+
static const char *DataTypeStr[] =
{
"-",
@@ -611,6 +616,10 @@ void Instruction::print() const
if (subOp < ARRAY_SIZE(cctlOpStr))
PRINT("%s ", cctlOpStr[subOp]);
break;
+ case OP_BAR:
+ if (subOp < ARRAY_SIZE(barOpStr))
+ PRINT("%s ", barOpStr[subOp]);
+ break;
default:
if (subOp)
PRINT("(SUBOP:%u) ", subOp);
More information about the mesa-commit
mailing list