panfrost: Precompute scoreboard dependents

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 12 July 2019 23:22 EDT

Mali job dependency graphs, at least for GLES3.0, have the special property that a given node will only have at most a single dependent. This allows us to efficiently precompute the dependent array and replace an inner loop's O(N) search with an O(1) lookup, bringing the algorithmic complexity of scoreboarding from O(N^2) to O(N).

e173d6b1b13 panfrost: Precompute scoreboard dependents
src/gallium/drivers/panfrost/pan_scoreboard.c | 58 +++++++++++++++++++++++++--
1 file changed, 54 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share