vc4: Emit the scoreboard wait just when it's needed.
authorEric Anholt <eric@anholt.net>
Wed, 20 Aug 2014 21:51:08 +0000 (14:51 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 22 Aug 2014 17:16:58 +0000 (10:16 -0700)
commitae83955b1da238ccf180cba568f4269f01bb21fa
tree5a63d710929c31375c3a543c54a1c38452e50afb
parentc3c922289b2fb080ec184d9bd7e71a8870ced18d
vc4: Emit the scoreboard wait just when it's needed.

This should improve performance on real hardware by allowing more shader
instances to run in parallel.  It also fixes assertion failures in tests
that don't emit a fragment color, since otherwise we didn't have enough
instructions to fit our signals in.
src/gallium/drivers/vc4/vc4_qpu_emit.c