]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Match GTT space sanity checker with implementation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Sep 2014 07:43:48 +0000 (08:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:41:18 +0000 (14:41 +0200)
commit06e1fb0813453fff3b2544fbe851592f0ab54cba
treee4c1b58dcb5f34f280962f5b41f729f704aede3a
parent0ada10e8255b28e40a717ca703fb5edd7b017cce
drm/i915: Match GTT space sanity checker with implementation

If we believe that the device can cross cache domains in its prefetcher
(i.e. we allow neighbouring pages in different domains), we don't supply
a color_adjust callback. Use the presence of this callback to better
determine when we should be verifying that the GTT space we just
used is valid.

v2: Remove the superfluous struct drm_device function param as well.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Also adjust the comment per irc discussion with Chris.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c