Shader: MIMG sampler tuple s104/s105/VCC is refused (PPSA99902 conditional startup) #4991
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-13T07:26:31Z.
MIMG resolved: #4996 merged. The separately confirmed MUBUF/MTBUF buffer-descriptor gap and focused proposal are maintained in #5630. Historical MIMG and conditional title evidence remain below; this issue stays closed for the resolved MIMG topic.
Proposed buffer-descriptor correction (2026-10-14 UTC)
Focused fork candidate, based directly on main
19785b50e9e4e1afe3ef5c4b45e0786c2caf1251: three production lines admit only the four-dword buffer descriptor at s104, comprising s104/s105/vcc_lo/vcc_hi. The ordinary SGPR limit and refusals for higher buffer bases remain unchanged. This touches the shared MUBUF/MTBUF memory decoder, separately from #4996's MIMG decoder; it has no functional dependency on that PR.The LLVM VCCTuple/SReg_128 definition supplies the mixed tuple, and buffer operand classes use SReg_128_XNULL. AnyPS5's existing buffer-resource translation already reads scalar codes106/107 as the raw VCC words; the candidate adds no generic128-register interpretation.
77ea8f03223bfc5c04afd214b41d48273892a888) with the identical final fixtures fails both CPU and GPU cases on each GPU atMTBUF resource descriptor register range overflow. The three-line candidate is restored exactly afterward.Title effect is not confirmed. The observed game instruction's fields remain unavailable, and earlier GPU submission timeouts remain unexplained. This is a tested public synthetic candidate for the decoder boundary, not proof that the title uses this tuple. No shader observer/capture, game asset or raw gfx10/gfx1013 hardware measurement is involved. A controlled title comparison is the next check before upstream promotion. AI-assisted: Codex.
Fresh replay checkpoint (2026-10-14 UTC)
On main + local patches, fork integration
78204b40d2921be6f47ef01adf50f903f9ad7386, based on maind1670009fbfdfe57f8f26ee09ced77fe6b18c2ca, PPSA99902 displays the opening cinematic and stops atMTBUF resource descriptor register range overflow. The original ELF and guest libc were freshly converted with the rebuilt, frozen integration runtime. Windows 11 Enterprise 26200 / RTX 5080, driver 610.62.The process exits
0xC0000409after 841.377 seconds, without the 1080-second timeout; 60 GPU readbacks are archived locally. No MIMG descriptor-range exception appears in this log. Before the MTBUF exception, GPU submissions 37766–37771 fail to advance beyond 37765 within 10 seconds. Their relationship to the descriptor refusal remains untraced. Six 300 ms input pulses were issued; consumption was not logged. The last captured frame still belongs to the cinematic; menus and gameplay are not confirmed by this run.The public
RdnaMemoryOpDecoder.cppin this integration is byte-identical to mainfeddf7f4c654112663b7576c8a1bc3b87657396d(Git blob77ea8f03223bfc5c04afd214b41d48273892a888). Its four-wordscalarDescriptorBaseguard refuses ranges past s105. The failing title instruction's fields are still unavailable: this replay reproduces the already reported MTBUF frontier and does not establish which operand is valid or justify enlarging the bound.The harness verified original dump/modules, baseline runtime and guest libc, saved user data and source restoration, with zero cleanup errors. All 60 archived frames were hashed; no shader/register observer or capture was enabled. Existing synthetic validation for the retained integration remains in bring-up #4443. No unchanged-main title, gameplay, console-equivalence or performance-improvement claim.
Observed refusal
Sonic Unleashed Recompiled, PPSA99902/01.003.000, reaches:
This title observation is on the private native-MSAA/depth-retirement integration42aebfe20, with the startup prerequisites in bring-up #4443. The native-depth history and before/after/restored controls remain in #3262. It is not an unchanged-main title run.
A refusal-only scalar observer, preserving the original exception/read bounds, captured one
image_sample(opcode0x20,2D,NSA0):0x20ba534000x260/152The current guard rejects
sampler + 4 > 106. Resource72+8 fits; sampler104+4 triggers it. The fields were independently recomputed from the already-copied instruction words. The observer ended after787.253s/59 private readbacks, exit0xC0000409, without the1080s timeout. Six scheduled300ms input pulses were sent; consumption was not logged. No submission-stall/fence-failure diagnostic appears in this observed run. The earlier uninstrumented42a run did log those before the same exception; their cause/relationship remains untraced.Only AGC changes for the observer;123 other runtime modules are byte-identical to production42a. The observer passes full build/libraries,26 selected groups x5 before and after exact source restoration, and full NVIDIA1036/0/8 of1044 (max22.770s). Production source is restored before the title replay. Originals, converted executable, exact baseline runtime/guest libc, saved user data and archived readback hashes are independently rechecked afterward. No game/shader assets are attached.
Current-main decoder control
Exact main
c2565f014912f1f43f7b289fbad02cbf8fab1d93RdnaImageOpDecoder.cppand its three headers were fetched at that commit and compiled in a separate external directory with Windows11/WinLibs GCC15.2r7, C++20/O2. No private production file or GPU is involved:SSAMP26to25 (sampler base104 to100) decodes asImageSample, preserving resource72. This is an offline control, not a guest modification.A smaller synthetic reproduction with resource/coordinates/output at zero is:
Pinned rejecting guard.
Source evidence /fix direction
AMD's RDNA1 ISA guide,3.6.2 and8.2, distinguishes106 normal SGPRs from VCC stored at106/107 and describes quad-aligned four-dword sampler operands. That does not justify a generic128-register limit.
LLVM provides the more specific tuple model: VCCTuple/SGPR104_128 combines s104/s105 with vcc_lo/vcc_hi; SReg_128 registration includes it, and gfx10 MIMG sampler operands use that class. The merged LLVM #173870 has gfx10 tests for mixed SGPR/VCC tuple loads. Its newer model is absent from the older LLVM18/20 register definitions checked here. No independent LLVM assembler run or console/gfx1013 hardware measurement is claimed.
Suggested investigation: support the explicit mixed tuple with correct VCC component definition/use and resource capture. Check wave32/wave64 VCC halves, scalar tuple writes and sampler resolution, retaining refusals for unresolved cases. Merely enlarging the bound would not validate alias semantics. This boundary is now covered by @MarcZX100's #4996; we will not submit a duplicate fix. Our independent validation checks unchanged head3e238ff11 with full build/libraries/checkers and eight relevant groups x5 on NVIDIA and AMD. Full NVIDIA is1029/3/8 of1040; all three residual failures reproduce on matched parent main and restored PR head, with the loader failure covered by merged #5014 (not independently retested here).
Supplemental native/CPU tests and hardware debt are pushed to our fork directly on top of that PR head, without another production change. Sample/gather/get-lod CPU alias checks and all encoded out-of-range bases are covered; the native fixture checks bilinear and nonzero white-border VCC halves in wave32/wave64, all64 lanes. Nine relevant groups x5 pass on both GPUs. Separate zero-low/zero-high controls fail their expected result, original source is restored exactly, and full build/libraries repeat. Both fixtures fail the descriptor guard on unchanged parent main. An initial fixture-only legacy SOP1 encoding failure remains archived; the validated fixture uses RDNA s_mov_b32 opcode0x03. These are recompiled AnyPS5 tests, not raw console/gfx10 hardware execution. The conditional integration now passes full build/libraries/checkers,26 relevant groups x5 on both GPUs, and full NVIDIA1037/0/8 of1045 (max23.804s). Its exact124-module frozen profile loads x5; only AGC differs from42a,123 other modules are byte-identical, and AGC named imports match. The guarded comparison is complete: prior42a stopped at
MIMG descriptor register range overflowafter807.203s/59readbacks; the credited-fix profile stops atMTBUF resource descriptor register range overflowafter792.920s/59readbacks, with no MIMG range exception logged. Both exit0xC0000409 without the1080s timeout and send the same six300ms pulses (consumption unlogged). The new run also logs GPU submissions36322/36323 not reaching36321 in10s and fence error0xFFFFFFFC before the MTBUF exception; their cause remains untraced, as in the earlier uninstrumented42a run. Protected originals/executable, exact baseline runtime/guest, saved user data, all59 archived readback hashes and source cleanliness are independently rechecked after restoration. This is a changed decoder frontier on a conditional integration, not unchanged-main startup, raw hardware equivalence, gameplay, rendering accuracy, FPS or a speed improvement. MTBUF instruction fields are not captured yet, so no new missing-capability claim or issue follows solely from this refusal. The earlier submission/fence cause remains untraced.Exact-message, sampler104, sampler/vcc_lo and MIMG/VCC searches found no matching existing capability report/open fix; #757/#758 concern runtime descriptor tables, and #750 concerns a VCC global-address operand. Those do not establish this tuple's support. This issue separates the reproducible decoder boundary from #3262's private depth work and the unresolved GPU failure.
AI-assisted investigation, synthetic controls and reporting: Codex. Author responsible. No FPS, gameplay, rendering-accuracy or console-equivalence claim.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T08:39:59Z.
I checked the referenced head: #4996 is still at
3e238ff11d03beedfc9b224f6c749fd2a4f393ab. Its Linuximage_sample_gatherregression passes (1/1), including the s104 decode/resource-index assertion and rejection of base s108; conventions and diff checks also passed after the rebase. I have not run the additional native fixture checks, a GPU run, or PPSA99902 on this head, so I cannot claim those results or title progress yet. The PR description keeps that boundary explicit.