mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
Add entries for GeForce Go 7800. (Change went into XFree86 on 2005-09-28).
Don't hang if j is zero. This should never happen, but it's better to be
safe than sorry.
This commit is contained in:
@@ -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" },
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -447,6 +447,7 @@ NVCommonSetup(ScrnInfoPtr pScrn)
|
||||
case 0x0144:
|
||||
case 0x0146:
|
||||
case 0x0148:
|
||||
case 0x0098:
|
||||
case 0x0099:
|
||||
mobile = TRUE;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user