naomi2: fix another initdv2 end of race crash

This commit is contained in:
Flyinghead 2022-02-18 16:40:26 +01:00
parent cecf1a5497
commit af4638e83f
1 changed files with 10 additions and 6 deletions

View File

@ -1446,7 +1446,8 @@ static void sendPolygon(ICHList *list)
default:
WARN_LOG(PVR, "Unhandled poly format %x", list->flags);
die("Unsupported");
// initdv2 crash (area conquered screen after the 4th race)
//die("Unsupported");
break;
}
envMapping = false;
@ -1570,13 +1571,16 @@ static void executeCommand(u8 *data, int size)
WARN_LOG(PVR, "Unknown interrupt mask %x", wait->mask);
// initdv2j: happens at end of race, garbage data after end of model due to wrong size?
//die("unexpected");
inter = holly_OPAQUE;
inter = (HollyInterruptID)-1;
break;
}
asic_RaiseInterruptBothCLX(inter);
TA_ITP_CURRENT += 32;
if (Active)
state.reset();
if (inter != (HollyInterruptID)-1)
{
asic_RaiseInterruptBothCLX(inter);
TA_ITP_CURRENT += 32;
if (Active)
state.reset();
}
}
size -= sizeof(RegisterWait);
}