drm/i915: Invalidate the to-ring, flush the old-ring when updating domains
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Oct 2010 09:15:06 +0000 (10:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Oct 2010 10:07:21 +0000 (11:07 +0100)
commitb6651458d33c309767762a6c3da041573413fd88
treecf929107666824633ce8406816abf7f7595f89c4
parent297b0c5be3b6e08890cbd7149313408847e81715
drm/i915: Invalidate the to-ring, flush the old-ring when updating domains

When the object has been written to by the gpu it remains on the ring
until its flush has been retired. However, when the object is moving to
the ring and the associated cache needs to be invalidated, we need to
perform the flush on the target ring, not the one it came from (which is
NULL in the reported case and so the flush was entirely absent).

Reported-by: Peter Clifton <pcjc2@cam.ac.uk>
Reported-and-tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c