From: Daniel Vetter Date: Fri, 19 Feb 2010 10:51:56 +0000 (+0100) Subject: drm/i915: reuse i915_gem_object_put_fence_reg for fence stealing code X-Git-Tag: v2.6.34-rc1~209^2~11^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=798750e30d3de7932b0ac420f8fae2a970f2ac34;p=pandora-kernel.git drm/i915: reuse i915_gem_object_put_fence_reg for fence stealing code This has a few functional changes against the old code: * a few more unnecessary loads and stores to the drm_i915_fence_reg objects. Also an unnecessary store to the hw fence register. * zaps any userspace mappings before doing other flushes. Only changes anything when userspace does racy stuff against itself. * also flush GTT domain. This is a noop, but still try to keep the bookkeeping correct. Signed-off-by: Daniel Vetter Signed-off-by: Eric Anholt --- Reading git-diff-tree failed