vc4: Throttle outstanding rendering after submission.
authorEric Anholt <eric@anholt.net>
Tue, 26 Jan 2016 18:34:42 +0000 (10:34 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 28 Jan 2016 04:05:37 +0000 (20:05 -0800)
commit3fba517bdd03551f7c7ff21dfe1896c677cbccda
treec652d951d84670ab6c188a6eb93ad190dd7bf2bf
parent2a449ce7c961f3269f9a37ddf4fe340fc170c609
vc4: Throttle outstanding rendering after submission.

Just make sure that after we've submitted, we get to at least 5
(global) submits ago before we go on to do more.  Prevents up to
seconds of lag with window movement in X with xcompmgr -c.  There may
be useful tuning to do in the future, but for now this gets us
usability.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_job.c