sna: Prefer to render over damage into the GPU bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-23 09:22:13 +01:00
parent 416c223861
commit bb4c057620
1 changed files with 4 additions and 0 deletions

View File

@ -3809,6 +3809,9 @@ cpu_fail:
assert(priv->gpu_bo == NULL || priv->gpu_bo->proxy == NULL);
if (flags & RENDER_GPU) {
if ((flags & IGNORE_DAMAGE) == 0 && priv->gpu_damage)
goto move_to_gpu;
if (priv->gpu_bo && priv->gpu_bo->tiling)
goto move_to_gpu;
@ -3865,6 +3868,7 @@ cpu_fail:
__FUNCTION__, *damage != NULL));
assert(damage == NULL || !DAMAGE_IS_ALL(*damage));
assert(priv->clear == false);
priv->cpu = false;
return priv->cpu_bo;
}