drm/i915: fix order of fence release wrt flushing
commitd241962850065fe0aabfbe947028a5e5f14ffb45
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Dec 2009 16:50:00 +0000 (15 17:50 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:23 +0000 (18 10:19 -0800)
tree6da4c61935ffd6b27f83085d52ceb5f3ff3a2613
parentd3e4d5f8ccd3dfb33d9f2907b5290509766352ea
drm/i915: fix order of fence release wrt flushing

commit 96b47b65594fe2365f73aede060cb5203561fed3 upstream.

i915_gem_object_unbind had the ordering wrong. The other user,
i915_gem_object_put_fence_reg already has the correct ordering.

Results was usually corrupted pixmaps, especially garbled font glyphs
after a suspend/resume (because this evicts everything).

I'm still waiting for the feedback from the bug-reporters, but
because this obviously fixes a bug (at least for me) I'm already
submitting it.

Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=25406
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c