From: Hyunjun Ko Date: Fri, 21 Jun 2019 03:18:33 +0000 (+0000) Subject: freedreno/ir3: fix printing output registers of FS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0f38394b146fa61197c66a0a0f95fa83f58cec8;p=mesa.git freedreno/ir3: fix printing output registers of FS. Fixes: cea39af2fbf1 ("freedreno/ir3: Generalize ir3_shader_disasm()") Reviewed-by: Rob Clark --- 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");