diff options
author | Rob Clark <[email protected]> | 2015-01-02 09:26:38 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-01-07 19:37:28 -0500 |
commit | 8c3952051e26c644448fa607a7bdba97631728cb (patch) | |
tree | ca645136acb90bf7a588b30296548887e86c6c53 /src/gallium | |
parent | 56370b9feb269f185858422ee8fdf74a3dc99a33 (diff) |
freedreno/ir3: handle relative addr in ir3_dump
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_dump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_dump.c b/src/gallium/drivers/freedreno/ir3/ir3_dump.c index 136b57f068f..60be64c0e5a 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_dump.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_dump.c @@ -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)]); } } |