ir3/postsched: Fix ir3_postsched_node::delay calculation
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 23 Mar 2021 16:59:04 +0000 (17:59 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 May 2021 19:52:31 +0000 (19:52 +0000)
commit40a1c4ba2d6ff13fae396b0baa569efaa426c041
treee083fcf953fb13e91419bf6ceb7f3aa2c4c02dae
parent4b41ffc2313e404caecc5c3059c63f6b5a1c28a3
ir3/postsched: Fix ir3_postsched_node::delay calculation

This wasn't using the same calculation that add_reg_dep() was using to
get the index into state->regs, so it was using the wrong register. Fix
this by folding it into add_reg_dep().

This shouldn't fix anything, because it's just used for scheduler
priorities, but it should reduce nop's and syncs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10591>
src/freedreno/ir3/ir3_postsched.c