freedreno/ir3: move nop padding to legalize
authorRob Clark <robdclark@chromium.org>
Wed, 18 Dec 2019 19:57:41 +0000 (11:57 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit093c94456bc99308bd80bcc952d1f77ea71a831c
tree26e93e50d31fc5fd4fe1240b929a7f165bae5f53
parentc803c662f990621acefd2f002d9df0d42ad8a3a0
freedreno/ir3: move nop padding to legalize

This way we can deal with it in one place, *after* all the blocks have
been scheduled.  Which will simplify life for a post-RA sched pass.

This has the benefit of already taking into account nop's that legalize
has to insert for non-delay related reasons.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_a6xx.c
src/freedreno/ir3/ir3_delay.c
src/freedreno/ir3/ir3_legalize.c
src/freedreno/ir3/ir3_sched.c