sna: Use a cheaper check for a replacement operation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
76380bcc3c
commit
4b97bf7e6e
|
|
@ -3566,7 +3566,7 @@ create_gpu_bo:
|
|||
if (priv->gpu_damage) {
|
||||
assert(priv->gpu_bo);
|
||||
if (!priv->cpu_damage || flags & IGNORE_CPU) {
|
||||
if (box_covers_pixmap(pixmap, ®ion.extents)) {
|
||||
if (flags & REPLACES || box_covers_pixmap(pixmap, ®ion.extents)) {
|
||||
unsigned int move;
|
||||
|
||||
if (flags & IGNORE_CPU)
|
||||
|
|
|
|||
Loading…
Reference in New Issue