sna: Use fast-path target placement if we are also IGNORE_CPU
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 3 Nov 2013 22:07:22 +0000 (22:07 +0000)
committerChris 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

index 1328c28..b8d89d6 100644 (file)
@@ -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,
                                                               &region.extents)) {
                                DBG(("%s: region wholly contained within GPU damage\n",