ipu: Revert Klonoa 2 workaround

This reverts commit 10ee832dc1.

The workaround should be unnecessary now that the indx4 is properly
aligned.
This commit is contained in:
Jonathan Li 2020-05-18 03:13:27 +01:00
parent 08cb843180
commit 0277b69ff1
1 changed files with 2 additions and 12 deletions

View File

@ -119,18 +119,8 @@ int IPU_Fifo_Output::write(const u32 *value, uint size)
size -= transsize;
while (transsize > 0)
{
//For some reason this causes stack corruption or something
//and it loses the pointer causing access violations in Klonoa 2 - Ref
//CopyQWC(&data[writepos], value);
//Here's the workaround
data[writepos] = value[0];
writepos = (writepos + 1) & 31;
data[writepos] = value[1];
writepos = (writepos + 1) & 31;
data[writepos] = value[2];
writepos = (writepos + 1) & 31;
data[writepos] = value[3];
writepos = (writepos + 1) & 31;
CopyQWC(&data[writepos], value);
writepos = (writepos + 4) & 31;
value += 4;
--transsize;
}