1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Fix what appears to be a typo, and restore the registers correctly.

Found with:	Coverity Prevent(tm)
CID: 		2454
This commit is contained in:
Robert Noland 2009-03-20 17:51:26 +00:00
parent 363fec5d16
commit c8264c8ee2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190164

View File

@ -515,7 +515,7 @@ int i915_restore_state(struct drm_device *dev)
for (i = 0; i < 16; i++) {
I915_WRITE(SWF00 + (i << 2), dev_priv->saveSWF0[i]);
I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i+7]);
I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i]);
}
for (i = 0; i < 3; i++)
I915_WRITE(SWF30 + (i << 2), dev_priv->saveSWF2[i]);