drm/i915: Only emit a flush if there is an outstanding gpu write
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6bda10d152
commit
0ac74c6b33
|
@ -2154,8 +2154,9 @@ static int i915_ring_idle(struct drm_device *dev,
|
||||||
if (list_empty(&ring->gpu_write_list) && list_empty(&ring->active_list))
|
if (list_empty(&ring->gpu_write_list) && list_empty(&ring->active_list))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
i915_gem_flush_ring(dev, ring,
|
if (!list_empty(&ring->gpu_write_list))
|
||||||
I915_GEM_GPU_DOMAINS, I915_GEM_GPU_DOMAINS);
|
i915_gem_flush_ring(dev, ring,
|
||||||
|
I915_GEM_GPU_DOMAINS, I915_GEM_GPU_DOMAINS);
|
||||||
return i915_wait_request(dev,
|
return i915_wait_request(dev,
|
||||||
i915_gem_next_request_seqno(dev, ring),
|
i915_gem_next_request_seqno(dev, ring),
|
||||||
ring);
|
ring);
|
||||||
|
|
Loading…
Reference in a new issue