ps2dev / gsKit

gsKit is a C interface to the PS2 Graphics Synthesizer
Other
103 stars 27 forks source link

Bugfix for memory corruption when using UCAB memory and minor cleanups #31

Closed rickgaiser closed 4 years ago

rickgaiser commented 4 years ago

This bugfix will fix memory corruption when mixing cached and non-cached (UCAB) memory. This memory corruption can cause the DMA chain to the GS to become corrupted and can eventually crash the GIF/GS.

gsKit_heap_alloc and gsKit_heap_alloc_dma have been simplified. The alloc functions are now related to the GSQUEUE object, instead of the GSGLOBAL object, making the function smaller and easy to read.

Small gsHires.c cleanups/improvements added during testing.

fjtrujy commented 4 years ago

Glad to see gsKit getting more stable! Thanks @rickgaiser !