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 | |
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.
-rw-r--r-- | src/nv_driver.c | 4 | ||||
-rw-r--r-- | src/nv_hw.c | 6 | ||||
-rw-r--r-- | src/nv_setup.c | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 5e9ec41..b82c049 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -87,7 +87,7 @@ _X_EXPORT DriverRec NV = { 0 }; -/* Known cards as of 2005/08/31 */ +/* Known cards as of 2005/09/21 */ static SymTabRec NVKnownChipsets[] = { @@ -300,7 +300,7 @@ static SymTabRec NVKnownChipsets[] = { 0x10DE0092, "GeForce 7800 GT" }, { 0x10DE0093, "0x0093" }, { 0x10DE0094, "0x0094" }, - { 0x10DE0098, "0x0098" }, + { 0x10DE0098, "GeForce Go 7800" }, { 0x10DE0099, "GeForce Go 7800 GTX" }, { 0x10DE009C, "0x009C" }, { 0x10DE009D, "Quadro FX 4500" }, 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; diff --git a/src/nv_setup.c b/src/nv_setup.c index 1d8b536..c7a0e86 100644 --- a/src/nv_setup.c +++ b/src/nv_setup.c @@ -447,6 +447,7 @@ NVCommonSetup(ScrnInfoPtr pScrn) case 0x0144: case 0x0146: case 0x0148: + case 0x0098: case 0x0099: mobile = TRUE; break; |