OSDN Git Service

drm/i915: Skip the sanity checks if the current relocation is valid
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Sep 2009 20:15:15 +0000 (21:15 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 18 Sep 2009 22:31:39 +0000 (15:31 -0700)
commit8542a0bbbbda412560820b4c3b04e8399e2e99c1
treeaa4f27bfdc2444aad98aceb33f99fe06069610d4
parentcd0b9fb400ba775737bdc3874c4cbee4047e66d8
drm/i915: Skip the sanity checks if the current relocation is valid

If the presumed_offset as feed to userspace and returned to the kernel
from a previous execbuffer is still valid, then we do not need to rewrite
the relocation entry and may skip the offset sanity checks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_gem.c