AGC: FMASK decompress over a 4x MSAA target with CMASK, FMASK and DCC stops Ruffle's player (PPSA68091) #4685
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Recapi on 2026-10-12T18:59:16Z.
Ruffle Flash (PPSA68091, catalog 1.2.0) gets past start-up with #4593 (
--linux-fixed-base 0x400000, #4013). Its game library UI runs. When it starts the Flash player at its default quality (High, 4x MSAA), the first CB pass over the player's multisampled color target throws:Setup: Linux (Ubuntu, GCC, Release), NVIDIA RTX 2080 SUPER,
main1acfa7fplus #4593. The catalog build hassce_module/libc.prxunwrapped. The player renders through wgpu on the title's bundled Mesa RADV (PlayStation 5 GPU (RADV NAVI21), Mesa 26.2.0).Register state at the pass, captured with a temporary print in
DecodeColorMetadataPass, not part of any PR:CB_COLOR_CONTROL(0x202)0x00cc0050PA_SC_AA_CONFIG(0x2f8)0x00000000CB_TARGET_MASK/CB_SHADER_MASK0xf/0xfDB_DEPTH_CONTROL(0x200),DB_RENDER_CONTROL(0x0)0x00700770,00,0–1920,1080CB_COLOR0_INFO(0x31c)0x1002e028CB_COLOR0_ATTRIB(0x31d)0x00012000CB_COLOR0_BASE/CMASK/FMASK/DCC_BASE0x40023a40/0x40046000/0x40043880/0x40046060What happens before the pass. The player loaded an empty SWF (no games in the library yet,
SWF: 0x0 @ 0 fps). So before the pass the target was only cleared, through its metadata, and no draw went throughDecodeColorBufferfor it. The FMASK decompress is the first CB operation on the target.What
mainwould need, from reading the AGC driver; none of this is implemented:DecodeColorBufferrejects DCC on any multisampled target (DCC over a multisampled color target is unsupported). Accepting MODE 5 alone would stop there.DecodeColorMetadataPassonly models CB passes over single-sample targets, plus the CB resolve. Multisampled texels live only in the host image.Workaround. With
quality=0(Low, which renders without MSAA) in Ruffle's/data/ruffle/settings.txt, the player starts and runs. It presented 1,800 frames before I closed it. Withquality=2, the default, it stops as above.