]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Combine loops within i915_gem_evict_something
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 15:32:17 +0000 (16:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 19:19:49 +0000 (20:19 +0100)
commit01043c0c18228a561137e43c92fc930e5c7444ef
treeaad5323152f96c16cf03e89eb064eda7a463c9c0
parenta43247a6f403b620d881caf9ab3d1e70db0cf21c
drm/i915: Combine loops within i915_gem_evict_something

Slight micro-optimise to produce combine loops so that gcc is able to
optimise the inner-loops concisely. Since we are reviewing the loops, we
can update the comments to describe the current state of affairs, in
particular the distinction between evicting from the global GTT (which
may contain untracked items and transient global pins) and the
per-process GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470324762-2545-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_evict.c