mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Where the GE stores each depth pixel, from the EDRAM address translation and the color format: with 32-bit color, address bits 5 up to log2(T) - 1 rotate left by one, then (T << 3) | 0x40 is XORed in (0x600, and bits 9 and 10 swapped, at T 0). The CPU sees the same mapping through VRAM's 0x04200000 and 0x04600000 mirrors. Measured in ppsspp-re geprobe exp8-10 (every pixel of 512x272 buffers at each T) and exp88; the unit test checks it against the model fitted there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>