Shader: MUBUF/MTBUF buffer descriptor s104/s105/VCC is refused #5630
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-14T02:25:16Z.
Observed decoder refusal
MUBUF/MTBUF refuses the valid four-dword buffer descriptor at s104, comprising s104, s105, vcc_lo and vcc_hi. This is separate from the MIMG sampler boundary in #4991, fixed by merged #4996.
The original memory decoder is unchanged on checked main
a14ae8e232b100eab53c6cdce0676ff167fd137b(Git blob77ea8f03223bfc5c04afd214b41d48273892a888). ItsscalarDescriptorBaseguard rejects the last two words because they lie past the normal SGPR range.Public reproduction
This GFX10 format-22
tbuffer_load_format_xcontrol throws:Using resource25/s100 instead decodes. MUBUF has the same buffer-descriptor boundary.
Source evidence and proposed solution
LLVM defines SGPR104_128 as a mixed VCC tuple, included in SReg_128_XNULL used by buffer operands. Existing AnyPS5 buffer-resource translation already maps scalar codes106/107 to the raw VCC words.
Upstream PR #5648, tested fork source943d362d2: three production lines admit only this four-word s104 tuple. The normal SGPR bound and higher-base refusals remain unchanged. No MIMG implementation is copied; no functional PR dependency.
Validation
Windows11 Enterprise26200 / WinLibs GCC15.2r7 / Release / SPIR-V validation enabled.
Title connection and limitations
Matched Sonic Unleashed Recompiled/PPSA99902 comparison, main1978 plus retained local prerequisites: control86df4c5ad stops at the MTBUF refusal after649.304s; candidate2bd6889f5 passes that boundary and stops after797.332s at:
Only libSceAgcDriver differs in the installed profiles; all other bytes, converted executable/guest libc and input schedule match. Seven metadata-only rebuilt PE outputs retain their control bytes. Both exit0xC0000409 without harness timeout; originals/runtime/user data restore exactly, cleanup errors empty. Input consumption is unlogged. This validates decoder-frontier progress in the conditional integration, not unchanged-main startup, menus, gameplay or speed.
The next guard is maintained in #3036 and bring-up #4443. The title's instruction fields were not inspected. These are public synthetic/emulated tests, not raw gfx10/gfx1013 measurements; no game assets or captured shaders are attached.
AI-assisted: Codex; author responsible.