sna: Do not treat both src/dst having no clones as being the same

Fixes regression from
commit 62aaf2ff4f
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jun 18 18:41:15 2014 +0100

    sna: Skip redundant copies when already cloned

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-18 20:55:02 +01:00
parent 377b0e8657
commit 51a0559b12
1 changed files with 3 additions and 1 deletions

View File

@ -6120,7 +6120,9 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
goto fallback;
}
if (src_priv && COW(src_priv->cow) == COW(dst_priv->cow) && alu == GXcopy) {
if (alu == GXcopy &&
src_priv && src_priv->cow &&
COW(src_priv->cow) == COW(dst_priv->cow)) {
if ((dx | dy) == 0) {
DBG(("%s: ignoring cow for no op\n",
__FUNCTION__));