From: Rob Clark Date: Mon, 27 Jan 2020 16:35:20 +0000 (-0800) Subject: freedreno/ir3: fix a dirty lie X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=982d61e2cdd5a5e3f82444787634fa45ba2fd44f;p=mesa.git freedreno/ir3: fix a dirty lie Lies, damn lies, and leftover hacks! We no longer hard-code these two, so fix the disasm to print the correct values. Signed-off-by: Rob Clark Tested-by: Marge Bot Part-of: --- diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index 559a017d747..3d28aec4445 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -488,13 +488,10 @@ ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out) dump_output(out, so, FRAG_RESULT_DATA6, "data6"); dump_output(out, so, FRAG_RESULT_DATA7, "data7"); } - /* these two are hard-coded since we don't know how to - * program them to anything but all 0's... - */ - if (so->frag_coord) - fprintf(out, "; fragcoord: r0.x\n"); - if (so->frag_face) - fprintf(out, "; fragface: hr0.x\n"); + dump_reg(out, "fragcoord", + ir3_find_sysval_regid(so, SYSTEM_VALUE_FRAG_COORD)); + dump_reg(out, "fragface", + ir3_find_sysval_regid(so, SYSTEM_VALUE_FRONT_FACE)); break; default: /* TODO */