mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
freedreno/ir3: handle relative addr in ir3_dump
Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
56370b9feb
commit
8c3952051e
1 changed files with 8 additions and 1 deletions
|
|
@ -128,13 +128,20 @@ static void dump_reg_name(struct ir3_dump_ctx *ctx,
|
|||
fprintf(ctx->f, "]");
|
||||
}
|
||||
}
|
||||
} else if (reg->flags & IR3_REG_RELATIV) {
|
||||
if (reg->flags & IR3_REG_HALF)
|
||||
fprintf(ctx->f, "h");
|
||||
if (reg->flags & IR3_REG_CONST)
|
||||
fprintf(ctx->f, "c<a0.x + %u>", reg->num);
|
||||
else
|
||||
fprintf(ctx->f, "\x1b[0;31mr<a0.x + %u>\x1b[0m", reg->num);
|
||||
} else {
|
||||
if (reg->flags & IR3_REG_HALF)
|
||||
fprintf(ctx->f, "h");
|
||||
if (reg->flags & IR3_REG_CONST)
|
||||
fprintf(ctx->f, "c%u.%c", reg_num(reg), "xyzw"[reg_comp(reg)]);
|
||||
else
|
||||
fprintf(ctx->f, "r%u.%c", reg_num(reg), "xyzw"[reg_comp(reg)]);
|
||||
fprintf(ctx->f, "\x1b[0;31mr%u.%c\x1b[0m", reg_num(reg), "xyzw"[reg_comp(reg)]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue