|
@@ -2407,15 +2407,15 @@ static void i915_gem_object_finish_gtt(struct drm_i915_gem_object *obj)
|
|
|
{
|
|
|
u32 old_write_domain, old_read_domains;
|
|
|
|
|
|
- /* Act a barrier for all accesses through the GTT */
|
|
|
- mb();
|
|
|
-
|
|
|
/* Force a pagefault for domain tracking on next user access */
|
|
|
i915_gem_release_mmap(obj);
|
|
|
|
|
|
if ((obj->base.read_domains & I915_GEM_DOMAIN_GTT) == 0)
|
|
|
return;
|
|
|
|
|
|
+ /* Wait for any direct GTT access to complete */
|
|
|
+ mb();
|
|
|
+
|
|
|
old_read_domains = obj->base.read_domains;
|
|
|
old_write_domain = obj->base.write_domain;
|
|
|
|