mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
752aeb7b3f
commit
982d61e2cd
1 changed files with 4 additions and 7 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue