]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Apply tight eviction scanning to color_adjust
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:36 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Dec 2016 12:23:06 +0000 (13:23 +0100)
commit68775a776c31e3e59d083f556a13d03f420fcb74
treeb5780d24e226c04ca8810b3d8aeda15cfa4daf63
parent34c21f7087c213576e4e0e5ede69e2e8586a5300
drm: Apply tight eviction scanning to color_adjust

Using mm->color_adjust makes the eviction scanner much tricker since we
don't know the actual neighbours of the target hole until after it is
created (after scanning is complete). To work out whether we need to
evict the neighbours because they impact upon the hole, we have to then
check the hole afterwards - requiring an extra step in the user of the
eviction scanner when they apply color_adjust.

v2: Massage kerneldoc.

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-34-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/selftests/test-drm_mm.c
include/drm/drm_mm.h