mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
A multisampled target's samples live only in its host image, so a fill of its color memory never reached them: a title that clears its MSAA targets that way (with no CMASK) kept drawing over the previous frame. A uniform fill over the whole color memory now clears the host image to that value at the target's next use, the same way a CMASK fast clear does, and a pending CMASK clear still takes precedence. The color memory is sized with addrlib's block dimensions for the sample count (ComputeThinBlockDimension): a 64 KiB block holds width x height x samples elements, laid out width first for 1x and 4x. A fill over part of it, over a target whose footprint is not computed, or with a value that has no exact clear value in the format throws at the next use. Co-Authored-By: Claude Opus 5.5 <[email protected]>