mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-22 17:20:14 +01:00
GEM: Skip relocation if presumed offset matches.
This commit is contained in:
parent
8551bfc6db
commit
dd6976c56f
1 changed files with 3 additions and 0 deletions
|
|
@ -285,6 +285,9 @@ i915_gem_reloc_and_validate_object(struct drm_gem_object *obj,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target_obj_priv->gtt_offset == reloc.presumed_offset)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Map the page containing the relocation we're going to
|
/* Map the page containing the relocation we're going to
|
||||||
* perform.
|
* perform.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue