summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-06-29 15:34:35 +0200
committerSamuel Pitoiset <[email protected]>2016-06-29 20:37:36 +0200
commita6d3b2e176ce60852710b769f35b5dbcd4416b20 (patch)
tree2be8db4d1c9086b97e6a64a40a6acc21a87f4995 /src
parent908ba1955434e10f7fc3579bc07f3bc46f4bff3f (diff)
nv50/ir: print RSQ/RCP subops in debug mode
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp10
1 files changed, 10 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 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);