freedreno/ir3: add simplified stall estimation
authorRob Clark <robdclark@chromium.org>
Wed, 4 Mar 2020 18:51:10 +0000 (10:51 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 16:01:39 +0000 (16:01 +0000)
commit752b9985bed171a39bb439421d0e2cd8d0ab82aa
treeb7743907be8ad1cbae4994de6ebfb2057568ac7b
parent64ae2ef8bbc63750346345e331750f0e0c643103
freedreno/ir3: add simplified stall estimation

Doesn't take into account stalls that result from a register written in
a different block, etc.  But this should be more useful than just using
number of (ss)'s by trying to estimate how costly a given sync is.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
src/freedreno/ir3/ir3.c
src/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c