fix(agc): size HTILE that is not pipe-aligned by its own meta blocks #21948

Open
JJenkx wants to merge 10 commits from upstream-pr/21948 into main
JJenkx commented 2026-11-16 22:43:39 +00:00 (Migrated from github.com)

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_ALIGNED 0, 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. TargetHtileBytes and TargetHtileFillCovers pick the layout from the target; the slice offset in State.cpp uses 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:

  • words 0 to 49149 of the 196608-byte range are all 0, the cleared value;
  • words 49150 and 49151 are 1d97fff0 and 00000002. Read as one 64-bit value, that is 0x21d97fff0, the HTILE base 0x21d980000 minus 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: NoteDepthMetadataFill uses TargetHtileFillCovers before flushing pending planes, and surfaceFootprintOverlaps uses TargetHtileBytes for 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.

Source role Focused result Case types
Prior public head 10e7e0929612 with identical new fixtures (06e39c16e6b1) 91/92; expected retirement-boundary failure 57 CPU / 35 physical GPU
Review repair on the prior head (cd945e65038e) 92/92 57 CPU / 35 physical GPU
Main 4b70bf120169 93/93 57 CPU / 36 physical GPU
Integrated repaired tree, built at 6613a5bbb0e2 93/93 57 CPU / 36 physical GPU

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 10599e03bde8 has the identical complete source tree 306c18f40ad4d9d29a487215e14279a8c0ecb62d and parent tuple as built integration 6613a5bbb0e2; 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 main 26508fa3f9 and 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:

Build Observed result
Main 33bdd3d5d836 Aborts at 8.3 seconds: native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store; before the first scripted input
Public head 10e7e0929612 Reviewed native GPU frames at 68.8 and 83.5 seconds show Joe, health HUD/lives, and the opening-stage artwork. Ordinary close requested at 85.6 seconds; native exit 0 at 87.6 seconds

The 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-app0 assets.

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 10e7e0929612 merges main 33bdd3d5d836, 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.

Arm Focused results
Main production code 33bdd3d5d836, test-only adaptation e61f3044a0b2 35/36; only separate-stencil metadata-tail case fails
Published head 10e7e0929612 36/36
Private wrong-fallback variant 35d3860d47fa CPU suite fails the new 160 KiB array-stride assertion, as intended

The 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.py and 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 8a4914c0a6c4 against main 8e158a83d9ed on 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=1920x1080 changed, 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 head dcc57b6ebb46, with the same source tree as this tested maintainer head 8a4914c0a6c4. 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 main bc8472965506 + this commit.

  • agc_driver_graphics checks 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_stencil now 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_unit and agc_driver_image_table_packed_guards fail on main too; open PRs already mention them.
  • Curved Space (PPSA02817), 2 runs of 125 s with Cross every 15 s: neither stops on the HTILE refusal. Both now stop at 20 and 24 s on native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store (#15600). Main (3894f2e1847 and 1403ec8de74) 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 main 2fd48dd40c3 with this PR (dcc57b6ebb) merged, New Joe & Mac (PPSA02801) gets past the 8.1 s native MSAA depth abort, which PublishToGuest raises on a 1920x1080 2x MSAA depth target with htilePipeAligned=0 and htileDepthOnly=1. It goes through Classic Modes → Arcade into Stage 1 gameplay (screenshots reviewed), with 0 missing functions and 0 failed shaders.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA02801 #9091
  • GPUs tested: AMD Radeon RX 6650 XT, RADV Mesa 26.3.1, Linux 7.3.5, Khronos 1.4.363 (new focused qualification); earlier-head contributor Windows and native evidence pinned above
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes

    • Improved depth-surface metadata sizing and range checks for pipe-aligned and non-pipe-aligned surfaces, including multisampled configurations.
    • Corrected metadata-fill coverage checks so operations extending beyond a surface’s metadata range do not incorrectly affect it.
  • Tests

    • Added coverage for metadata sizes, depth-slice strides, and memory operations across alignment settings.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5346555839 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948). Originally posted by [JJenkx](https://github.com/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_ALIGNED` 0, 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. `TargetHtileBytes` and `TargetHtileFillCovers` pick the layout from the target; the slice offset in `State.cpp` uses 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: - words 0 to 49149 of the 196608-byte range are all `0`, the cleared value; - words 49150 and 49151 are `1d97fff0` and `00000002`. Read as one 64-bit value, that is `0x21d97fff0`, the HTILE base `0x21d980000` minus 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).** <!-- pr21948-review-repair-20261125 --> Both [requested call sites](https://github.com/boykopovar/AnyPS5/pull/21948#issuecomment-7153327008) now use the existing target-specific helpers: `NoteDepthMetadataFill` uses `TargetHtileFillCovers` before flushing pending planes, and `surfaceFootprintOverlaps` uses `TargetHtileBytes` for 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. | Source role | Focused result | Case types | |---|---|---| | Prior public head `10e7e0929612` with identical new fixtures (`06e39c16e6b1`) | 91/92; expected retirement-boundary failure | 57 CPU / 35 physical GPU | | Review repair on the prior head (`cd945e65038e`) | 92/92 | 57 CPU / 35 physical GPU | | Main `4b70bf120169` | 93/93 | 57 CPU / 36 physical GPU | | Integrated repaired tree, built at `6613a5bbb0e2` | 93/93 | 57 CPU / 36 physical GPU | 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 `10599e03bde8` has the identical complete source tree `306c18f40ad4d9d29a487215e14279a8c0ecb62d` and parent tuple as built integration `6613a5bbb0e2`; 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](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261122/pr21948-htile-review-10599e03bde8-linux-20261125.tar.gz), 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](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6023821183) 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 main `26508fa3f9` and 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. <!-- pr21948-peer-windows-10e7e092-20261123 --> **Fresh native New Joe & Mac confirmation (2026-11-23).** <!-- pr21948-newjoe-10e7e092-20261123 --> 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: | Build | Observed result | |---|---| | Main `33bdd3d5d836` | Aborts at 8.3 seconds: `native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store`; before the first scripted input | | Public head `10e7e0929612` | Reviewed native GPU frames at 68.8 and 83.5 seconds show Joe, health HUD/lives, and the opening-stage artwork. Ordinary close requested at 85.6 seconds; native exit 0 at 87.6 seconds | The 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-app0` assets. 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](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261122/pr21948-newjoe-10e7e092-linux-20261123.tar.gz), 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).** <!-- pr21948-htile-mip-10e7e092-20261123 --> Head `10e7e0929612` merges main `33bdd3d5d836`, 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. | Arm | Focused results | |---|---| | Main production code `33bdd3d5d836`, test-only adaptation `e61f3044a0b2` | 35/36; only separate-stencil metadata-tail case fails | | Published head `10e7e0929612` | 36/36 | | Private wrong-fallback variant `35d3860d47fa` | CPU suite fails the new 160 KiB array-stride assertion, as intended | The 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.py` and whitespace checks pass against refreshed upstream tracking main. [Logs, JUnit, recipes, source deltas/bundles and module provenance](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261122/pr21948-htile-mip-integration-10e7e092-linux-20261123.tar.gz), SHA256 `a3e156a899ce544ab2f6151c0f48f9a804fa47f375d3c5f61b46822f9f95d053`; all 57 manifest payloads verified after downloading the uploaded archive. **Historical Linux retest (2026-11-19, named revisions below).** <!-- codex-linux-retest-21948-8a4914c0-20261119 --> Retested maintainer head `8a4914c0a6c4` against main `8e158a83d9ed` on 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=1920x1080` changed, 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](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/curved-space-21948-8a4914c0-linux-20261119.tar.gz) (SHA256 `08d16fdbe0a23c705bb041f50bbf0c6852bdcd6c0eccaa25896f8299e06e269f`). Earlier evidence below remains historical to its named revisions. The later metadata-only correction published head `dcc57b6ebb46`, with the same source tree as this tested maintainer head `8a4914c0a6c4`. The historical revert subject now follows Conventional Commits, and [hosted conventions passes](https://github.com/boykopovar/AnyPS5/actions/runs/44808102891/job/136537305145). The revert itself and the maintainer-updated merge remain preserved; [correction and tree verification](https://github.com/boykopovar/AnyPS5/pull/21948#issuecomment-7049417998). Linux 7.2, AMD Ryzen 9 7950X, AMD Radeon RX 6650 XT (RADV, Mesa 26.2.7), Release, on `main` `bc8472965506` + this commit. - `agc_driver_graphics` checks 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_stencil` now 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_unit` and `agc_driver_image_table_packed_guards` fail on main too; open PRs already mention them. - Curved Space (PPSA02817), 2 runs of 125 s with Cross every 15 s: neither stops on the HTILE refusal. Both now stop at 20 and 24 s on `native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store` (#15600). Main (`3894f2e1847` and `1403ec8de74`) 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](https://github.com/boykopovar/AnyPS5/pull/21948#issuecomment-6979905607). 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 `main` `2fd48dd40c3` with this PR (`dcc57b6ebb`) merged, New Joe & Mac (PPSA02801) gets past the 8.1 s native MSAA depth abort, which `PublishToGuest` raises on a 1920x1080 2x MSAA depth target with `htilePipeAligned=0` and `htileDepthOnly=1`. It goes through Classic Modes → Arcade into Stage 1 gameplay (screenshots reviewed), with 0 missing functions and 0 failed shaders. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA02801 #9091 - [x] GPUs tested: AMD Radeon RX 6650 XT, RADV Mesa 26.3.1, Linux 7.3.5, Khronos 1.4.363 (new focused qualification); earlier-head contributor Windows and native evidence pinned above - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved depth-surface metadata sizing and range checks for pipe-aligned and non-pipe-aligned surfaces, including multisampled configurations. * Corrected metadata-fill coverage checks so operations extending beyond a surface’s metadata range do not incorrectly affect it. * **Tests** * Added coverage for metadata sizes, depth-slice strides, and memory operations across alignment settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-17 04:15:32 +00:00 (Migrated from github.com)

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

  • Head: b015b6b844f63fade38b18ba75c27ea76877f66c, base main. 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.json under reviewed. 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.cpp is 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 bc8472965506 plus this commit. Not reproduced.
  • The Curved Space (PPSA02817) runs: author-reported. Not reproduced.
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406 is 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.json lists tests/Graphics.cpp under reviewed, 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:1406 needs the same sizing change, in a follow-up if so.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5932738150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-5932738150). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T04:15:32Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. **What I ran** - Head: `b015b6b844f63fade38b18ba75c27ea76877f66c`, base `main`. 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.json` under `reviewed`. 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.cpp` is 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 `bc8472965506` plus this commit. Not reproduced. - The Curved Space (PPSA02817) runs: author-reported. Not reproduced. - `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406` is 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.json` lists `tests/Graphics.cpp` under `reviewed`, 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:1406` needs the same sizing change, in a follow-up if so.
MarcZX10 commented 2026-11-17 14:15:40 +00:00 (Migrated from github.com)

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, 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.json under reviewed, I read the changed hunks and their callers. I did not read the full text in files/.
  • Other callers of HtileMetadataBytes that keep the pipe-aligned default (for example in tests/DepthSurfaceReuse.cpp and tests/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_unit and agc_driver_image_table_packed_guards also fail on main at the same base.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5940061101 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-5940061101). Originally posted by [MarcZX10](https://github.com/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`, 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.json` under `reviewed`, I read the changed hunks and their callers. I did not read the full text in `files/`. - Other callers of `HtileMetadataBytes` that keep the pipe-aligned default (for example in `tests/DepthSurfaceReuse.cpp` and `tests/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_unit` and `agc_driver_image_table_packed_guards` also fail on `main` at the same base.
MarcZX10 commented 2026-11-17 17:09:19 +00:00 (Migrated from github.com)

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

  • Head reviewed: 0366ff2096eff312eae0f604016f84aefad9078a (base main).
  • Read the description, commit list, manifest and the diff hunks for the five changed files.
  • Used repo_read.py search on core/libs/prx/libSceAgcDriver to find every caller of the HTILE size helpers, and cat on the depth decode in State.cpp and on the import check in DepthSurface.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:98 gives HtileMetadataBytes a default pipeAligned = true. Any new caller that leaves it out gets the old pipe-aligned size without a warning. The sampled multisample path in core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406 is 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 from diff.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:1406 should use the non-pipe-aligned size. It is not changed here.
  • The new positive test HtileTail and the new size assertions were not run, so no negative control was run either.
  • The Curved Space results and the ctest counts 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5943085586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-5943085586). Originally posted by [MarcZX10](https://github.com/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 - Head reviewed: `0366ff2096eff312eae0f604016f84aefad9078a` (base `main`). - Read the description, commit list, manifest and the diff hunks for the five changed files. - Used `repo_read.py` `search` on `core/libs/prx/libSceAgcDriver` to find every caller of the HTILE size helpers, and `cat` on the depth decode in `State.cpp` and on the import check in `DepthSurface.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:98` gives `HtileMetadataBytes` a default `pipeAligned = true`. Any new caller that leaves it out gets the old pipe-aligned size without a warning. The sampled multisample path in `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1406` is 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 from `diff.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:1406` should use the non-pipe-aligned size. It is not changed here. - The new positive test `HtileTail` and the new size assertions were not run, so no negative control was run either. - The Curved Space results and the `ctest` counts 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.
MarcZX10 commented 2026-11-20 20:18:50 +00:00 (Migrated from github.com)

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

  • Reviewed head dcc57b6ebb46f7cf29f10ce781e25a07de4331eb using repo_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

  • createFilled still sizes descriptor-backed multisampled texture HTILE with the default pipe-aligned size, even though the descriptor exposes dccPipeAligned. 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), and NativeMultisampleDepth.cpp (changed section). Also read the review description, commits, manifest, and diff.
  • files.json was not available in the reader listing; Graphics.cpp was 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5998802558 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-5998802558). Originally posted by [MarcZX10](https://github.com/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 - Reviewed head `dcc57b6ebb46f7cf29f10ce781e25a07de4331eb` using `repo_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 - `createFilled` still sizes descriptor-backed multisampled texture HTILE with the default pipe-aligned size, even though the descriptor exposes `dccPipeAligned`. 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), and `NativeMultisampleDepth.cpp` (changed section). Also read the review description, commits, manifest, and diff. - `files.json` was not available in the reader listing; `Graphics.cpp` was 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.
Superseabas commented 2026-11-23 10:00:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-23T10:00:28Z.

Review: APPROVED


Windows check of head dcc57b6ebb with GCC 16 on an NVIDIA and an AMD GPU, merged onto main f5b7e1d1ac (clean merge). The Windows run in the thread is NVIDIA only and of 0366ff2096, 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 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).

  • ^(agc_driver_graphics|agc_driver_native_depth.*|agc_driver_native_multisample.*|agc_driver_sample_multisample_target.*)$: main 34 of 34, and with this PR 34 of 34 in 3 of 3 runs, on both GPUs. The only skip, on both sides, is agc_driver_native_depth_driver_queued_fill, which skips on Windows by design. No VUID- lines.
  • Red check 1: with TargetHtileBytes back to the pipe-aligned size (HtileMetadataBytes(target.extent)), agc_driver_native_depth_separate_stencil fails on the Radeon with the title's stop, native multisample depth HTILE that is not pipe-aligned holds more than one word.
  • Red check 2: with TargetHtileFillCovers back to the pipe-aligned size, the same test fails with native 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 decodeDepthPlane sets samples and htilePipeAligned before the slice offset in State.cpp uses TargetHtileBytes, and that the ghost-sequence target, now sized with false, leaves htilePipeAligned unset.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6019594714 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6019594714). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-23T10:00:28Z. **Review:** APPROVED --- Windows check of head `dcc57b6ebb` with GCC 16 on an NVIDIA and an AMD GPU, merged onto `main` `f5b7e1d1ac` (clean merge). The Windows run in the thread is NVIDIA only and of `0366ff2096`, 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 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). - `^(agc_driver_graphics|agc_driver_native_depth.*|agc_driver_native_multisample.*|agc_driver_sample_multisample_target.*)$`: `main` 34 of 34, and with this PR 34 of 34 in 3 of 3 runs, on both GPUs. The only skip, on both sides, is `agc_driver_native_depth_driver_queued_fill`, which skips on Windows by design. No `VUID-` lines. - **Red check 1:** with `TargetHtileBytes` back to the pipe-aligned size (`HtileMetadataBytes(target.extent)`), `agc_driver_native_depth_separate_stencil` fails on the Radeon with the title's stop, `native multisample depth HTILE that is not pipe-aligned holds more than one word`. - **Red check 2:** with `TargetHtileFillCovers` back to the pipe-aligned size, the same test fails with `native 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 `decodeDepthPlane` sets `samples` and `htilePipeAligned` before the slice offset in `State.cpp` uses `TargetHtileBytes`, and that the ghost-sequence target, now sized with `false`, leaves `htilePipeAligned` unset. AI-assisted: yes (Claude Code)
Superseabas commented 2026-11-23 14:55:41 +00:00 (Migrated from github.com)

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 of main'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 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 26508fa3f9 (clean merge), built together with #26174 and #26179, which touch other files.

  • agc_driver_graphics, the native depth and native multisample tests and sample_multisample_target: main 36 of 36, and with this PR 36 of 36 in 2 of 2 runs, on both GPUs. The only skip, on both sides, is agc_driver_native_depth_driver_queued_fill (Windows by design). No VUID- lines.
  • Red check: with the fallback slice size back to HtileMetadataBytes(depth.extent), agc_driver_graphics fails with slice 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 decodeDepthPlane the mip-chain htileSliceBytes from main still wins when it is set, and only the fallback became TargetHtileBytes(depth). The mip path requires a single-sample target, which TargetHtileBytes sizes as pipe-aligned anyway, so the two can't disagree there. samples and htilePipeAligned are still decoded (State.cpp:497, :511) before the slice offset uses them (:570).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6023821183 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6023821183). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-23T14:55:41Z. **Review:** APPROVED --- Follow-up on Windows for head `10e7e09296`, after the merge of `main`'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 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` `26508fa3f9` (clean merge), built together with #26174 and #26179, which touch other files. - `agc_driver_graphics`, the native depth and native multisample tests and `sample_multisample_target`: `main` 36 of 36, and with this PR 36 of 36 in 2 of 2 runs, on both GPUs. The only skip, on both sides, is `agc_driver_native_depth_driver_queued_fill` (Windows by design). No `VUID-` lines. - **Red check:** with the fallback slice size back to `HtileMetadataBytes(depth.extent)`, `agc_driver_graphics` fails with `slice 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 `decodeDepthPlane` the mip-chain `htileSliceBytes` from `main` still wins when it is set, and only the fallback became `TargetHtileBytes(depth)`. The mip path requires a single-sample target, which `TargetHtileBytes` sizes as pipe-aligned anyway, so the two can't disagree there. `samples` and `htilePipeAligned` are still decoded (`State.cpp:497`, `:511`) before the slice offset uses them (`:570`). AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-25 06:06:14 +00:00 (Migrated from github.com)

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 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: TargetHtileFillCovers correctly uses the target’s pipe-alignment setting, but NoteDepthMetadataFill still uses the default pipe-aligned HtileFillCovers check 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6052632128 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6052632128). Originally posted by [MarcZX10](https://github.com/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 `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`: `TargetHtileFillCovers` correctly uses the target’s pipe-alignment setting, but `NoteDepthMetadataFill` still uses the default pipe-aligned `HtileFillCovers` check 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.
MarcZX10 commented 2026-11-25 06:56:47 +00:00 (Migrated from github.com)

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

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6053139243 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6053139243). Originally posted by [MarcZX10](https://github.com/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 | 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`](https://github.com/boykopovar/AnyPS5/blob/10599e03bde84bed728139fd30e71b129c5d5f1e/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp), with the slice offset change in [`State.cpp`](https://github.com/boykopovar/AnyPS5/blob/10599e03bde84bed728139fd30e71b129c5d5f1e/core/libs/prx/libSceAgcDriver/Graphics/src/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 commented 2026-11-25 12:35:31 +00:00 (Migrated from github.com)

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 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 and sample_multisample_target: main 37 of 37, and with this PR 37 of 37 in 2 of 2 runs, on both GPUs, including agc_driver_native_depth_clear_supersedes_plane_writes. The only skip, on both sides, is agc_driver_native_depth_driver_queued_fill (Windows by design). No VUID- 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, including clear_supersedes_plane_writes with pipeAligned=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)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6057689851 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6057689851). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-25T12:35:31Z. **Review:** APPROVED --- 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 and `sample_multisample_target`: `main` 37 of 37, and with this PR 37 of 37 in 2 of 2 runs, on both GPUs, including `agc_driver_native_depth_clear_supersedes_plane_writes`. The only skip, on both sides, is `agc_driver_native_depth_driver_queued_fill` (Windows by design). No `VUID-` 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, including `clear_supersedes_plane_writes` with `pipeAligned=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)
MarcZX10 commented 2026-11-28 08:03:29 +00:00 (Migrated from github.com)

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 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.cpp and NativeMultisampleDepth.cpp and 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6096671646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6096671646). Originally posted by [MarcZX10](https://github.com/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 `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.cpp` and `NativeMultisampleDepth.cpp` and 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.
Plyxen commented 2026-12-03 06:05:51 +00:00 (Migrated from github.com)

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 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_tests and agc_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 a VUID- or SYNC-HAZARD line.
  • Control (same tree and tests, the changed files of those PRs put back to main's): these don't compile without the new HtileMetadataBytes parameter, so the control only shows that.

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6164498900 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6164498900). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T06:05:51Z. **Review:** APPROVED --- 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_tests` and `agc_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 a `VUID-` or `SYNC-HAZARD` line. - Control (same tree and tests, the changed files of those PRs put back to `main`'s): these don't compile without the new `HtileMetadataBytes` parameter, so the control only shows that. Not checked: a title. AI-assisted: yes (Claude Code)
ligmaSec commented 2026-12-03 22:13:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:13:49Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179530814 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21948#pullrequestreview-6179530814). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:13:49Z. **Review:** COMMENTED --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/21948:upstream-pr/21948'
git switch 'upstream-pr/21948'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/21948'
git switch 'upstream-pr/21948'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/21948'
git switch 'upstream-pr/21948'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/21948'
git switch 'main'
git merge --squash 'upstream-pr/21948'
git switch 'main'
git merge --ff-only 'upstream-pr/21948'
git switch 'main'
git merge 'upstream-pr/21948'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!21948
No description provided.