diff options
author | Eric Anholt <eric@anholt.net> | 2008-05-06 11:25:53 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-06 11:25:53 -0700 |
commit | dd6976c56f9f14ea8aa630833e9cc9711157d74f (patch) | |
tree | eca4212916bc25c0c863c32631c2f409bd26faa0 /linux-core | |
parent | 8551bfc6dba03dcd9d182b2099a0906153ecfa01 (diff) |
GEM: Skip relocation if presumed offset matches.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/i915_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c index e795ee77..4534dae2 100644 --- a/linux-core/i915_gem.c +++ b/linux-core/i915_gem.c @@ -285,6 +285,9 @@ i915_gem_reloc_and_validate_object(struct drm_gem_object *obj, return -EINVAL; } + if (target_obj_priv->gtt_offset == reloc.presumed_offset) + continue; + /* Map the page containing the relocation we're going to * perform. */ |