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:
08d8a47
)
sna: Use fast-path target placement if we are also IGNORE_CPU
author
Chris Wilson
<chris@chris-wilson.co.uk>
Sun, 3 Nov 2013 22:07:22 +0000
(22:07 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Sun, 3 Nov 2013 22:07:22 +0000
(22:07 +0000)
If we are ignoring CPU damage, we also need only to check GPU damage
when considering placement of the target bo.
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
1328c28
..
b8d89d6
100644
(file)
--- a/
src/sna/sna_accel.c
+++ b/
src/sna/sna_accel.c
@@
-3401,7
+3401,7
@@
create_gpu_bo:
if (priv->gpu_damage) {
assert(priv->gpu_bo);
- if (!priv->cpu_damage) {
+ if (!priv->cpu_damage
|| flags & IGNORE_CPU
) {
if (sna_damage_contains_box__no_reduce(priv->gpu_damage,
®ion.extents)) {
DBG(("%s: region wholly contained within GPU damage\n",