nv50/ir: print PIXLD subops in debug mode

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Samuel Pitoiset 2016-06-29 15:25:16 +02:00
parent c0d92078bb
commit 908ba19554

View file

@ -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);