diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-24 08:48:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-24 09:46:27 +0100 |
commit | 454cc8453af1852758c3396dbe303c13c5c1be27 (patch) | |
tree | 801fbe8b629889448eccdf350f7026c57996aed4 | |
parent | 0e1e83ed4952f620e9422e58f955a5aea406e300 (diff) |
sna: Submit the partial batch before throttling
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 9bc8c484..fd9728c9 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -13691,8 +13691,10 @@ static void sna_accel_throttle(struct sna *sna) { DBG(("%s (time=%ld)\n", __FUNCTION__, (long)TIME)); - if (sna->kgem.need_throttle) + if (sna->kgem.need_throttle) { + kgem_submit(&sna->kgem); kgem_throttle(&sna->kgem); + } if (!sna->kgem.need_retire) sna_accel_disarm_timer(sna, THROTTLE_TIMER); |