summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_gem.c3
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.
*/