Check if BP and XF changes actually change values before flushing

This commit is contained in:
Pierre Bourdon
2012-05-18 23:13:53 +02:00
parent 1bc5f41e40
commit 5a77cae2e3
2 changed files with 59 additions and 18 deletions

View File

@ -128,7 +128,17 @@ void BPWritten(const BPCmd& bp)
FlushPipeline();
}
} // END ZTP SPEEDUP HACK
else FlushPipeline();
else
{
if (((s32*)&bpmem)[bp.address] != bp.newvalue)
{
FlushPipeline();
}
else if (bp.address == BPMEM_TRIGGER_EFB_COPY
|| bp.address == BPMEM_CLEARBBOX1
|| bp.address == BPMEM_CLEARBBOX2)
FlushPipeline();
}
((u32*)&bpmem)[bp.address] = bp.newvalue;