Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293823
b: refs/heads/master
c: b670824
h: refs/heads/master
i:
  293821: 6d06a0d
  293819: 3d8778b
  293815: d8b9d9d
  293807: 26f499f
  293791: abaad28
  293759: fd942a9
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Feb 27, 2012
1 parent c4cd2b3 commit 8accda1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: bd45545f7405eab9093da84715f19c6385a57662
refs/heads/master: b67082425350a0a47cde7ebfb7914a72c4c97d0f
4 changes: 1 addition & 3 deletions trunk/drivers/gpu/drm/i915/i915_gem_evict.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ static bool
mark_free(struct drm_i915_gem_object *obj, struct list_head *unwind)
{
list_add(&obj->exec_list, unwind);
drm_gem_object_reference(&obj->base);
return drm_mm_scan_add_block(obj->gtt_space);
}

Expand Down Expand Up @@ -139,7 +138,6 @@ i915_gem_evict_something(struct drm_device *dev, int min_size,
BUG_ON(ret);

list_del_init(&obj->exec_list);
drm_gem_object_unreference(&obj->base);
}

/* We expect the caller to unpin, evict all and try again, or give up.
Expand All @@ -158,10 +156,10 @@ i915_gem_evict_something(struct drm_device *dev, int min_size,
exec_list);
if (drm_mm_scan_remove_block(obj->gtt_space)) {
list_move(&obj->exec_list, &eviction_list);
drm_gem_object_reference(&obj->base);
continue;
}
list_del_init(&obj->exec_list);
drm_gem_object_unreference(&obj->base);
}

/* Unbinding will emit any required flushes */
Expand Down

0 comments on commit 8accda1

Please sign in to comment.