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:
parent
08d8a47e7c
commit
10023bf8f5
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue