AGC: sampled MSAA surface geometry omits fragment storage #6439
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-15T15:24:01Z.
Summary
DescribeSurfaceuses single-sample mip geometry for a sampled MSAA T#. Its reported guest-memory range omits most fragment storage.ShaderResources::precollectImagesuses that range for write collection and resource records.This is a CPU reproduction using the already-public Sonic Unleashed Recompiled descriptor from #3036 (PPSA99902, 01.003.000), not a new game run or identification of its current loading-stage failure.
Version and setup
Main
ff23657f3437427fc5421857a6f9545e41806f2c; Windows 11 Enterprise 26200, WinLibs GCC 15.2.0 r7, Release/bundled dependencies. The geometry assertion is independent of a GPU.Actual and expected
DescribeSurface().guestBytes0x3fc0000)0x1fe00000)0x90000)0x190000)For Sonic, Addrlib gives 32×32-pixel blocks, pitch 3840 and padded height 2176. Multiplying a single-sample allocation by the sample count is not a general correction: fragment-dependent block orientation and padding matter, as the 297×297 case shows.
The public descriptor is:
Reproduction and reference
Unmodified main production plus seven assertion lines in
tests/GuestTextureResource.cpp, local test commitfaae9e53fc0bc2d4e26dad6c8f6d40d5d4ee57ad:agc_driver_graphicsfails 5/5 fresh processes at:The expected allocation follows pinned AMD Addrlib
ComputeThinBlockDimensionand its macro-tiled surface sizing. IndependentAddr2ComputeSurfaceInfocalls reproduce these values with chip engine0x0d, family0x8f, revision0x82,GB_ADDR_CONFIG=0x00100044, 2D/one mip/one slice andnumSamples=numFrags. Permitting metadata or settingnoMetadata=1gives identical allocation sizes in this probe. This is published-source consistency, not raw PS5 hardware measurement.Related scope
#4199 corrected the native target's guest-access guard; this defect is in the separate sampled-resource geometry helper. #3036 remains the broader bring-up report. #6297 extends undrawn Z/D imports, and #6280 caps host mip chains; neither implements fragment-aware
DescribeSurfacesizing.The focused correction is proposed in #6445, rebased fork commit
f32f6797a, on main44df. Production and fixture blobs are unchanged by the rebase; its sole conflict was debt-entry placement. The exact head passes the ten-group/five-repeat matrix under both GPU selectors, nine groups on each verified physical GPU and graphics on CPU/mock. The current-main test-only control3c5d15c811d67f1d3440111b7c945de077bc9848fails 5/5 fresh processes per selector at the captured footprint assertion.The current production DLL repeats all 1,440 matching pinned Addrlib comparisons; Cppcheck/clang-tidy report no selected diagnostics. Full Windows app/libs/checkers pass on separate composition
55d75837b69c040159ee0cd4a4b2e5c52e0da410, adding only #6452 for the existing Windows test-build alignment problem. The PR declares that dependency and its exact source pins, devices and limits. No new startup or performance result is claimed. Equivalent #6444 is being consolidated with its author, as linked below.AI-assisted: Codex; author responsible.
Equivalent implementation #6444 is also open. Consolidation with its author is requested; #6445 retains the broader tested controls, but the final landing choice is not agreed yet. No separate implementation is needed for this issue.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T15:43:03Z.
I opened #6444 with the fragment-aware
DescribeSurface()sizing and a CPU regression using the existing PPSA99006 4× canvas fixture. The production geometry and descriptor decoder compile independently with GCC 12, and a standalone harness using those production objects returns0x190000. The full graphics test target still stops before linking on the unrelated GCC 12 parse error inSrtDescriptorEvaluation.cpp:183. The PR has been rebased to currentmain; conventions, eligibility, intake and report checks pass, with platform build checks skipped.