From 454cc8453af1852758c3396dbe303c13c5c1be27 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 24 Aug 2012 08:48:12 +0100 Subject: sna: Submit the partial batch before throttling Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3