summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-10-24 16:55:17 +0200
committerSamuel Pitoiset <[email protected]>2016-10-24 18:53:45 +0200
commitd588e4f1925c5a2fc3efbf9ab192f0f6494be57b (patch)
treeb5f0a7332c7722689aa196a3b93124ddaa6cb334 /src/gallium
parent537dce06ec8e0fa4becd42d5e4b3d07cf722387f (diff)
nv50/ir: display OP_BAR subops in debug mode
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-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 0c143e5150d..78c07572846 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);