mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
drm/i915: No need to search again after retiring requests
Retiring requests does not typically free up space in the aperture, so the additional search is pointless. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
b670824253
commit
70424970b4
1 changed files with 0 additions and 15 deletions
|
@ -48,21 +48,6 @@ i915_gem_evict_something(struct drm_device *dev, int min_size,
|
|||
struct drm_i915_gem_object *obj;
|
||||
int ret = 0;
|
||||
|
||||
i915_gem_retire_requests(dev);
|
||||
|
||||
/* Re-check for free space after retiring requests */
|
||||
if (mappable) {
|
||||
if (drm_mm_search_free_in_range(&dev_priv->mm.gtt_space,
|
||||
min_size, alignment, 0,
|
||||
dev_priv->mm.gtt_mappable_end,
|
||||
0))
|
||||
return 0;
|
||||
} else {
|
||||
if (drm_mm_search_free(&dev_priv->mm.gtt_space,
|
||||
min_size, alignment, 0))
|
||||
return 0;
|
||||
}
|
||||
|
||||
trace_i915_gem_evict(dev, min_size, alignment, mappable);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue