vc4: Populate the delay field better, and schedule high delay first.
authorEric Anholt <eric@anholt.net>
Tue, 9 Dec 2014 22:05:52 +0000 (14:05 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 10 Dec 2014 02:32:36 +0000 (18:32 -0800)
commitc5b544403fbc955dd441fb5a2e11f0de2a75e9e4
tree112b865dd1f4b5fadb92f4718688d8fe42adb2bf
parent45a89237711acff7ee31c854361f8f580ccdcc9f
vc4: Populate the delay field better, and schedule high delay first.

This is a standard scheduling heuristic, and clearly helps.

total instructions in shared programs: 46418 -> 44467 (-4.20%)
instructions in affected programs:     42531 -> 40580 (-4.59%)
src/gallium/drivers/vc4/vc4_qpu_schedule.c