Increase Banshee revision to 3, matching my real CL Banshee card. Removes

the need for any fogTable hack, which is in any case inconsistently applied
by drivers and I think may only be needed on pre-production devices.
This commit is contained in:
SarahW 2020-08-27 08:31:43 +01:00
commit 1915149391
2 changed files with 1 additions and 4 deletions

View file

@ -1808,7 +1808,7 @@ static uint8_t banshee_pci_read(int func, int addr, void *p)
case 0x07: ret = banshee->pci_regs[0x07] & 0x36; break;
case 0x08: ret = 1; break; /*Revision ID*/
case 0x08: ret = 3; break; /*Revision ID*/
case 0x09: ret = 0; break; /*Programming interface*/
case 0x0a: ret = 0x00; break; /*Supports VGA interface*/

View file

@ -530,9 +530,6 @@ void voodoo_reg_writel(uint32_t addr, uint32_t val, void *p)
case SST_fogTable18: case SST_fogTable19: case SST_fogTable1a: case SST_fogTable1b:
case SST_fogTable1c: case SST_fogTable1d: case SST_fogTable1e: case SST_fogTable1f:
addr = (addr - SST_fogTable00) >> 1;
if (voodoo->type == VOODOO_BANSHEE)
val = ~val; /*Banshee fog table seems to be inverted. There's a reference
in the glide2x source to a "banshee (rev<3) fogTable hack"*/
voodoo->params.fogTable[addr].dfog = val & 0xff;
voodoo->params.fogTable[addr].fog = (val >> 8) & 0xff;
voodoo->params.fogTable[addr+1].dfog = (val >> 16) & 0xff;