drm/i915/execbuffer: Clear domains before beginning reloc processing
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Jan 2011 11:03:48 +0000 (11:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Jan 2011 16:06:05 +0000 (16:06 +0000)
commit595dad76a0d213adc3dbe4f463f7887e905082b9
treece0daf549d86f2d19cbc56153d51e17c0385d028
parentdd6864a4edb9b2d0055a7f30e17cbc521098b1be
drm/i915/execbuffer: Clear domains before beginning reloc processing

After reordering the sequence of relocating objects, commit 6fe4f1404,
we can no longer rely on seeing all reloc targets prior to performing
the relocation. As a result we were ignoring the need to flush objects
from the render cache and invalidate the sampler caches, resulting in
rendering glitches. So we need to clear the relocation domains earlier.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_execbuffer.c