[Mesa-dev] [PATCH 2/4] nv50/ir: print PIXLD subops in debug mode
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Jun 29 16:13:07 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 276e8d3..122245c 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
@@ -216,6 +216,11 @@ static const char *shflOpStr[] =
"idx", "up", "down", "bfly"
};
+static const char *pixldOpStr[] =
+{
+ "count", "covmask", "offset", "cent_offset", "sampleid"
+};
+
static const char *DataTypeStr[] =
{
"-",
@@ -572,6 +577,10 @@ void Instruction::print() const
if (subOp < ARRAY_SIZE(shflOpStr))
PRINT("%s ", shflOpStr[subOp]);
break;
+ case OP_PIXLD:
+ if (subOp < ARRAY_SIZE(pixldOpStr))
+ PRINT("%s ", pixldOpStr[subOp]);
+ break;
default:
if (subOp)
PRINT("(SUBOP:%u) ", subOp);
--
2.8.0
More information about the mesa-dev
mailing list