freedreno/ir3: fix printing output registers of FS.
authorHyunjun Ko <zzoon@igalia.com>
Fri, 21 Jun 2019 03:18:33 +0000 (03:18 +0000)
committerNeil Roberts <nroberts@igalia.com>
Wed, 20 Nov 2019 13:09:43 +0000 (14:09 +0100)
Fixes: cea39af2fbf1 ("freedreno/ir3: Generalize ir3_shader_disasm()")
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_shader.c

index c5ad1ed297e41fa79589f6a6b84b5830209f9991..3ee0617bf4b2f6aa7d4561f8df3b64201689d133 100644 (file)
@@ -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");