]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Check against color expansion in drm_mm_reserve_node()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Nov 2016 14:11:15 +0000 (14:11 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Nov 2016 08:11:37 +0000 (09:11 +0100)
commit7a7e2ad5fcd3f45316885e57540ba178e9b4915b
tree8bc11f9149c961fc7ec65cbbda2170e8e8e00d34
parent3691ce268b8b8dd762b5aa2cacf34bc00ff7d3b3
drm: Check against color expansion in drm_mm_reserve_node()

Use the color_adjust callback when reserving a node to check if
inserting a node into this hole requires any additional space, and so if
that space then conflicts with an existing allocation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
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/20161123141118.23876-2-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c