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>
This commit is contained in:
Chris Wilson 2013-11-03 22:07:22 +00:00
parent 08d8a47e7c
commit 10023bf8f5
1 changed files with 1 additions and 1 deletions

View 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",