drm/i915: save/restore fence registers across suspend/resume
authorKeith Packard <keithp@keithp.com>
Thu, 30 Apr 2009 21:43:44 +0000 (14:43 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 30 Apr 2009 23:04:40 +0000 (16:04 -0700)
commit79f11c19a396e8cea7dad322dcfb46c0a8517fe6
tree7da6cf901e07655e96de7ea50a2ee597218c71d4
parent049ef7e40fc9959db480b2753a1dbe734d98e948
drm/i915: save/restore fence registers across suspend/resume

This makes software fallbacks not do tiling wrong on i965 and later after
resume. It also should fix 945 performance reduction after resume which
would have disabled tiling without causing any visible effect.

Signed-off-by: Keith Packard <keithp@keithp.com>
[anholt: Fixed up the 915 case to not save/restore the new regs]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c