fix(agc): size HTILE that is not pipe-aligned by its own meta blocks #21948
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21948"
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 JJenkx on 2026-11-16T22:43:39Z.
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(#15600). Main (3894f2e1847and1403ec8de74) stopped at about 16 s on the HTILE refusal in all 3 of my earlier runs. Those main runs had #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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T04:15:32Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
b015b6b844f63fade38b18ba75c27ea76877f66c, basemain. No merged-preview check.diff.patch,description.md,commits.md,manifest.json,files.json.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).Results
htilePipeAlignedset before useTargetHtileByteskeeps the old sizeFindings
Blocking
None.
Non-blocking
None.
Not verified
Gfx10Lib::GetMetaBlkSize). That source is not in this repository and I did not check it. The hardware claim rests on the author.bc8472965506plus this commit. 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.DepthSurfaceReuse.cpp,NativeDepthBdaClear.cpp,ImageTableReuse.cpp, and other tests) appeared only as search hits. I did not read them.files.jsonliststests/Graphics.cppunderreviewed, while the manifest marks it too large. I read only its changed lines.Sources
To get this to a good state
Nothing is required.
Optional:
MultisampleTarget.cpp:1406needs the same sizing change, in a follow-up if so.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T14:15:40Z.
Review: COMMENTED
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, basemain. I did not build or run the tests. Checks were done by reading the diff and the head throughrepo_read.py:Results
Findings
Blocking
None.
Non-blocking
None verified.
Sources
Not linked. The sizing claim cites
Gfx10Lib::GetMetaBlkSizein AMD addrlib, which is not in this repository.Not verified
files.jsonunderreviewed, I read the changed hunks and their callers. I did not read the full text infiles/.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:
agc_driver_host_write_shadowed_unitandagc_driver_image_table_packed_guardsalso fail onmainat the same base.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T17:09:19Z.
Review: COMMENTED
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
0366ff2096eff312eae0f604016f84aefad9078a(basemain).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.Results
ctestFindings
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.core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406should use the non-pipe-aligned size. It is not changed here.HtileTailand the new size assertions were not run, so no negative control was run either.ctestcounts are the author's, not mine.To get this to a good state
Nothing is required. Optional: make the
pipeAlignedargument explicit at each call site, or drop the default, so a new caller cannot pick the old size by accident.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T20:18:50Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review, but the remaining HTILE sizing path should be checked before merge.
What I ran
dcc57b6ebb46f7cf29f10ce781e25a07de4331ebusingrepo_read.py.Results
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
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.
Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-23T10:00:28Z.
Review: APPROVED
Windows check of head
dcc57b6ebbwith GCC 16 on an NVIDIA and an AMD GPU, merged ontomainf5b7e1d1ac(clean merge). The Windows run in the thread is NVIDIA only and of0366ff2096, before the reused-attachment commit.Setup: Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (
x86_64-ucrt-posix-seh, r3), Release full build, run from PowerShell withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. GPUs, each picked withANYPS5_GPU: NVIDIA GeForce RTX 5070 Ti (621.01) and the Ryzen 7 7700X's integrated AMD Radeon (1002:164e, Adrenalin 26.10.2).^(agc_driver_graphics|agc_driver_native_depth.*|agc_driver_native_multisample.*|agc_driver_sample_multisample_target.*)$:main34 of 34, and with this PR 34 of 34 in 3 of 3 runs, on both GPUs. The only skip, on both sides, isagc_driver_native_depth_driver_queued_fill, which skips on Windows by design. NoVUID-lines.TargetHtileBytesback to the pipe-aligned size (HtileMetadataBytes(target.extent)),agc_driver_native_depth_separate_stencilfails on the Radeon with the title's stop,native multisample depth HTILE that is not pipe-aligned holds more than one word.TargetHtileFillCoversback to the pipe-aligned size, the same test fails withnative multisample depth metadata fill transition is not implemented. So the fill-cover side is guarded too, not only the import range.I also checked that
decodeDepthPlanesetssamplesandhtilePipeAlignedbefore the slice offset inState.cppusesTargetHtileBytes, and that the ghost-sequence target, now sized withfalse, leaveshtilePipeAlignedunset.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-23T14:55:41Z.
Review: APPROVED
Follow-up on Windows for head
10e7e09296, after the merge ofmain's HTILE mip offsets.Setup: Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (
x86_64-ucrt-posix-seh, r3), Release full build, run from PowerShell withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. GPUs, each picked withANYPS5_GPU: NVIDIA GeForce RTX 5070 Ti (621.01) and the Ryzen 7 7700X's integrated AMD Radeon (1002:164e, Adrenalin 26.10.2). Merged ontomain26508fa3f9(clean merge), built together with #26174 and #26179, which touch other files.agc_driver_graphics, the native depth and native multisample tests andsample_multisample_target:main36 of 36, and with this PR 36 of 36 in 2 of 2 runs, on both GPUs. The only skip, on both sides, isagc_driver_native_depth_driver_queued_fill(Windows by design). NoVUID-lines.HtileMetadataBytes(depth.extent),agc_driver_graphicsfails withslice 2 of non-pipe-aligned multisample depth must step by its 160 KiB HTILE planes, so the new array-slice check guards the merge.The merge: in
decodeDepthPlanethe mip-chainhtileSliceBytesfrommainstill wins when it is set, and only the fallback becameTargetHtileBytes(depth). The mip path requires a single-sample target, whichTargetHtileBytessizes as pipe-aligned anyway, so the two can't disagree there.samplesandhtilePipeAlignedare still decoded (State.cpp:497,:511) before the slice offset uses them (:570).AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T06:06:14Z.
Review: DISMISSED
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
10e7e0929612baf81c46dd60c12e20056c472987using the prepared diff andrepo_read.pysource reads; no tests were run.Results
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.cppwas excluded from the review folder; its changed assertions were inspected indiff.patch, but the full file was not read. No tests were run. Contributor-reported test and title results indescription.mdwere not independently verified.To get this to a good state
Update the remaining coverage check in
NoteDepthMetadataFillto use target-specific HTILE sizing, then rerun the focused depth/HTILE checks.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T06:56:47Z.
Review: COMMENTED
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
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 inState.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), andtests/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.
Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-25T12:35:31Z.
Review: APPROVED
Follow-up on Windows for head
10599e03bd. My approval of10e7e09296missed 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 withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. GPUs, each picked withANYPS5_GPU: NVIDIA GeForce RTX 5070 Ti (621.01) and the Ryzen 7 7700X's integrated AMD Radeon (1002:164e, Adrenalin 26.10.2). Merged ontomainc3aae2e8fb(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.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 usesTargetHtileFillCovers, andsurfaceFootprintOverlapsusesTargetHtileBytes. A search of the head finds no other caller that sizes a target's HTILE from its extent alone; the only remainingHtileFillCovers(..., target.extent, ...)is insideTargetHtileFillCoversitself.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T08:03:29Z.
Review: COMMENTED
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
190f7f7740ec947d1e9c5b99861ba92cf825786dthroughrepo_read.py; no tests or build commands were run.Results
Findings
Blocking
None verified.
Non-blocking
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, andState.cpp. Also read the relevant changed ranges inGraphics.cppandNativeMultisampleDepth.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.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T06:05:51Z.
Review: APPROVED
I read the diff at
190f7f7740. Windows 11, GCC 15.2, merged intomainatcf556db18c3together with other open PRs (so not an isolated build), withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validationon an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).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.main's): these don't compile without the newHtileMetadataBytesparameter, so the control only shows that.Not checked: a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:13:49Z.
Review: COMMENTED
The trial merge onto
a1b75b0947was clean. I checked that slice addressing and metadata-clear coverage both use the compact HTILE footprint for qualifying multisample targets, whileTargetHtileBytespreserves 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.