Repository navigation
Conversation
HtileMetadataBytes sized every PS5 HTILE as pipe-aligned, 32 KiB per 1024x512 block. A native multisample depth target whose HTILE is not pipe-aligned has 4 KiB meta blocks of 256x256 pixels (AMD addrlib GetMetaBlkSize with pipeAlign false), so the import read guest data past the metadata and refused when it was not the clear word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Cross-gen confirmation on real AMD — the non-pipe-aligned HTILE sizing fix holds across GCN5, RDNA2 and RDNA3.
GCN5 is the interesting gen here — its HTILE layout differs structurally from RDNA, and the AI-assisted: yes |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
One more title this changes, found in a regression check of the other native multisample depth titles I have (125 s each, Cross every 15 s, same machine):
So PPSA02801 no longer stops on #15600 at 8 s, and stops 2 s later on a different refusal that is not implemented. I have not traced why. My guess is that it also has HTILE that is not pipe-aligned, and that the guest stores which made it refuse under #15600 landed in the bytes past its real metadata. I have not shown that, so I am only reporting the change in behaviour, not counting it as progress. AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
- Head:
b015b6b844f63fade38b18ba75c27ea76877f66c, basemain. No merged-preview check. - No build and no tests. This review is static: I read the diff and the head through the reader.
- Reader calls:
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp 478 500
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp 1385 1425
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/tests/Graphics.cpp 2684 2700
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp 2388 2400
python3 repo_read.py search htilePipeAligned
python3 repo_read.py search HtileMetadataBytes
python3 repo_read.py search HtileFillCovers core/libs/prx/libSceAgcDriver/Graphics
- Read in full:
diff.patch,description.md,commits.md,manifest.json,files.json. - Changed files: five, as listed in
files.jsonunderreviewed. I read their changed hunks in the diff and the surrounding head code through the reader. I did not read the full text of each file. tests/Graphics.cppis too large for the review folder. I read its changed lines only (2684–2700).- I checked the new size arithmetic by hand: 1920×1080 gives 40 blocks of 4 KiB, which is 163840 bytes.
Results
| Check | Result | Note |
|---|---|---|
| Changed hunks, read statically | passed | No defect found in the changed code |
htilePipeAligned set before use |
passed | Set in State.cpp:490, used at State.cpp:530 |
| Pipe-aligned and single-sample sizes unchanged | passed | TargetHtileBytes keeps the old size |
| Build and ctest | not run | No builds in this review |
| Author's Curved Space runs | not run | Author-reported only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
- The 4 KiB per 256×256 block rule. The description cites AMD addrlib (
Gfx10Lib::GetMetaBlkSize). That source is not in this repository and I did not check it. The hardware claim rests on the author. - The author's test run: 1878 of 1880 pass on
bc8472965506plus this commit. Not reproduced. - The Curved Space (PPSA02817) runs: author-reported. Not reproduced.
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406is not changed by this PR. It still sizes the color DCC metadata with the pipe-aligned default. I did not check whether a non-pipe-aligned resource can reach it.- Other callers of the default size (
DepthSurfaceReuse.cpp,NativeDepthBdaClear.cpp,ImageTableReuse.cpp, and other tests) appeared only as search hits. I did not read them. - The checklist claim that no other open PR implements the same functions: not checked.
files.jsonliststests/Graphics.cppunderreviewed, while the manifest marks it too large. I read only its changed lines.
Sources
- None. No external source was checked.
To get this to a good state
Nothing is required.
Optional:
- Back the 4 KiB block size with the addrlib source or a hardware capture in the PR.
- Decide whether
MultisampleTarget.cpp:1406needs the same sizing change, in a follow-up if so.
…or's pipe alignment The load of a multisampled texture no draw rendered to read its HTILE with the pipe-aligned size whatever the descriptor's META_PIPE_ALIGNED bit, so an HTILE that is not pipe aligned was compared together with the bytes after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. On Fixed in Linux 7.2.14, RX 6650 XT, RADV, Release, on this branch: With this, AI-assisted: yes |
|
Game check of
No new refusal and no change in where either title stops. AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing blocks this; the points below are optional. I read the changed hunks and their callers, but not the full files, and the sizing rule rests on AMD addrlib, which is outside the repository.
What I ran
Head a3999695e0ff6fa34f297b91b6aa8e0b2c3a2cac, base main. I did not build or run the tests. Checks were done by reading the diff and the head through repo_read.py:
python3 repo_read.py search HtileMetadataBytes core/libs/prx/libSceAgcDriver
python3 repo_read.py search htilePipeAligned core/libs/prx/libSceAgcDriver
python3 repo_read.py search dccPipeAligned core/libs/prx/libSceAgcDriver
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp 480 535
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/tests/Graphics.cpp 2686 2700
python3 repo_read.py search metaPipeAligned core/libs/prx/libSceAgcDriver/Graphics
Results
| Check | Result | Note |
|---|---|---|
| Build and ctest | not run | Author reports 1878 of 1880 pass |
| New size asserts (Graphics.cpp:2694-2695) | not run | Arithmetic checked by hand: 40 × 4 KiB = 163840; 6 × 32 KiB = 196608 |
| Curved Space runs | not run | Author-reported only |
| Descriptor bit 19 decode | passed | Read at GuestTextureResource.cpp:216 and :355 |
Findings
Blocking
None.
Non-blocking
None verified.
Sources
Not linked. The sizing claim cites Gfx10Lib::GetMetaBlkSize in AMD addrlib, which is not in this repository.
Not verified
- The 4 KiB per 256×256 block layout for non-pipe-aligned HTILE. I could not check it against addrlib or real hardware.
- The author's ctest run and the Curved Space runs. I did not run them.
- Full-file review. For the seven files in
files.jsonunderreviewed, I read the changed hunks and their callers. I did not read the full text infiles/. - Other callers of
HtileMetadataBytesthat keep the pipe-aligned default (for example intests/DepthSurfaceReuse.cppandtests/execution/NativeMultisampleDepth.cpp). I did not check each one, and I assume they use pipe-aligned fixtures.
To get this to a good state
Nothing is required.
Optional:
- Cite the addrlib source for the 4 KiB block rule, pinned to a commit, so the layout claim can be checked.
- Say in the description whether the ctest failures
agc_driver_host_write_shadowed_unitandagc_driver_image_table_packed_guardsalso fail onmainat the same base.
|
Thanks. On the two optional points: Source for the 4 KiB / 256×256 rule. The two ctest failures. Both fail on AI-assisted: yes |
|
Ran the tests this PR changes, with the rest of the native depth set, with the Khronos validation layer on Linux and an NVIDIA GPU; the posted runs are AMD only. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
No new AI-assisted: yes (Claude Code) |
This reverts commit a399969. With it, PPSA06228 holds at 44 presents for about 55 s on every run (two of two, warm and cold shader cache), while the previous head and this PR's base render normally from the start, so the descriptor's META_PIPE_ALIGNED bit is not a reliable size for the HTILE that load reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I've reverted my follow-up What I found. In a six-title regression run of
So the second commit causes it. For this title the descriptor bit is evidently not a reliable size for the HTILE that the load reads (the target side takes its alignment from At AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
No blocking findings in the changed code. The points below are optional, and the review is not complete, so this is a comment, not an approval.
What I ran
- Head reviewed:
0366ff2096eff312eae0f604016f84aefad9078a(basemain). - Read the description, commit list, manifest and the diff hunks for the five changed files.
- Used
repo_read.pysearchoncore/libs/prx/libSceAgcDriverto find every caller of the HTILE size helpers, andcaton the depth decode inState.cppand on the import check inDepthSurface.cpp. - No build and no test run in this review.
Results
| Check | Result | Note |
|---|---|---|
| Changed hunks, logic | passed | Read against callers |
| HTILE helper callers | passed | One caller outside the diff, see Findings |
Build and ctest |
not run | Author reports 1878 of 1880 pass |
| Curved Space run | not run | Author reports two runs, not repeated here |
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp:98givesHtileMetadataBytesa defaultpipeAligned = true. Any new caller that leaves it out gets the old pipe-aligned size without a warning. The sampled multisample path incore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406is such a caller. It is outside this diff, so I have not judged it a defect.
Not verified
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp: this file is listed as reviewed, but its full text is not in the review folder. I read only the changed hunks fromdiff.patch, not the whole file, and did not read it through the reader.- The 4 KiB-per-256×256 size for non-pipe-aligned HTILE matches the arithmetic in the description (163840 bytes for 1920×1080). I did not check it against AMD addrlib.
- Whether the sampled multisample path at
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406should use the non-pipe-aligned size. It is not changed here. - The new positive test
HtileTailand the new size assertions were not run, so no negative control was run either. - The Curved Space results and the
ctestcounts are the author's, not mine.
To get this to a good state
Nothing is required. Optional: make the pipeAligned argument explicit at each call site, or drop the default, so a new caller cannot pick the old size by accident.
|
Thanks. On the AI-assisted: yes |
|
Windows + NVIDIA result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Validation-layer protocol on
The tests this PR adds or changes ( AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
The attachment reuse checks from boykopovar#17738 still used the pipe-aligned HTILE size, so a multisampled target that is not pipe-aligned could miss an HTILE clear that covers it. Use TargetHtileFillCovers and TargetHtileBytes there as well.
|
I pushed a merge of main and one fix on top. #17738 added attachment reuse checks in DepthSurface.cpp (DepthTargetObligation and the overlap check) that still used the pipe-aligned HTILE size, so a multisampled depth target that is not pipe-aligned could miss an HTILE clear that covers it. They now use TargetHtileFillCovers and TargetHtileBytes. The 138 depth, HTILE and multisample tests pass on Linux. Could you rerun PPSA02817 on the new head? |
|
Retested the maintainer-updated head Focused validation: Linux 7.2.14-arch1-1, GCC 16.2.1 Release, RX 6650 XT / RADV Mesa 26.2.7, Khronos validation 1.4.363. Full SDK and relinker builds completed for both, with optional SPIRV-Tools OFF on both.
Curved Space PPSA02817 v01.000: one fresh-save/cache run per build/output condition, identical Cross-every-15s/capture schedule. Each whole arm entered the normal host FIFO independently, with private overlay/runtime and frozen SDK. Normal close at 125 s; actual outcomes:
Both 1080p runs show the logo/splash in the ~10.4 s native capture and stop before any scripted input is actually delivered. Neither native route reproduced the older HTILE multiple-word refusal. The shared GPU fixture still demonstrates that range bug on main. So this is not a new title-unblock or FPS claim: current main already renders the 4K tutorial route, while the PR still stops on the 1080p route, with a different attachment-reuse guard. More evidence is needed to assign the cause of that differing refusal. The main 1080p publication message is at the branch that still rejects All four mapped AGC hashes match the appropriate frozen patched SDK. Asset/stage/bank/kernel checks, overlay unmount and no-leftover-native checks passed on every arm. No movement/combat, audio, PS5-fidelity or general playability claim. An earlier 110 s window capture still showed loading; the later 123 s native capture shows the arena, which is not a same-time comparison or proof that a capture channel was stale. Full logs, JUnit, shared fixture, CPU probe, source/module hash proofs and selected native captures — SHA256 One branch-metadata check remains: |
8a4914c to
dcc57b6
Compare
|
Fixed the conventions failure by changing the historical revert subject to This changes commit metadata only. The old head
AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Nothing blocks this review, but the remaining HTILE sizing path should be checked before merge.
What I ran
- Reviewed head
dcc57b6ebb46f7cf29f10ce781e25a07de4331ebusingrepo_read.py. - No tests or builds were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Core sizing and callers inspected |
| Tests/build | not run | No local execution |
Findings
Blocking
None.
Non-blocking
createFilledstill sizes descriptor-backed multisampled texture HTILE with the default pipe-aligned size, even though the descriptor exposesdccPipeAligned. If non-pipe-aligned metadata is supported on this path, it can retain the oversized read and reject valid contents past the HTILE range. Consider sizing from the descriptor’s alignment flag and adding a regression case. Changed reference:core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:4740.
Not verified
- No tests or build were run; the author-reported validation was not independently reproduced.
- Read:
DepthSurface.hpp,DepthSurface.cpp,State.cpp,Graphics.cpp(changed lines only), andNativeMultisampleDepth.cpp(changed section). Also read the review description, commits, manifest, and diff. files.jsonwas not available in the reader listing;Graphics.cppwas excluded from the prepared full-text folder due to size, but its changed lines were read through the pinned reader. Other excluded files: none listed.
To get this to a good state
Nothing is required. Optional: check whether descriptor-backed multisampled textures can carry non-pipe-aligned HTILE and, if so, use descriptor alignment for its size and cover it with a test.
|
Confirmed the earlier
AI-assisted: yes (Antigravity); the diagnostic, build, and runtime observations are from this machine. |
|
Windows AMD check of the exact head Setup: Windows 11 Enterprise 22621, Ryzen 9 5950X, Radeon RX 6700 XT (AMD driver 26.11.2), WinLibs GCC 15.2 UCRT r7, Release, Ninja, a private detached worktree at this head. Tests: every CTest entry of the two executables that compile this PR's changed test files, AI-assisted: yes. |
|
Two call sites in
Could you make both changes? |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The HTILE sizing changes have one remaining pipe-aligned coverage check that skips flushing pending depth writes for non-pipe-aligned targets.
What I ran
Reviewed head 10e7e0929612baf81c46dd60c12e20056c472987 using the prepared diff and repo_read.py source reads; no tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | failed | One missed coverage call site |
| Tests | not run | Contributor results are reported in the PR description |
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:4912:TargetHtileFillCoverscorrectly uses the target’s pipe-alignment setting, butNoteDepthMetadataFillstill uses the default pipe-alignedHtileFillCoverscheck before flushing pending plane writes (DepthSurface.cpp:4954). For a complete non-pipe-aligned HTILE fill, that check can fail to recognize coverage, so the pending depth plane is not flushed before the metadata clear is processed. Use the target-aware coverage helper at that call site too.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded from the review folder; its changed assertions were inspected in diff.patch, but the full file was not read. No tests were run. Contributor-reported test and title results in description.md were not independently verified.
To get this to a good state
Update the remaining coverage check in NoteDepthMetadataFill to use target-specific HTILE sizing, then rerun the focused depth/HTILE checks.
|
Addressed both requested calls in Review correction and Linux qualification (2026-11-25). Both requested call sites now use the existing target-specific helpers:
Same Linux machine, RX 6650 XT / RADV Mesa 26.3.1, required physical Vulkan and disabled shader caches. All physical cases show actual Khronos layer 1.4.363 insertion. Zero skips, VUIDs or synchronization-hazard IDs across these arms. Affected AGC outputs and fixture dependencies were built independently; this is not a complete SDK or fresh native-title test. The retirement case fails on the prior head and passes the repair. The expanded clear-order cases pass the prior head too: they add alignment coverage, not an independent negative control for the flush guard. The prior-head derived receipt corrects the verifier's CPU-only case classification using the captured executable registrations; its raw CTest log and JUnit are unchanged, and that arm was not rerun. Publication Overlap review found complementary layered-depth #24083 and GCN/PS4 multisample #25557 changes. Combining them must preserve per-target HTILE bounds alongside their slice-pitch/plane-layout changes. The scoped review does not claim every stale branch merges cleanly or has been built in composition. Source patches, four-arm build and test logs, CTest registrations/JUnit, binary provenance and recipes, SHA256 AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The inspected changes show no verified blocking defect; no checks were run for this review, so a formal approval is not justified.
What I ran
Reviewed head 10599e03bde84bed728139fd30e71b129c5d5f1e. No commands or tests were run. The description’s reported test results are author-provided and were not independently verified.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Target-specific HTILE sizing and call sites inspected |
| Tests | not run | Results in the description are author-reported |
| Negative control | not run | Not independently verified |
Negative control
No negative control was run as part of this review. The description reports a prior-head retirement-boundary failure and a passing repair, but those results were not independently verified.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
The sizing and call-site changes are in DepthSurface.cpp, with the slice offset change in State.cpp.
Not verified
Tests were not run. The full contents of the two test files were not read; only changed hunks and their surrounding code were inspected. Changed files inspected: DepthSurface.hpp, DepthSurface.cpp, State.cpp, tests/Graphics.cpp (changed hunk), and tests/execution/NativeMultisampleDepth.cpp (changed hunks). The full text of the latter two files was excluded from the review folder because of size.
To get this to a good state
Nothing is required. Optional: run the focused AGC graphics and native multisample depth tests on this head.
Superseabas
left a comment
There was a problem hiding this comment.
Follow-up on Windows for head 10599e03bd. My approval of 10e7e09296 missed the two call sites oneandonlydean found: my run showed the new array-slice check guards the slice size, but neither the flush guard nor the retire footprint goes through it.
Setup: Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (x86_64-ucrt-posix-seh, r3), Release full build, run from PowerShell with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. GPUs, each picked with ANYPS5_GPU: NVIDIA GeForce RTX 5070 Ti (621.01) and the Ryzen 7 7700X's integrated AMD Radeon (1002:164e, Adrenalin 26.10.2). Merged onto main c3aae2e8fb (clean merge), built together with #24781 and #24906, which touch other files.
agc_driver_graphics, the native depth and native multisample tests andsample_multisample_target:main37 of 37, and with this PR 37 of 37 in 2 of 2 runs, on both GPUs, includingagc_driver_native_depth_clear_supersedes_plane_writes. The only skip, on both sides, isagc_driver_native_depth_driver_queued_fill(Windows by design). NoVUID-lines.- Red check, not caught: with
NoteDepthMetadataFill's pending-plane flush guard back to!HtileFillCovers(target.htileAddress, target.extent, address, bytes), all 37 still pass on the Radeon, includingclear_supersedes_plane_writeswithpipeAligned=0. Its clear is exactly the 4 KiB non-aligned size, so the old guard should skip the flush there. The write must be superseded by another path in this test, so it doesn't isolate the guard. The fix reads right to me; this is only about what the test pins.
The code: NoteDepthMetadataFill's pending-plane flush now uses TargetHtileFillCovers, and surfaceFootprintOverlaps uses TargetHtileBytes. A search of the head finds no other caller that sizes a target's HTILE from its extent alone; the only remaining HtileFillCovers(..., target.extent, ...) is inside TargetHtileFillCovers itself.
AI-assisted: yes (Claude Code)
Met at 10599e0. Commit 0d2bc69 (fix(agc): use target HTILE bounds for clear flush and retirement) switched NoteDepthMetadataFill to the target-aware helper: both coverage checks there now call TargetHtileFillCovers (DepthSurface.cpp:4997 and :5034), and the plain HtileFillCovers is only called from inside TargetHtileFillCovers (:4956). cd945e6 adds a test for clear ordering with a non-pipe-aligned HTILE. This head has a PASS (HIGH, gate YES) filed after these commits.
|
Two data points from 2026-11-26 (Linux 7.3.5, RX 6650 XT, RADV Mesa 26.2.7, Release):
AI-assisted: yes |
Main's planeMappedUnder/htileUnmapped checks in NoteDepthMetadataFill are kept with this branch's per-target TargetHtileBytes and TargetHtileFillCovers; PlaneFault keeps both HtileTail and main's UnmappedPartialStencilFill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged current main ( Conflicts, all in
Linux/RADV, RX 6650 XT, Mesa 26.3.1, Release, on the merged head:
AI-assisted: yes |
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
The reviewed code supports the target specific HTILE sizing change, but approval is not justified because the full text of two changed test files was excluded from the review bundle and tests were not run.
What I ran
Inspected PR head 190f7f7740ec947d1e9c5b99861ba92cf825786d through repo_read.py; no tests or build commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and source inspection | passed | Reviewed all changed hunks |
| Tests and build | not run | No local execution |
| Full changed test files | not run | Excluded from review bundle |
Findings
Blocking
None verified.
Non-blocking
- For a formal approval, review the full text of
Graphics.cppandNativeMultisampleDepth.cppand run the focused checks for the new alignment and retirement cases.
Sources
Reviewed prepared description, commits, manifest, diff, and the included full text of DepthSurface.hpp, DepthSurface.cpp, and State.cpp. Also read the relevant changed ranges in Graphics.cpp and NativeMultisampleDepth.cpp; their full text was excluded because the files were too large for the review folder.
Not verified
The focused checks and build were not run. The full contents of the two excluded test files were not read.
To get this to a good state
Nothing is required. Optional: review the full excluded test files and run the focused checks before seeking approval.
|
Windows/AMD at this head ( The skip is Setup:
AI-assisted: yes. |
|
Exact-head recheck at
On the flush guard that no test pins (from the review above): I tried to write a test that fails with
So the guard can be reached only in states these tests cannot build. Its condition now uses the same AI-assisted: yes |
|
Windows test at head Setup: Windows 11 Pro, RTX 4080 SUPER (driver 621.14), WinLibs GCC 15.2.0, Release, Ninja. Head merged onto
Did not run New Joe & Mac or Curved Space. |
|
Refresh against current Setup: Arch Linux, RX 6650 XT, RADV Mesa 26.3.1, Release, complete app0 root, Cross pressed every 15 s from 30 s, 150 s runs. The game ran on a private Xvfb display with software present, so these FPS figures can't be compared with earlier desktop runs.
AI-assisted: yes |
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 190f7f7740. Windows 11, GCC 15.2, merged into main at cf556db18c3 together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).
- the 101 tests of
agc_driver_native_multisample_depth_testsandagc_driver_graphics_tests(one skips on both): pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline. - Control (same tree and tests, the changed files of those PRs put back to
main's): these don't compile without the newHtileMetadataBytesparameter, so the control only shows that.
Not checked: a title.
AI-assisted: yes (Claude Code)
ligmaSec
left a comment
There was a problem hiding this comment.
The trial merge onto a1b75b0947 was clean. I checked that slice addressing and metadata-clear coverage both use the compact HTILE footprint for qualifying multisample targets, while TargetHtileBytes preserves the old sizing for single-sample and GCN targets. The slice-2 decode control and the clear-ordering cases exercise different consequences of those changes. Paired graphics validation is pending.
AI-assisted: yes.
What
HtileMetadataBytes()sized every PS5 HTILE as pipe-aligned: 32 KiB per 1024×512 block. A native multisample depth target whose HTILE is not pipe-aligned (DB_HTILE_SURFACE.PIPE_ALIGNED0, which the import accepts for depth-only HTILE) then got a range up to several KiB past its real metadata. The import reads that whole range and refuses unless every word is equal. So guest data placed after the HTILE made the import fail.This sizes HTILE that is not pipe-aligned as 4 KiB per 256×256 block, the meta block AMD addrlib uses when the metadata is not pipe-aligned (
Gfx10Lib::GetMetaBlkSize,pipeAlign == FALSE:min(blockSizeLog2, 12), a 4 KiB block of 4-byte words, one per 8×8 tile). For a 1920×1080 target that is 163840 bytes instead of 196608. Pipe-aligned, single-sample and PS4 targets keep their size.TargetHtileBytesandTargetHtileFillCoverspick the layout from the target; the slice offset inState.cppuses the same size.The pending-plane flush guard and retirement footprint also use the target-specific size, so a whole unaligned clear flushes its planes and adjacent memory does not retire the depth surface.
Evidence
Curved Space (PPSA02817) stops about 16 s after launch on main with
native multisample depth HTILE that is not pipe-aligned holds more than one word. That is an 8-sample 1920×1080 depth-only target. A local diagnostic at the refusal showed:0, the cleared value;1d97fff0and00000002. Read as one 64-bit value, that is0x21d97fff0, the HTILE base0x21d980000minus 16.So the last 8 bytes are a pointer back to just before the HTILE, not HTILE words. The title's HTILE allocation ends before byte 196600, and the pipe-aligned size runs into data after it.
Tested
Review correction and Linux qualification (2026-11-25).
Both requested call sites now use the existing target-specific helpers:
NoteDepthMetadataFillusesTargetHtileFillCoversbefore flushing pending planes, andsurfaceFootprintOverlapsusesTargetHtileBytesfor the retirement footprint. This also addresses MarcZX10's 2026-11-25 changes-requested review of the same flush guard. The regression replaces one byte immediately after a target's metadata and verifies that its depth surface survives. The clear-order suite now exercises queued/landed writes with both alignment layouts.10e7e0929612with identical new fixtures (06e39c16e6b1)cd945e65038e)4b70bf1201696613a5bbb0e2Same Linux machine, RX 6650 XT / RADV Mesa 26.3.1, required physical Vulkan and disabled shader caches. All physical cases show actual Khronos layer 1.4.363 insertion. Zero skips, VUIDs or synchronization-hazard IDs across these arms. Affected AGC outputs and fixture dependencies were built independently; this is not a complete SDK or fresh native-title test.
The retirement case fails on the prior head and passes the repair. The expanded clear-order cases pass the prior head too: they add alignment coverage, not an independent negative control for the flush guard. The prior-head derived receipt corrects the verifier's CPU-only case classification using the captured executable registrations; its raw CTest log and JUnit are unchanged, and that arm was not rerun.
Publication
10599e03bde8has the identical complete source tree306c18f40ad4d9d29a487215e14279a8c0ecb62dand parent tuple as built integration6613a5bbb0e2; only the merge commit metadata/subject differs. The binaries retain their actual built commit identity. Pre-push conventions completed with zero errors; full logs are included. Earlier Windows and native-title evidence below remains pinned to its stated older heads, not this new publication. No FPS claim is made.Overlap review found complementary layered-depth #24083 and GCN/PS4 multisample #25557 changes. Combining them must preserve per-target HTILE bounds alongside their slice-pitch/plane-layout changes. The scoped review does not claim every stale branch merges cleanly or has been built in composition.
Source patches, four-arm build and test logs, CTest registrations/JUnit, binary provenance and recipes, SHA256
0ee3fa1dbc92f462796985907a70bdd20711cf05e53312433f4b75f50512755f; anonymous download and all 45 payload hashes verified. No game assets, binaries, saves or shader payloads included.Contributor Windows follow-up on
10e7e09296. Superseabas reports Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 Release, NVIDIA RTX 5070 Ti (621.01) and Ryzen 7 7700X integrated Radeon (1002:164e, Adrenalin 26.10.2). Their local composition merges this head onto main26508fa3f9and also includes #26174 and #26179. Main and topic report 36/36 focused checks in two runs on each GPU, with the shared Windows-by-design queued-fill skip explicitly retained and no VUID lines. Required Vulkan, shader-cache disabling and the Khronos layer were requested in their environment. Restoring the wrong pipe-aligned slice fallback makes the new graphics array-stride assertion fail. These are contributor-reported results for that composition, not a new author-run Windows or title/performance result.Fresh native New Joe & Mac confirmation (2026-11-23).
New Joe & Mac: Caveman Ninja (PPSA02801, 01.000.003), complete extracted assets, pristine saves, same Cross-every-4-seconds schedule from 15 seconds. One independently staged arm per pin, through the shared FIFO on Linux 7.3.5 / RX 6650 XT / RADV Mesa 26.3.1:
33bdd3d5d836native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store; before the first scripted input10e7e0929612The successful run reports 0 missing functions and 0 failed shaders. Both full SDK/relinker banks contain 830 hash-verified files; the actual mapped patched AGC paths, inodes and hashes match their exact source pins. Private normalized executable/bundled modules, protected original input hashes, bank integrity, overlay unmount, kernel setting and no leftover arm-native processes all pass. The incomplete LIZARD repack was rejected before launch; both arms use the complete
PPSA02801-app0assets.This directly confirms the earlier AGY title report at refreshed pins. It is a single-pair correctness smoke, with no FPS/speedup, directional movement, combat/progression, audio, console-fidelity or full-playthrough claim. Captures affect timing. These native runs do not enable Khronos validation; the separate focused qualification below supplies the VVL results. Main has only a black pre-abort X11 readback; scene claims use the candidate's native GPU frames.
Raw terminal and relink logs, run reports, input/capture records, full build logs, module provenance, recipes and selected native captures, SHA256
5e26ce32d565b0079b2cf7d16245ef9d60d2663c5ee7e187f16a6214402d9675; downloaded archive and all 51 manifest payload hashes verified. No game/module binaries, assets, saves or shader payloads included.Earlier-head Linux qualification (2026-11-23).
Head
10e7e0929612merges main33bdd3d5d836, preserving its HTILE mip-chain slice stride and mip offset while retaining target-specific sizing when no mip-chain stride is supplied. New CPU assertions cover slice 2 of a 1920×1080 2× MSAA target: 160 KiB per non-pipe-aligned slice and 192 KiB per pipe-aligned slice. Existing mip-chain goldens also pass.33bdd3d5d836, test-only adaptatione61f3044a0b210e7e092961235d3860d47faThe baseline backports the candidate native fixture with an API-compatible test-side size calculation; main production code is unchanged. Each full arm runs 35 physical Vulkan cases plus one CPU/mock graphics suite, using frozen source-matched libraries, disabled shader caches, RX 6650 XT/RADV Mesa 26.3.1, Linux 7.3.5, and validation 1.4.363. Actual validation loading is checked per GPU case (73 insertions per arm). No CTest skips, VUIDs or synchronization-hazard IDs. Two optional heap-mirror CPU subchecks are unavailable on both arms; they are not claimed as executed. The negative variant is CPU-only.
These are focused builds and synthetic correctness checks; no new native-title unblock or FPS result is claimed. Default
tools/check_conventions.pyand whitespace checks pass against refreshed upstream tracking main.Logs, JUnit, recipes, source deltas/bundles and module provenance, SHA256
a3e156a899ce544ab2f6151c0f48f9a804fa47f375d3c5f61b46822f9f95d053; all 57 manifest payloads verified after downloading the uploaded archive.Historical Linux retest (2026-11-19, named revisions below).
Retested maintainer head
8a4914c0a6c4against main8e158a83d9edon RX 6650 XT/RADV Mesa 26.2.7, Linux 7.2.14. Same 30 real GPU cases plus graphics CPU suite: main 30/31 with the expected non-pipe-aligned HTILE refusal, PR 31/31; no skip/VUID, validation 1.4.363 loaded. Additional overlap predicate probe: main 6/9, PR 9/9; the three metadata-tail range errors are corrected.Native Curved Space v01.000: both default-output runs (3840x2160 native captures) render the tutorial arena and close normally at 127 s. With only
APS5_OUTPUT_RESOLUTION=1920x1080changed, main aborts at 16.5 s on ambiguous same-value publication; this head aborts at 12.4 s on a native multisample attachment over a host-written owner of another identity. The older HTILE-specific refusal did not occur in these native runs. No new title-unblock, FPS, general gameplay or audio claim; the differing 1080p refusal still needs investigation. All four source/module/asset/kernel/cleanup guards pass.Historical evidence and captures (SHA256
08d16fdbe0a23c705bb041f50bbf0c6852bdcd6c0eccaa25896f8299e06e269f). Earlier evidence below remains historical to its named revisions. The later metadata-only correction published headdcc57b6ebb46, with the same source tree as this tested maintainer head8a4914c0a6c4. The historical revert subject now follows Conventional Commits, and hosted conventions passes. The revert itself and the maintainer-updated merge remain preserved; correction and tree verification.Linux 7.2, AMD Ryzen 9 7950X, AMD Radeon RX 6650 XT (RADV, Mesa 26.2.7), Release, on
mainbc8472965506+ this commit.agc_driver_graphicschecks the new sizes: 4 KiB per 256×256 block, 163840 bytes for 1920×1080, and a fill covering exactly that range. Pipe-aligned sizes are unchanged.agc_driver_native_depth_separate_stencilnow has a depth-only target whose HTILE is not pipe-aligned, with a different byte right after its 4 KiB metadata. It imports. The existing case with a different word inside the metadata still refuses.ctest -j 12 -R "agc|Agc|depth|Depth|htile|Htile|graphics|Graphics": 1878 of 1880 pass.agc_driver_host_write_shadowed_unitandagc_driver_image_table_packed_guardsfail on main too; open PRs already mention them.native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store(agc: a guest store of the same value can be lost while a native multisample depth publication commits #15600). Main (3894f2e1847and1403ec8de74) stopped at about 16 s on the HTILE refusal in all 3 of my earlier runs. Those main runs had fix(agc): start the color masks and viewport control at their reset values #16053 reverted locally, which does not touch depth import.So this does not make Curved Space playable yet; it moves it to #15600.
Contributor-reported Windows NVIDIA validation from @maskym: RTX 2070 SUPER results. All executed changed tests passed; the queued-fill case was explicitly skipped on that host. Both trees retained the same baseline failures and unavailable Windows test. Khronos validation was loaded and added no VUID errors. This is independent contributor evidence, not a run on our paused Windows host.
Title evidence (peer-reported, AGY on Linux; see comment 7076887816): on
main2fd48dd40c3with this PR (dcc57b6ebb) merged, New Joe & Mac (PPSA02801) gets past the 8.1 s native MSAA depth abort, whichPublishToGuestraises on a 1920x1080 2x MSAA depth target withhtilePipeAligned=0andhtileDepthOnly=1. It goes through Classic Modes → Arcade into Stage 1 gameplay (screenshots reviewed), with 0 missing functions and 0 failed shaders.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Bug Fixes
Tests