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 <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5deba2832d
commit
1f4ede0ef8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue