AGC: SW_64KB_D_X color target refused during PPSA99902 conditional startup #2970
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-10T19:07:31Z.
Observed implementation gap
Sonic Unleashed Recompiled, PPSA99902, 01.003.000 reaches
AGC graphics: unsupported color tile modeafter the existing raw-graphics proposal #1732 plus a local correction of its required mixed-usage policy. This is a conditional local startup result, with other local prerequisites; unmodified main does not reach this draw.Pinned main for the independent AGC build:
1476f76941a789690fd0f9c84c1cc929bb6fe262. PR #1732 head:00fcac677eda65daa66e8498364a71f3e57e8d08; unpublished local correction:7c2a34b64099e597403e80c182c422056992dd24. Full prerequisite/validation report and controlled comparison. The conditional runtime starts from local stack1c2b72a0941314b063e0993f4c74b05dc67d72dfon bf6-main and changes onlylibSceAgcDriver.prx. The bf6 relinker source is unchanged at main1476; the verified strict-filter executable and guest libc were retained.Captured descriptor and stop
Five strict-filter runs reached raw vertex/pixel preparation and rectangle variants, then this refusal (
0xC0000409). Two further runs with conditional logging immediately before the unchanged tile-mode guard captured identical values:Diagnostic-run durations: 6.868 and 6.725 seconds. The diagnostic uses already-read fields and performs no additional register reads. It leaves descriptor validation, tile calculations and rendering behavior unchanged. Its runtime profile again changes only the AGC driver from the preserved comparison profile.
Current
DecodeColorTileModepermits modes0,5,9,0x15,0x16,0x1b;0x1ais explicitly refused. AMD addrlib's enum identifies value 26 asADDR_SW_64KB_D_X. AnyPS5's texture mapping already mapsTextureTileMode::kD64KBXto 26, but its color-target enum/layout mapping has no equivalent entry. This identifies the observed refusal; it does not verify all subsequent descriptor fields or console storage behavior.Independent reproduction and control
An external compiled C++ probe calls the actual decoder directly. In 5/5 runs:
throws exactly
AGC graphics: unsupported color tile mode. A control changes onlyCOLOR_SW_MODEfrom0x1ato already-supported0x1b, retaining every other bit:returns
ColorTileMode::RenderTargetin 5/5 runs. These are decoder probes; the control descriptor was not substituted into the title.Related work and scope
SW_64KB_D_Xcolor targets.SW_64KB_D_Xtextures; they do not add this color-target mapping.Supporting this mode would need the color-target enum/mapping, block layout/equations, pipe/bank XOR, transfer and resident-image paths validated together, including applicable mip/view cases. The existing texture equations may provide a starting point. The current explicit refusal is consistent with the contribution rule for unimplemented behavior; no acceptance-only workaround or speculative pixel-layout change is included here.
Validation and limits
Windows 11 Enterprise 26200, RTX 5080, WinLibs r7 GCC 15.2.0, Release,
BUILD_TESTING=ON. Full system libraries built for the corrected proposal, with all 15 relevant AGC groups passing five repetitions before/after four mutation controls; no skips, maximum restored test 4.03 seconds. For the temporary observation and byte-exact source restoration, full libraries rebuilt and six relevant graphics/registration groups passed 5/5 both times, each below 30 seconds. Conventions and test registration passed on the clean corrected branch.Main1476 standalone startup stops earlier at missing
fork(cjt-4ySmYTs) in both filter modes; the conditional profile's default-filter stop remainspathconf(oc98+zOImus). Rendering, gameplay, physical audio, Linux and console behavior have not been verified.Original unwrapped
eboot.binSHA256:c34f5b0848ef49e96a855076d8254254047e966e4fe56589d0e504fe13828479. Original dump preserved; all 123 baseline runtime-library files and guest libc restored and hash-checked. This integrity claim excludes title-generated mutable configuration/cache files. Logs, immutable profile manifests, probes and the reverted diagnostic patch remain local outside the repository. No new PR or branch push. AI-assisted investigation: Codex.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-10T19:32:48Z.
Merged correction and current-main native validation — 2026-10-13
#4318 was merged at
6f438a1c2. The original unsupported D64_X color-mode decoder/layout refusal is resolved by that merged correction. Latest PR head and rebase validation remain in its existing report, including unresolved AMD controls; those are not silently converted into passes.A private synthetic replay of the later captured D64_X / RGBA32_UINT / 128x64 / ten-mip / XOR0x4000 state passes 5/5 on RTX5080 and 5/5 on AMD1002:13c0 using unchanged main
5f01c8082's normal resident path. Each run draws into mips 2, 3 and 1 and checks every surface word after canonical guest-memory readback, including untouched mip/padding contents. The descriptor and control limits are maintained in #4328.This closes the narrow original tile-mode refusal. It does not claim a new clean-main title launch, gameplay or PS5 measurement. The conditional game's remaining MSAA/residency work stays in #4443; the older integration needs refreshing before another game run. Forcing the existing no-resident diagnostic still reaches the packed-tail fallback guard, but normal main passes that captured state, so the old integration stop alone does not justify a new routing PR.
The historical comparisons below retain their original revisions and conditional-runtime scope. AI-assisted: Codex.
Local validation: display XOR color mapping and startup comparison
An unpublished local implementation now gets PPSA99902 past the reported color-tile refusal. This is still a conditional diagnostic stack, with the existing startup prerequisites and the corrected empty-registry raw-graphics policy; it is not a claim that unmodified main starts the title.
Pinned main:
4a747c4872814908702fe81db6a20405a53a07d7. Independent color branch commit:ad49f9861a3fd1b08d16738c106ed7ca7f200e56; integrated local stack:0f86464e9b7f60434ad49370bab8d2c5ab703b87. The refreshed stack before the color change is528c98ab7d975a03861929269ecbc06737710b68. Rebuilt the current relinker and reconverted the original executable and bundled libc in isolation; their hashes match the earlier verified conversions.Implementation: add
ColorTileMode::D64KBX = 0x1a, accept it in the existing decoder, classify it as an XOR mode with 64 KiB blocks, and map it to the existingTextureTileMode::kD64KBX. The CPU layout uses the existing texture equations, with a distinct equation-cache slot fromSW_64KB_R_X; the existing mip/array-view and resident-image paths receive the correct texture mode. Existing invalid-resource, FMASK, alignment and unsupported-path guards remain. No descriptor substitution, forced R_X mapping, silent fallback or new shader instruction semantics.The source basis is AnyPS5's existing texture equations and layout code. AMD addrlib's GFX10
ValidateSwModeParamspermits display swizzles for single-sample color surfaces, with resource-type restrictions; the mode masks include D_X. This supports the approach, not a physical console measurement. TechnicalDebt explicitly records the unmeasured console equations/render results.Tests: Windows 11 Enterprise 26200, RTX 5080, WinLibs r7 GCC 15.2.0, Release,
BUILD_TESTING=ON. Full system libraries built on the independent and integrated branches. CPU tests cover the observed descriptor, invalid FMASK/1D/XOR inputs, 1/2/4/8/16-byte elements, equation offsets across block boundaries, D_X/R_X cache separation, tiling round trips, guest-memory transfers, encoded XOR bases, and mip/array views. GPU tests draw and verify visible written/untouched pixels for D_X with XOR 0 and0x5600, through both resident and non-resident paths. The integrated selection also includes existing volume-texture tests; it is not new 3D color-render coverage.All 19 selected integrated groups passed five repetitions, with no skips; maximum 4.10 seconds per test. Four deliberate regressions were caught: removing decoder acceptance, sharing D_X/R_X equation caches, mapping D_X to R_X textures, and dropping D_X's XOR classification. Source restored byte-for-byte, full libraries rebuilt, and all three color groups passed five repetitions afterward. Conventions and test-registration checks passed. Full suite, Linux and console execution were not tested.
Controlled title comparison: preserved the 120-PRX pre-color profile and changed only
libSceAgcDriver.prx, with identical executable, guest libc and other libraries. Five strict-filter runs (9.311, 9.198, 9.123, 9.397, 9.185 seconds) pass the color-mode guard, then stop at:Restored pre-color controls before and after reproduce
unsupported color tile mode(6.747 and 6.811 seconds). Default filtering still missespathconf(oc98+zOImus). The next guard is similar to #2783; shader/workgroup classification and applicability of #1825 are being investigated before claiming the same cause. Related #1077 covers layered 3D color draws and does not add this mode in its current diff.No claim of presented frames, gameplay or physical audio. All 123 baseline runtime-library files, guest libc and original
eboot.binrestored/hash-checked; mutable title configuration/cache is outside that claim. Patch, test logs, immutable manifests and replay records remain local outside the repository. No PR or branch push. AI-assisted implementation and validation: Codex.Fresh confirmation on maina73 integration with guarded guest conversion (2026-10-11)
Confirmed the same mode on a newer, narrower startup integration: fork5cd5ea, based on maina73, includes validated locale/four minmax functions and old kernel prerequisites, without carrying the earlier local color/other graphics changes. This is continued explicit unsupported behavior, not an upstream color regression claim. Earlier filtered-stack progress relied on a subsequently removed guest-libc zero-return fallback; the current default-filter comparison uses the guarded production f609 relinker/fresh conversion and has no such bypass.
Five uninstrumented runs reach ELF guest entry and the color-tile refusal6.215–6.759s. Two further runs replace only libSceAgcDriver.prx in the same122-library profile, adding stderr logging of the already computed fields directly before the unchanged DecodeColorTileMode guard:
Both match,6.183/6.274s,0xc0000409, no timeout. No extra register reads, altered guard/layout or descriptor substitution. Current a73 guard still permits0/5/9/0x15/0x16/0x1b, excluding0x1a. The adjacent StorageTexture log's tile14 is a different texture and was not used to infer the refusing color mode.
Full integration build/all122 libraries pass; full suite824:812 pass/5 skip/7 failures, with existing Windows/GPU failures reported on #3411/#3291. Eight relevant kernel/math groups pass5repeats; source restored byte-for-byte/rebuilt and seven math/kernel/graphics groups each5repeats pass afterward. Original ELF/guest preserved and exact123 baseline runtime files/saved guest module restored/hash-checked. This reconfirms the missing mode under a current conditional startup stack; it does not establish every descriptor field, pixel layout, console equivalence or presented frames/gameplay. The prior local D64KBX proposal remains the next candidate to revalidate; no new PR/duplicate issue. AI-assisted validation/report: Codex.
Current-main source validation and a separate XOR test concern (
74981fa, 2026-10-11)Refreshed the prior fork D64KBX proposal ad49f98 onto pinned main74981fabe1c0fc56b561914beb027ddc9b07d358. Production changes apply unchanged; test registration/assertion placement adapted to intervening edits. Full Release build and all122 system libraries succeed; conventions pass. Current-base GPU/full-suite and fresh title comparison are still pending, so the earlier title results are not claimed for this refresh.
Added an external, independent compiled AMD-source check, rather than relying only on AnyPS5 equations/roundtrips: AMD PAL addrlib c5e800072a32f68b6ccc4422936d96167c6e0728, synthetic GFX10.1 non-RB+/16pipes/256-byte interleave, not PS5 measurements. Addr2ComputeSurfaceInfo and Addr2ComputeSurfaceAddrFromCoord match proposed D64KBX geometry/byte offsets over 140 configurations and536,940 address checks per run,5/5 passes:1/2/4/8/16-byte elements, extents1x1 through3840x2160 including block boundaries, legal XOR codes0/0x0f/0x40/0xcf. Switching the mapping to R_X or dropping XOR each causes an independent expected failure. Single-mip/single-slice coverage; full mip/array equivalence and console semantics remain unverified.
The stronger check also caught a pre-existing XOR input/test discrepancy in unchanged main: AMD masks column bits that existing AnyPS5 fixtures0x5600/0x3200 apply. Origin-only control reproduces25 discrepancies/45 comparisons,5/5; raw CB_BASE/PS5 handling still needs resolution. Detailed evidence and source links are now reported on existing PR1735. This is separate from the observed missing0x1a mode, and does not prove our title uses those bits or that legal XOR cases fail. The broader R_X coordinate sweep is also unresolved. I am revisiting the proposal's inherited test values before treating its validation as complete. No new PR or duplicate issue; AI-assisted validation/report: Codex.
Refreshed fork proposal and completed current-base tests (2026-10-11,3034273)
Pushed focused fork commit3034273d87c652fc00dc9851f7c378f0fc148ff6, branch codex/validate-d64-color-main7498, parent main74981fa; remote ref and all7changed Git blobs verified. The implementation retains the original D64 mapping/cache change. Corrected our new fixtures to legal byte XOR values0x4600/0xcf00/0x0200 and added ten fixed AMD-source expected offsets at127,63 and256,128 for257x129 surfaces,1/2/4/8/16-byte elements, XOR0x4000. No general reserved-bit masking change; inherited uncertainty is explicit in TechnicalDebt.
Windows11/Winlibs GCC15.2r7/Release/RTX5080, Vulkan required/no shader cache:
ctest --parallel2 --timeout30: 833 tests,822 passed,5 skipped,6 failed,196.45s. windows_exceptions exits0xc0000409; flat_apertures0/2/3/4/5 time out. Serial recheck repeats Windows failure and flat_apertures0 timeout; depth_fast_clear_submit passes in the full run and serial recheck. These are observations, not a bisect or proof of a fix for existing Windows/GPU issues.The broader R_X cross-block64/128bpp CPU offset discrepancy is now isolated with legal codes and a5/5 source-controlled correction, reported in new issue3475, separate from this missing D_X mode and the reserved-bit discussion on PR1735. It does not establish that our dump hits those R_X cases.
Original ELF/guest-module hashes, saved guest libc and exact123-file runtime baseline rechecked unchanged. Fresh title comparison on this newer base is still pending; the earlier default-filter mode trace remains the current title evidence. New upstream Sony CRT and real truncate/link implementations must be retained in the refreshed experimental stack before a controlled D64-only DLL comparison. No new PR; all code remains fork-only. AI-assisted implementation/validation/report: Codex.
Completed newer-main default-filter D64 comparison (2026-10-11, main0f863)
Refreshed the narrow integration onto main0f863c102207dae4b77b1a2bad16c3aedec34691. Before-color fork219765d carries the validated four min/max functions, #1912 pthread attributes/query-scope guard, and explicitly throwing temperature/pathconf/symlink prerequisites. Upstream's real truncate/link and merged Sony CRT locale remain unchanged; the older FreeBSD locale overlay and older graphics/NGG/dispatch/MSAA/BDA proposals were not carried.
After-color forkd8fd7c7 adds the exact focused D64 topic3034273; only the debt rows needed merge resolution. Experimental branch codex/experimental-ppsa99902-main0f863 is pushed to Amoenus/AnyPS5; remote ref/changed Git blobs verified. No PR created.
**Frozen driver-only control:**122-library baseline and122-library after profile differ only in libSceAgcDriver.prx, other121 files byte-identical, same default filtering/f609 guarded production executable SHA920f13ce... and freshly converted guest libc994a5ab8..., same environment/no shader cache. The full build relinked8 DLLs; that full profile was kept separately, and the controlled profile deliberately retains the other121 baseline DLLs.
All reach ELF guest entry, exit0xc0000409, no60s timeout. This proves advancement past this color refusal on the stated conditional stack. It does not establish presented frames, gameplay, console pixel equivalence or execution/ABI equivalence of every CRT export. The new guard is tracked by #3036; the original captured Pixel/binding5/format71 descriptor was not freshly recaptured here, so those older details are not assumed for these runs.
Windows11/Winlibs GCC15.2r7/Release/RTX5080/Vulkan required: full build/all122 libraries pass. Before-color11relevant groups each5passes; after-color13groups each5passes. Full integration suite 835:824 pass,5 skip,6 fail,196.62s: Windows unwind0xc0000409 and flat_apertures0/2/3/5 timeouts; part4 fails with device-lost teardown. Five math/CRT/CPU-GPU color groups each5passes again after the full suite. Conventions pass. Existing failures remain on #3411/#3291; no causal attribution to this topic or proof of their resolution.
Original eboot/guest-module preserved, exact123 runtime baseline and saved guest libc restored/hash-verified after all comparisons. Next work is the existing sampled-MSAA capability, without bypassing its rejecting guard or pretending multisample data is single-sample. AI-assisted integration/validation/report: Codex.