diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2005-09-29 21:47:29 +0000 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2005-09-29 21:47:29 +0000 |
commit | d8be62ab175a013f78d4944036da284ffad34d96 (patch) | |
tree | caf9705c6c35324a551dfa3da8984dd78bcc6f0d /src/nv_hw.c | |
parent | e39eb8b8c1a79d04f90a195351c4eec3dba0d612 (diff) |
Add entries for GeForce Go 7800. (Change went into XFree86 on 2005-09-28).XORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901accelerated_indirect-0-0-1
Don't hang if j is zero. This should never happen, but it's better to be
safe than sorry.
Diffstat (limited to 'src/nv_hw.c')
-rw-r--r-- | src/nv_hw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nv_hw.c b/src/nv_hw.c index cd7ee5a..4fcdc79 100644 --- a/src/nv_hw.c +++ b/src/nv_hw.c @@ -1173,8 +1173,10 @@ void NVLoadStateExt ( pNv->PGRAPH[0x0610/4] = 0x00be3c5f; j = pNv->REGS[0x1540/4] & 0xff; - for(i = 0; !(j & 1); j >>= 1, i++); - pNv->PGRAPH[0x5000/4] = i; + if(j) { + for(i = 0; !(j & 1); j >>= 1, i++); + pNv->PGRAPH[0x5000/4] = i; + } if((pNv->Chipset & 0xfff0) == 0x0040) { pNv->PGRAPH[0x09b0/4] = 0x83280fff; |