From a6d3b2e176ce60852710b769f35b5dbcd4416b20 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 29 Jun 2016 15:34:35 +0200 Subject: [PATCH] nv50/ir: print RSQ/RCP subops in debug mode Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp index f95d515c3fc..d7b2579d387 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp @@ -220,6 +220,11 @@ static const char *pixldOpStr[] = "count", "covmask", "offset", "cent_offset", "sampleid" }; +static const char *rcprsqOpStr[] = +{ + "", "64h" +}; + static const char *DataTypeStr[] = { "-", @@ -580,6 +585,11 @@ void Instruction::print() const if (subOp < ARRAY_SIZE(pixldOpStr)) PRINT("%s ", pixldOpStr[subOp]); break; + case OP_RCP: + case OP_RSQ: + if (subOp < ARRAY_SIZE(rcprsqOpStr)) + PRINT("%s ", rcprsqOpStr[subOp]); + break; default: if (subOp) PRINT("(SUBOP:%u) ", subOp); -- 2.30.2