drm/i915: Only emit a flush request on the active ring.
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 18 Sep 2010 10:02:01 +0000 (11:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Sep 2010 10:19:51 +0000 (11:19 +0100)
commit9220434a8768902cd9cf248709972678b74aa8c1
treeebc291c2d703daf601f4b56ebe79c6e8a53d04e5
parentb84d5f0c22914d37d709add54c66e741c404fa56
drm/i915: Only emit a flush request on the active ring.

When flushing the GPU domains,we emit a flush on *both* rings, even
though they share a unified cache. Only emit the flush on the currently
active ring.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h