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)
commit9332f3b1b99a7cb738755b138988838d33ba6748
treeaad5323152f96c16cf03e89eb064eda7a463c9c0
parentd838a110f0b310d408ebe6b5a97e36ec27555ebf
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