drm: Apply range restriction after color adjustment when allocation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:38 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Dec 2016 12:50:34 +0000 (13:50 +0100)
commit3db93756b501e5f0a3951c79cfa9ed43c26d3455
tree51c345841181101b979670d57f53cc0f61bc0979
parent3f85fb3462dc1c87a9353eb38714468d46248b2e
drm: Apply range restriction after color adjustment when allocation

mm->color_adjust() compares the hole with its neighbouring nodes. They
only abutt before we restrict the hole, so we have to apply color_adjust
before we apply the range restriction.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-36-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c