drm/i915/execbuffer: Reorder relocations to match new object order
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jan 2011 23:49:13 +0000 (23:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Jan 2011 16:06:05 +0000 (16:06 +0000)
commitdd6864a4edb9b2d0055a7f30e17cbc521098b1be
tree5c3b41913378fe69c506f54f9ac3ee45a1809f6c
parentc37d9a5de94a6fe60a756af350cd21aa9bbbc8a1
drm/i915/execbuffer: Reorder relocations to match new object order

On the fault path, commit 6fe4f140 introduction a regression whereby it
changed the sequence of the objects but continued to use the original
ordering of relocation entries. The result was that incorrect GTT offsets
were being fed into the execbuffer causing lots of misrendering and
potential hangs.

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