AGC: sampled 2D MSAA descriptor-shape failure (PPSA99902; verification pending) #3036
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 Amoenus on 2026-10-10T20:52:57Z.
Scope and status - 28 October 2026
This issue tracks the original sampled 2D MSAA descriptor-shape failure:
The historical PPSA99902 report used a read-only Sampled/Float
Dim2DMsaaresource, RGBA16_FLOAT,3840x2160,eight fragments,R_X. The closure criterion is correct descriptor-shape handling for the reported case while preserving its samples. Overall Sonic startup, loading and playability are tracked in #4443.What has already landed
f21ef7c99c5ahas explicit MSAA descriptor shapes.Those contributions cover defined subsets. The old title and its later loading failures should not imply that no descriptor-shape implementation exists.
What remains to verify before closing this issue
A fresh, focused check of the original PPSA99902 resource case on pinned main is still needed. The existing composed-fork runs and synthetic subsets do not identify every prerequisite of that original case. Record the conversion/runtime pins, reached stage and actual error.
There is no requirement for Sonic to reach gameplay before this particular defect can be closed. Conversely, the absence of the old error alone does not prove that its affected path executed.
Follow-ups kept outside this scope
2ecc68bda264(current component/recurrence evidence). #7002 remains draft for the earlier AMD move assertion and foreign-depth port. #17152 remains open with its earlier supported-device validation. No new Sonic run or closure of the original descriptor-shape case.These later symptoms are not assumed to share the original descriptor-shape cause. The native-color stack is related implementation work, not a blanket closing PR for every Sonic failure.
Preserved evidence
The latest composed run status and historical gameplay checkpoints remain in the bring-up discussion. The two mainb99 integration runs reached rendered3D cinematics without verified interactive gameplay; those are separately pinned observations, not unchanged-main closure evidence for this issue.
Previous issue summary before this scope clarification, including PR coverage and exact run references. Original detailed report and older evidence. Existing comments retain their historical source pins.
This tracker edit records component work only. No new game run or issue-resolution claim. AI-assisted: yes (Codex).
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-10T21:54:05Z.
Historical shader classification (main262c0316)
Distinct evidence retained here; the maintained implementation/validation report is now the issue body.
At local aggregate61e16ab7, a guard-preserving capture identified eight ordinary
IMAGE_LOADinstructions (opcode0,2DMSAA, dmaskF), PCs48/98/A4/B0/BC/C8/D4/E0. A preceding2D load atPC24 reads a separate FMASK descriptor, format166/S8_F8. This differs from #790's opcode80IMAGE_MSAA_LOAD. Full captured-requestRecompilerefused5/5;PrepareShaderalone succeeded and was insufficient validation.Historical native storage-write/sample-fetch feasibility probe: six small2/4/8-sample/array cases×5 pass, forced-sample-zero control fails. This established transport feasibility, not guest tiling/coherence. Later production RDNA tests supersede this probe; see the issue body. This evidence remains attributed to the historical stack, not current capture. AI-assisted; diagnostic removed, baseline restored, no gameplay/console-equivalence claim.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-10T22:27:02Z.
Historical layout and metadata observation (maindc105f8a)
Current code links, independent layout tests and title controls are maintained in the issue body.
Historical layout-only aggregate1cfd724c still stopped at the descriptor-shape guard in5/5 runs; adding a helper without runtime integration did not advance startup. Two synchronized captures covered33,423,360 FMASK bytes, all
0x76543210. This is a raw byte pattern, not proof of effective identity sampling: later CMASK captures containedCC, which changes interpretation. That distinct correctness gap belongs to #3219.Earlier console-configuration uncertainty is superseded by the source/binary-correlated driver model in the DCC correction comment, still not a console hardware measurement. AI-assisted; original/baseline restored, no rendering claim.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-10T23:12:15Z.
Historical runtime milestone and corrected DCC estimate (main379d8b4e)
The first uncompressed-MSAA integration passed the descriptor-shape refusal and reached
compressed multisampled texture snapshot is not implementedin three conditional title runs:28.811/29.256/29.187s. This was AGC-only with119 other libraries identical, not completed startup. Current implementation, tests and limits are maintained in the issue body.Correction: the original2,088,960-byte DCC estimate assumed a maximum of eight compressed fragments. Texture fragments alone do not establish this. The source/binary-correlated two-compressed-fragment model yields552,960 bytes; evidence and limits. Do not use the old estimate as the title's metadata extent. AI-assisted; no gameplay or console-equivalence claim.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-10T23:27:04Z.
Retained correction: DCC size and CMASK interpretation
The maintained current solution, tests and startup comparison are in the issue body. This comment preserves the correction to earlier estimates and the distinct source/binary evidence.
Unchanged PAL GetMetaBlkSize limits metadata sample bits by the compressed-fragment limit. For3840×2160/64-bit/8-fragment R_X, the tested limits1/2/4/8 produce294,912 /552,960 /1,044,480 /2,088,960 DCC bytes. The old largest estimate was not justified by the texture's eight fragments.
The original ELF contains Mesa revision
0b2d6d1a61d9bbf89cf8beb88a696144f67c61f8, matching the public PS5-port build script; exact title-source revision is unconfirmed. Static inspection confirmed the0x00100044setter and dataflow into the driver's GB configuration, matching pinned winsys. Its compressed-fragment limit is two. PAL with this config/revision82 gives552,960 bytes,5/5 checks; wrong-limit control caught. This is compiled-driver/source correlation, not measured console layout.Two earlier oversized captures hit an unreadable page557,056 bytes from the base. That readable tail is4,096 bytes beyond calculated DCC; its purpose is unknown. Mapping size alone never proved the configuration. Complete historical color captures were zero and could not distinguish fragment permutations. PAL's public multisampled DCC address API remains unsupported; no single-fragment substitute was used.
Two later complete CMASK captures:81,920 bytes all
CC; raw FMASK remained the expanded identity pattern. PAL definesCC as DCC fast-clear/FMASK pointers zero. Raw FMASK identity is not logical identity. Separate emitter/model finding: #3219.Validation correction retained: presence-tested flags remain enabled when set to empty. One supplementary capture/restored control was excluded and repeated with flags genuinely absent; readable-color/metadata observations and refusal reproduced. The external harness now rejects empty controls (13 negative preflights). Historical logs remain archived.
Subsequent uniform-DCC snapshots passed the color guard; current evidence is in the issue body, fresh depth gap in #3262. Temporary diagnostics removed and original/baseline restored/hash-verified. AI-assisted; no console/gameplay claim. Earlier local-only status was historical; reviewed experimental work is now preserved in the fork without new PRs.
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-12T10:07:19Z.
Another title that reaches this: ProsperoPuzzles (PPSA99006), an open-source catalog title on blackbearreloaded/ps5-opengl. On
mainit stops one draw earlier, on its single-sample scan into a 4x color target (CB_COLOR0_ATTRIB0x00012000,PA_SC_AA_CONFIG0,MSAA_ENABLEoff). #4414 handles that, and the title then stops here when it samples that 4x image:Windows 11, RTX 4070,
main9bc36235+ #4414. It's free to download, so it may be an easier check than PPSA99902 for whatever lands for this.Imported from boykopovar/AnyPS5. Originally posted by nicolasabosch on 2026-10-12T22:21:32Z.
I have a branch for the narrow case ProsperoPuzzles (PPSA99006) reaches here, and I'd like to check it does not collide with @Amoenus's work before opening a pull request.
Scope. Only this: a shader loads from a 2D multisampled image whose T# (type 14) names a color target that draws on the host rendered with the same size, format and sample count.
DescriptorBindingBuildergives a 2D multisampled image its own descriptor shape instead of throwing. Multisampled arrays still throw.DecodeTextureResourcedecodes type 14, with the sample count fromLAST_LEVEL(andMAX_MIPrequired to hold the same value), asac_build_gfx10_texture_descriptorwrites them in Mesasrc/amd/common/ac_descriptors.c(1e2c42b6).Not in it. Everything the PPSA99902 work in this issue covers stays as it is and keeps throwing: multisampled textures that are not a host-rendered target (CPU-written samples, snapshots), FMASK, CMASK/DCC-compressed samples (a pending CMASK fast clear throws), EQAA, multisampled depth, multisampled arrays, storage access, and sampling the target a draw is rendering to.
Tested. Windows 11, RTX 4070 Laptop, WinLibs GCC 15.2.0 r7, Release, on
mainee4962190(fullctest: 1019 passed, 8 skipped, 0 failed):image_load; each of the 1017 samples clear of the triangle's edges matches the triangle's coverage at that sample's location.multisampled image resources have no descriptor image shape. It does not present yet: its next stop is the multisample guard range covering a neighbouring surface (a CPU read of 0x21f400000+0x90000 overlaps multisampled color target 0x21f200000+0x240000), which #4199 addresses. I did not test with #4199.@Amoenus, does this overlap with what you plan to submit, and would you rather it went in first, after yours, or not at all?
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-13T03:38:51Z.
@nicolasabosch Sorry for the delayed reply. I see this is now #4820; please proceed independently. I would prefer that narrow, current-main contribution to land first, then adapt our remaining work around it.
There is shared implementation territory—MSAA descriptor shape/type-14 decoding and the sampled-resource lookup—but our broader fork is not an upstream PR that your change needs to wait for. Your direct view of an existing host-rendered target differs from our sample-preserving guest uploads and immutable native snapshots, including the additional metadata-clear/coherence paths described in this issue. I will avoid submitting a duplicate of your supported subset.
I checked the current #4820 diff (
cc63a8c81). Its explicit refusals and exclusion of multisample-source resources from template reuse preserve a useful boundary for later work. Shared lookup/target code will need reconciliation when carrying the broader paths; that is integration work, not a dependency on our fork.For PPSA99902, our captured resource is RGBA16F, 3840×2160, eight fragments, with CMASK/DCC transitions. The recent conditional run also exposed target-address reuse; that investigation and #4474 validation are maintained in the bring-up report. Your 4x target test and PPSA99006 result do not establish those additional cases, and I have not independently built/tested #4820 or combined it with #4199 yet. No request to expand your PR to cover them.
AI-assisted investigation/reporting: Codex.