i965/sched: Assign a preferred exit node to each node of the dependency graph.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 16 Aug 2016 07:56:04 +0000 (00:56 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 19 Aug 2016 03:05:00 +0000 (20:05 -0700)
commit4147ca75d5c5423d70232b3712c0772450384ab0
treef5b3d0674170c24796887cd4e17625770642ab6b
parentb295d7ca32bbab94d4038c5684a38fd8f3dc4373
i965/sched: Assign a preferred exit node to each node of the dependency graph.

This adds a bit of metadata to schedule_node that will be used to
compare available nodes in the scheduling heuristic code based on
which of them unblocks the earliest successor exit node.  Note that
assigning exit nodes wouldn't be necessary in a bottom-up scheduler
because we could achieve the same effect by scheduling the exit nodes
themselves appropriately.

No shader-db changes.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp