From: Daniel Vetter Date: Fri, 19 Feb 2010 10:51:59 +0000 (+0100) Subject: drm/i915: ensure lru ordering of fence_list X-Git-Tag: v2.6.34-rc1~209^2~11^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63560396536e9eb8858826fcbfc14d4015a41a95;p=pandora-kernel.git drm/i915: ensure lru ordering of fence_list The fence_list should be lru ordered for otherwise we might try to steal a fence reg from an active object even though there are fences from inactive objects available. lru ordering was obeyed for gpu access everywhere save when moving dirty objects from flushing_list to active_list. Fixing this cause the code to indent way to much, so I've extracted the flushing_list processing logic into its on function. Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson Signed-off-by: Eric Anholt --- Reading git-diff-tree failed