From 1f4ede0ef8f8a8d07e11781ad05617ecdfcd3faf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 19 Dec 2012 20:39:10 +0000 Subject: [PATCH] sna: Do not throttle before move-to-cpu The idea being that when creating a surface to perform inplace rasterisation, we won't be using the GPU for a while and so give it time to naturally throttle. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 01bc8ab4..408c98c3 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -431,7 +431,7 @@ sna_pixmap_alloc_cpu(struct sna *sna, pixmap->drawable.width, pixmap->drawable.height, pixmap->drawable.bitsPerPixel, - from_gpu ? 0 : CREATE_CPU_MAP | CREATE_INACTIVE); + from_gpu ? 0 : CREATE_CPU_MAP | CREATE_INACTIVE | CREATE_NO_THROTTLE); if (priv->cpu_bo) { priv->ptr = kgem_bo_map__cpu(&sna->kgem, priv->cpu_bo); priv->stride = priv->cpu_bo->pitch;