]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: fix order of fence release wrt flushing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Dec 2009 16:50:00 +0000 (17:50 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 16 Dec 2009 17:18:37 +0000 (09:18 -0800)
commit96b47b65594fe2365f73aede060cb5203561fed3
tree2b473b622163278ebbf1e9c067f9e5894199dac2
parent656cb79322319a7bbafec7912d262142e9a38bc0
drm/i915: fix order of fence release wrt flushing

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>
CC: stable@kernel.org
drivers/gpu/drm/i915/i915_gem.c