projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416c223
)
sna: Prefer to render over damage into the GPU bo
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 23 Jun 2014 08:22:13 +0000
(09:22 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 23 Jun 2014 08:43:10 +0000
(09:43 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c
patch
|
blob
|
history
diff --git
a/src/sna/sna_accel.c
b/src/sna/sna_accel.c
index
067f7dd
..
e4520d1
100644
(file)
--- a/
src/sna/sna_accel.c
+++ b/
src/sna/sna_accel.c
@@
-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;
}