mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
nv50/ir: print interpolation mode
This commit is contained in:
parent
dcc91fc5d3
commit
a9f22b91e5
1 changed files with 22 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue