From 908ba1955434e10f7fc3579bc07f3bc46f4bff3f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 29 Jun 2016 15:25:16 +0200 Subject: [PATCH] nv50/ir: print PIXLD subops in debug mode Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- 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 246e519b263..f95d515c3fc 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp @@ -215,6 +215,11 @@ static const char *shflOpStr[] = "idx", "up", "down", "bfly" }; +static const char *pixldOpStr[] = +{ + "count", "covmask", "offset", "cent_offset", "sampleid" +}; + static const char *DataTypeStr[] = { "-", @@ -571,6 +576,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.30.2