From: Samuel Pitoiset Date: Wed, 29 Jun 2016 13:25:16 +0000 (+0200) Subject: nv50/ir: print PIXLD subops in debug mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=908ba1955434e10f7fc3579bc07f3bc46f4bff3f;p=mesa.git nv50/ir: print PIXLD subops in debug mode Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- 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);