diff options
author | Christoph Bumiller <[email protected]> | 2012-04-12 21:42:29 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 21:54:04 +0200 |
commit | a9f22b91e5b6f0d462de8a92e13d7c5af35dadc4 (patch) | |
tree | 14b7d43bc68a17cbb7b1ac73fb14dd4d1b6e8101 | |
parent | dcc91fc5d3e79135e912a93e9de31d6d3a3458ff (diff) |
nv50/ir: print interpolation mode
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp index c6134465996..45e61c5e58a 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp @@ -227,6 +227,26 @@ static const char *SemanticStr[SV_LAST + 1] = "(INVALID)" }; +static const char *interpStr[16] = +{ + "pass", + "mul", + "flat", + "sc", + "cent pass", + "cent mul", + "cent flat", + "cent sc", + "off pass", + "off mul", + "off flat", + "off sc", + "samp pass", + "samp mul", + "samp flat", + "samp sc" +}; + #define PRINT(args...) \ do { \ pos += snprintf(&buf[pos], size - pos, args); \ @@ -451,6 +471,8 @@ void Instruction::print() const PRINT(" %sBB:%i", colour[TXT_BRA], asFlow()->target.bb->getId()); } else { PRINT("%s ", operationStr[op]); + if (op == OP_LINTERP || op == OP_PINTERP) + PRINT("%s ", interpStr[ipa]); if (subOp) PRINT("(SUBOP:%u) ", subOp); if (perPatch) |