diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-05-06 22:25:46 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-05-06 22:25:46 -0400 |
commit | a59e122a67b88925944d3bbf33d15229cf0fc3de (patch) | |
tree | 13912f25393c1a3325946b53bca232ff938c7e3c /drivers/char/drm/i915_drv.h | |
parent | f116cc561eae0a426b8fa6b3e22e80ba0bcf7aee (diff) |
drm/i915: fix off by one in VGA save/restore of AR & CR regs.
turns out it's important to save/restore AR14 in particular.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/drm/i915_drv.h')
-rw-r--r-- | drivers/char/drm/i915_drv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h index 2be7e1d72836..7619c49e5885 100644 --- a/drivers/char/drm/i915_drv.h +++ b/drivers/char/drm/i915_drv.h | |||
@@ -197,10 +197,10 @@ typedef struct drm_i915_private { | |||
197 | u8 saveSR[8]; | 197 | u8 saveSR[8]; |
198 | u8 saveGR[25]; | 198 | u8 saveGR[25]; |
199 | u8 saveAR_INDEX; | 199 | u8 saveAR_INDEX; |
200 | u8 saveAR[20]; | 200 | u8 saveAR[21]; |
201 | u8 saveDACMASK; | 201 | u8 saveDACMASK; |
202 | u8 saveDACDATA[256*3]; /* 256 3-byte colors */ | 202 | u8 saveDACDATA[256*3]; /* 256 3-byte colors */ |
203 | u8 saveCR[36]; | 203 | u8 saveCR[37]; |
204 | } drm_i915_private_t; | 204 | } drm_i915_private_t; |
205 | 205 | ||
206 | extern struct drm_ioctl_desc i915_ioctls[]; | 206 | extern struct drm_ioctl_desc i915_ioctls[]; |