nv50/ir: display OP_BAR 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:
@@ -236,6 +236,11 @@ static const char *cctlOpStr[] =
|
||||
"", "", "", "", "", "iv", "ivall"
|
||||
};
|
||||
|
||||
static const char *barOpStr[] =
|
||||
{
|
||||
"sync", "arrive", "red and", "red or", "red popc"
|
||||
};
|
||||
|
||||
static const char *DataTypeStr[] =
|
||||
{
|
||||
"-",
|
||||
@@ -611,6 +616,10 @@ void Instruction::print() const
|
||||
if (subOp < ARRAY_SIZE(cctlOpStr))
|
||||
PRINT("%s ", cctlOpStr[subOp]);
|
||||
break;
|
||||
case OP_BAR:
|
||||
if (subOp < ARRAY_SIZE(barOpStr))
|
||||
PRINT("%s ", barOpStr[subOp]);
|
||||
break;
|
||||
default:
|
||||
if (subOp)
|
||||
PRINT("(SUBOP:%u) ", subOp);
|
||||
|
||||
Reference in New Issue
Block a user