OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8551bfc
)
GEM: Skip relocation if presumed offset matches.
author
Eric Anholt
<eric@anholt.net>
Tue, 6 May 2008 18:25:53 +0000
(11:25 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 6 May 2008 18:25:53 +0000
(11:25 -0700)
linux-core/i915_gem.c
patch
|
blob
|
history
diff --git
a/linux-core/i915_gem.c
b/linux-core/i915_gem.c
index
e795ee7
..
4534dae
100644
(file)
--- 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.
*/