sna: Catch the short-circuit path for clearing clear on move-to-gpu as well
I thought the short-circuit path was only taken when already clear, I was wrong. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
359b9cc82d
commit
ed8c729ed0
|
|
@ -2766,9 +2766,10 @@ done:
|
|||
sna_pixmap_free_cpu(sna, priv);
|
||||
}
|
||||
}
|
||||
|
||||
active:
|
||||
if (flags & MOVE_WRITE)
|
||||
priv->clear = false;
|
||||
active:
|
||||
assert(!priv->gpu_bo->proxy || (flags & MOVE_WRITE) == 0);
|
||||
return sna_pixmap_mark_active(sna, priv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue