nv50: oops, lost some state saving along the way somewhere.

xf86-video-nv will now work again after nouveau.
main
Ben Skeggs 2008-01-07 18:18:51 +11:00
parent 3d248cd7e4
commit 942b500e24
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ nv50_instmem_init(struct drm_device *dev)
return -ENOMEM;
dev_priv->Engine.instmem.priv = priv;
/* Save state, will restore at takedown. */
for (i = 0x1700; i <= 0x1710; i+=4)
priv->save1700[(i-0x1700)/4] = NV_READ(i);
/* Reserve the last MiB of VRAM, we should probably try to avoid
* setting up the below tables over the top of the VBIOS image at
* some point.