GEM: Skip relocation if presumed offset matches.

This commit is contained in:
Eric Anholt 2008-05-06 11:25:53 -07:00
parent 8551bfc6db
commit dd6976c56f

View file

@ -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.
*/