nir/schedule: Store a pointer to the scoreboard in nir_deps_state
authorNeil Roberts <nroberts@igalia.com>
Wed, 17 Jun 2020 13:11:44 +0000 (15:11 +0200)
committerNeil Roberts <nroberts@igalia.com>
Mon, 22 Jun 2020 06:23:06 +0000 (08:23 +0200)
commit28e3209985fc3c812cb0bd92b70d23abd6409190
tree69f988db10b5fb43b159daa9b9b629838427c501
parent0a18c935e15e70f23444bd594e05d40153871a1e
nir/schedule: Store a pointer to the scoreboard in nir_deps_state

nir_deps_state is a struct used as a closure for calculating the
dependencies. Previously it had two fields copied out of the scoreboard.
The closure is initialised in two seperate places. In order to make it
easier to access other members of the scoreboard in the callbacks in
later patches, the closure now just contains a pointer to the scoreboard
and the two bits of copied information are removed.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5561>
src/compiler/nir/nir_schedule.c