sna: Limit the size of the tiling object to be smaller than either the originals
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Jul 2014 20:17:54 +0000 (21:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Jul 2014 20:23:17 +0000 (21:23 +0100)
commit24c9bac7eb6e17b55044d719bab74d16fd68c450
tree83605867a2a0ddeaed1eb75ed7cc0f3494a93d42
parent710bb0d37c681f2ffdeaf263b6ee7d9488670bc0
sna: Limit the size of the tiling object to be smaller than either the originals

When we tile, we do so in order to fit an operation involving two
objects larger than the aperture. If we then choose an intermediate
tiling object that is larger than either of those two, the error will
persist and we will be forced to recuse.

In the worst case, this will provide an upper bound to the recursion.

Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna.h