Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254011
b: refs/heads/master
c: e92d03b
h: refs/heads/master
i:
  254009: b9e8b2e
  254007: 8c75e35
v: v3
  • Loading branch information
Eric Anholt authored and Keith Packard committed Jun 21, 2011
1 parent 18a5d85 commit 656ea8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec6a890dfed7dd245beba5e5bcdfcffbd934c284
refs/heads/master: e92d03bff9a0d0bcbb812c9b1290ca96c9338d45
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1219,11 +1219,11 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
ret = i915_gem_object_bind_to_gtt(obj, 0, true);
if (ret)
goto unlock;
}

ret = i915_gem_object_set_to_gtt_domain(obj, write);
if (ret)
goto unlock;
ret = i915_gem_object_set_to_gtt_domain(obj, write);
if (ret)
goto unlock;
}

if (obj->tiling_mode == I915_TILING_NONE)
ret = i915_gem_object_put_fence(obj);
Expand Down Expand Up @@ -2926,8 +2926,6 @@ i915_gem_object_flush_gtt_write_domain(struct drm_i915_gem_object *obj)
*/
wmb();

i915_gem_release_mmap(obj);

old_write_domain = obj->base.write_domain;
obj->base.write_domain = 0;

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ i915_gem_object_set_to_gpu_domain(struct drm_i915_gem_object *obj,
if ((flush_domains | invalidate_domains) & I915_GEM_DOMAIN_CPU)
i915_gem_clflush_object(obj);

/* blow away mappings if mapped through GTT */
if ((flush_domains | invalidate_domains) & I915_GEM_DOMAIN_GTT)
i915_gem_release_mmap(obj);

if (obj->base.pending_write_domain)
cd->flips |= atomic_read(&obj->pending_flip);

Expand Down

0 comments on commit 656ea8c

Please sign in to comment.