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 <robdclark@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
This commit is contained in:
Rob Clark 2020-01-27 08:35:20 -08:00 committed by Marge Bot
parent 752aeb7b3f
commit 982d61e2cd

View file

@ -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 */