From 10023bf8f5a95b4e9f42c05370bc2c103d6a3d3d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 3 Nov 2013 22:07:22 +0000 Subject: [PATCH] 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 --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",