pcsx2
pcsx2 copied to clipboard
[BUG]: FInal Fantasy X-2/X-2 International corrupt load game sub menu
Describe the Bug
Going to the load game menu can become corrupt.
Reproduction Steps
Go to the load game menu if the menu isn't corrupted initially then scroll down the list of save slots.
Expected Behavior
No corruption of the menu.
PCSX2 Revision
PCSX2 v2.5.348
Operating System
Windows 11
If Linux - Specify Distro
No response
CPU
i7 8086K
GPU
GTX 1080Ti
GS Settings
Default.
Emulation Settings
Default
GS Window Screenshots
Logs & Dumps
https://drive.google.com/file/d/1FmC2AuvDHRc65OTX8IiITpjyLn8CoFS3/view?usp=sharing
This appears to be an issue with TC invalidation.
Draw 9918:
- Game uploads 832 16x16 Z24 squares to 0x2100 to clear the Z buffer. The squares are not combined into a single transfer because they use BW=1 and offset within pages. However, they should collectively invalidate a region of size 512 x 448.
- There is an old C16 target at the location but it does not get fully dirtied. There appears to be an issue with GSTextureCache::DirtyRectByPage() and/or GSTextureCache::InvalidateVideoMem(). In this case, they don't appear to be computing overlaps correctly between the Z24 area being transferred and C16 valid area of the existing target.