diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-17 07:56:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-17 07:56:39 +0000 |
commit | 28ebbe8fa902a1d3ee4ecbda5041de5e7b68ada7 (patch) | |
tree | 5aa4ac47e3eae67cc42d0f041df2ecc1b70acabc /src/sna/sna_blt.c | |
parent | 57e63221ec0fa304a02beed356549cadb28bcf19 (diff) |
sna: Fix logic inversion in use of imprecise transform conversion
An accidental drop of the if (!is_translation) broke composite copies
under a transform.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76244
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_blt.c')
-rw-r--r-- | src/sna/sna_blt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index 41058c68..284f77e2 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -2515,13 +2515,15 @@ fill: return false; } - if (sna_transform_is_imprecise_integer_translation(src->transform, src->filter, - dst->polyMode == PolyModePrecise, - &tx, &ty)) { + if (!sna_transform_is_imprecise_integer_translation(src->transform, src->filter, + dst->polyMode == PolyModePrecise, + &tx, &ty)) { DBG(("%s: source transform is not an integer translation\n", __FUNCTION__)); return false; } + DBG(("%s: converting transform to integer translation? (%d, %d)\n", + __FUNCTION__, src->transform != NULL, tx, ty)); x += tx; y += ty; |