diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-03 22:07:22 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-03 22:07:22 +0000 |
commit | 10023bf8f5a95b4e9f42c05370bc2c103d6a3d3d (patch) | |
tree | aaa5062e25d144bbef3dbb00b4b6e53ffaaca90f /src/sna/sna_accel.c | |
parent | 08d8a47e7c8b9bcb5bb317be4623161e58e0e0cc (diff) |
sna: Use fast-path target placement if we are also IGNORE_CPU
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>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 1328c288..b8d89d6f 100644 --- 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", |