From d0f38394b146fa61197c66a0a0f95fa83f58cec8 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Fri, 21 Jun 2019 03:18:33 +0000 Subject: freedreno/ir3: fix printing output registers of FS. Fixes: cea39af2fbf1 ("freedreno/ir3: Generalize ir3_shader_disasm()") Reviewed-by: Rob Clark --- src/freedreno/ir3/ir3_shader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/freedreno') diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index c5ad1ed297e..3ee0617bf4b 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -429,8 +429,9 @@ ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out) fprintf(out, "; %s: outputs:", type); for (i = 0; i < so->outputs_count; i++) { uint8_t regid = so->outputs[i].regid; - fprintf(out, " r%d.%c (%s)", - (regid >> 2), "xyzw"[regid & 0x3], + const char *reg_type = so->outputs[i].half ? "hr" : "r"; + fprintf(out, " %s%d.%c (%s)", + reg_type, (regid >> 2), "xyzw"[regid & 0x3], output_name(so, i)); } fprintf(out, "\n"); -- cgit v1.2.3