diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-14 13:08:43 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-14 13:40:55 +0000 |
commit | c64d2572bafeacae25e9b58c8372ce91858c3832 (patch) | |
tree | 0c79534b73c4da3bc44f67182bce058fd9b87456 /src/sna/gen2_render.c | |
parent | b61e6398f0cf94d3c483e30c05ceae4a8383d16c (diff) |
sna: Allow some leeway when deciding to discard common translations
Under PictFilterNearest, we can ignore fractional translations (not all
renderers discard those.) And if we are being approximate, we can loosen
our tolerance as well.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen2_render.c')
-rw-r--r-- | src/sna/gen2_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 2ebfde67..e3931e3e 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -1550,7 +1550,7 @@ gen2_composite_picture(struct sna *sna, y += dy + picture->pDrawable->y; channel->is_affine = sna_transform_is_affine(picture->transform); - if (sna_transform_is_integer_translation(picture->transform, &dx, &dy)) { + if (sna_transform_is_imprecise_integer_translation(picture->transform, picture->filter, precise, &dx, &dy)) { DBG(("%s: integer translation (%d, %d), removing\n", __FUNCTION__, dx, dy)); x += dx; |