fix(agc): accept a stored refill of a pending HTILE clear #15446

Merged
edubox merged 3 commits from upstream-pr/15446 into main 2026-11-07 06:19:23 +00:00
edubox commented 2026-11-03 10:37:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by edubox on 2026-11-03T10:37:23Z.


What

A whole-HTILE fill that repeats the value of a clear transition still pending in the depth sampling state was refused as overlapping native multisample depth clear transitions are not implemented. The existing refill path only recognized a fill still queued in the recorder.

When the metadata already holds the same pattern and was stored after the pending fill began, the second fill is the same clear: it now takes the newer generation and store stamp so CheckCurrent can consume it. A different pattern, or the same pattern before the metadata is stored, is still refused.

With #15443, 7th Guest (PPSA17019) advances from the overlapping-clear refusal to the next, separate blocker (sample-preserving guest publication of native multisample depth is not implemented).

Tested

Linux x86-64 (CachyOS), GCC 16.2.1, Release, NVIDIA GeForce RTX 4080 SUPER (driver 615.78.8.0):

  • New agc_driver_native_depth_stored_repeat_fill: a stored same-value refill is accepted, an unstored same-value refill and a partially stored same-value refill are refused, and a stored same-value refill after a draw is accepted, with 2, 4 and 8 samples.
  • ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -R 'agc_driver_native_depth|^agc_driver_graphics$|^agc_driver_key_miss$|^agc_driver_bda_device$|^agc_driver_recorder$': 18/18 pass on the change, 17/17 on main (4f41f4c375) before the new test existed.
  • A same-machine VK_LAYER_KHRONOS_validation comparison on this head and main 4f41f4c375 (NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0) inserts the layer on both sides, passes the focused depth tests on both and logs no VUID-. The repository AMD GPU run on this head reports no new validation IDs versus main (924 tests run on the GPU) after merging onto main 4f41f4c375 and comparing both sides with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation (TechLevelZero, 2026-11-03 11:13 UTC, https://gist.github.com/TechLevelZero/9f35362949002d87f61e630f49108311).
  • tools/check_conventions.py --base origin/main and git diff --check are clean.
  • tools/pr_overlap.py --branch fix/agc-repeat-htile-clear flags #15443 only for the shared test list/CMake lines; the source change is in NoteDepthMetadataFill, while #15443 is in the sampling prepare/check path, so this is independent and only needs a trivial test-list rebase after #15443.

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
  • 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: #15443 (it changes the same test list; this branch follows it)
  • Fixes: none
  • Unblocks: PPSA17019 (7th Guest), with #15443
  • GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5135753730 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15446). Originally posted by [edubox](https://github.com/edubox) on 2026-11-03T10:37:23Z. --- ### What A whole-HTILE fill that repeats the value of a clear transition still pending in the depth sampling state was refused as `overlapping native multisample depth clear transitions are not implemented`. The existing refill path only recognized a fill still queued in the recorder. When the metadata already holds the same pattern and was stored after the pending fill began, the second fill is the same clear: it now takes the newer generation and store stamp so `CheckCurrent` can consume it. A different pattern, or the same pattern before the metadata is stored, is still refused. With #15443, 7th Guest (PPSA17019) advances from the overlapping-clear refusal to the next, separate blocker (`sample-preserving guest publication of native multisample depth is not implemented`). ### Tested Linux x86-64 (CachyOS), GCC 16.2.1, Release, NVIDIA GeForce RTX 4080 SUPER (driver 615.78.8.0): - New `agc_driver_native_depth_stored_repeat_fill`: a stored same-value refill is accepted, an unstored same-value refill and a partially stored same-value refill are refused, and a stored same-value refill after a draw is accepted, with 2, 4 and 8 samples. - `ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -R 'agc_driver_native_depth|^agc_driver_graphics$|^agc_driver_key_miss$|^agc_driver_bda_device$|^agc_driver_recorder$'`: 18/18 pass on the change, 17/17 on `main` (`4f41f4c375`) before the new test existed. - A same-machine `VK_LAYER_KHRONOS_validation` comparison on this head and `main` `4f41f4c375` (NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0) inserts the layer on both sides, passes the focused depth tests on both and logs no `VUID-`. The repository AMD GPU run on this head reports no new validation IDs versus main (924 tests run on the GPU) after merging onto `main` `4f41f4c375` and comparing both sides with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation` (TechLevelZero, 2026-11-03 11:13 UTC, https://gist.github.com/TechLevelZero/9f35362949002d87f61e630f49108311). - `tools/check_conventions.py --base origin/main` and `git diff --check` are clean. - `tools/pr_overlap.py --branch fix/agc-repeat-htile-clear` flags #15443 only for the shared test list/CMake lines; the source change is in `NoteDepthMetadataFill`, while #15443 is in the sampling prepare/check path, so this is independent and only needs a trivial test-list rebase after #15443. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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) - [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: #15443 (it changes the same test list; this branch follows it) - [x] Fixes: none - [x] Unblocks: PPSA17019 (7th Guest), with #15443 - [x] GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-03 11:19:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T11:19:20Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new stored-refill path is narrowly tested, but the PR leaves an overlapping test-list change unsequenced and omits the repository-required Vulkan validation comparison.

What I ran

Reviewed head dd299f7b39749d1d116344cdd0fb717be6d0a31a against base 4f41f4c375f5abb487dbd184fbc150f31994d762; the stack checker preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. I did not build locally.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...dd299f7b39749d1d116344cdd0fb717be6d0a31a
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15446
gh pr checks 15446 --repo boykopovar/AnyPS5
gh api repos/boykopovar/AnyPS5/pulls/15443/files --paginate

Results

Check Result Note
Diff and conventions passed Patch and PR template pass.
Source and new test review passed Stored same-value case is accepted; unstored and different-value cases are refused.
Stack preview passed Clean against current main; no dependency declared.
Overlap sequencing failed #15443 changes the same CMake test-property line; order is not declared.
Hosted Windows job failed avplayer_http_patched_modules failed; this test is not in the changed files.
Author-reported focused tests not run Description reports 18/18 on the change and 17/17 on main.
Vulkan validation comparison not run The description says the validation layer was unavailable.
Local build and CTest not run No local compilation was performed.
Optional precheck helpers failed ABI and test-quality helper scripts are absent from the isolated PR snapshot.
Precheck table and raw command output

Diff-check command output:

git_diff_check_exit=0

Precheck command stdout:

/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/report.json
Conclusion: checks failed

Full precheck table:

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...dd299f7b39749d1d116344cdd0fb717be6d0a31a
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head dd299f7b39749d1d116344cdd0fb717be6d0a31a --title fix(agc): accept a stored refill of a pending HTILE clear --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head dd299f7b39749d1d116344cdd0fb717be6d0a31a --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15446 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2 --json core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmake core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Precheck stderr for missing optional scripts:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_test_quality.py': [Errno 2] No such file or directory

Stack-check stdout:

/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack/stack-report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack/stack-report.json

Hosted-check output:

windows	fail	13m59s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865916862
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919606
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919926
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865918838
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865920338
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919297
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919701
conventions	pass	25s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812445/job/125865736141
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865735155
intake	pass	4s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812495/job/125865736803
labels	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812429/job/125865736057
library-portability	pass	1m47s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812645/job/125865734680
report	pass	46s	https://github.com/boykopovar/AnyPS5/actions/runs/41620812661/job/125865735067

Windows failure summary from the job log:

The following tests FAILED:
	2426 - avplayer_http_patched_modules (Failed)

Negative control

Assertion Change to code under test Did the test fail?
The stored same-value refill is accepted, while an unstored repeat and a different pattern are refused. No mutation was run here. Not tested locally; the PR description reports these cases in its focused run.

Findings

Blocking

  • The PR and open #15443 both edit the set_tests_properties list in agc_driver_native_multisample_depth_tests.cmake. The PR description says its test-list change needs to rebase after #15443, but the checklist says Depends on: none. CONTRIBUTING.md requires overlapping PR authors to agree on order and record it with Depends on. Please agree with #15443's author and declare the agreed order.
  • CONTRIBUTING.md requires AGC changes to run the same focused tests on main and the change with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1, then compare logs for missing-layer markers and new VUIDs. The PR reports that the validation layer was unavailable, so this required comparison is missing. Please provide the paired logs and comparison from a machine where the layer is installed.

Non-blocking

  • The Windows hosted job failed at avplayer_http_patched_modules, which is not among the changed files. I did not verify whether it also fails on the base; resolve or rerun this check before approval.

Sources

Not verified

No local build or CTest, no validation-layer run or VUID comparison, and no check of whether the Windows failure reproduces on base. Linux and specialized hosted jobs were skipped. The Linux test counts and GPU details are author-reported, not independently reproduced here.

To get this to a good state

Agree and record the order with #15443, provide the required paired validation-layer logs and comparison, and resolve the failed Windows job. I will rerun the same precheck and review the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5751227765 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15446#pullrequestreview-5751227765). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T11:19:20Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new stored-refill path is narrowly tested, but the PR leaves an overlapping test-list change unsequenced and omits the repository-required Vulkan validation comparison. ## What I ran Reviewed head `dd299f7b39749d1d116344cdd0fb717be6d0a31a` against base `4f41f4c375f5abb487dbd184fbc150f31994d762`; the stack checker preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. I did not build locally. ```sh git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...dd299f7b39749d1d116344cdd0fb717be6d0a31a python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15446 gh pr checks 15446 --repo boykopovar/AnyPS5 gh api repos/boykopovar/AnyPS5/pulls/15443/files --paginate ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Patch and PR template pass. | | Source and new test review | passed | Stored same-value case is accepted; unstored and different-value cases are refused. | | Stack preview | passed | Clean against current `main`; no dependency declared. | | Overlap sequencing | failed | #15443 changes the same CMake test-property line; order is not declared. | | Hosted Windows job | failed | `avplayer_http_patched_modules` failed; this test is not in the changed files. | | Author-reported focused tests | not run | Description reports 18/18 on the change and 17/17 on `main`. | | Vulkan validation comparison | not run | The description says the validation layer was unavailable. | | Local build and CTest | not run | No local compilation was performed. | | Optional precheck helpers | failed | ABI and test-quality helper scripts are absent from the isolated PR snapshot. | <details><summary>Precheck table and raw command output</summary> Diff-check command output: ```text git_diff_check_exit=0 ``` Precheck command stdout: ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/report.json Conclusion: checks failed ``` Full precheck table: | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...dd299f7b39749d1d116344cdd0fb717be6d0a31a` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head dd299f7b39749d1d116344cdd0fb717be6d0a31a --title fix(agc): accept a stored refill of a pending HTILE clear --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head dd299f7b39749d1d116344cdd0fb717be6d0a31a --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15446 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2 --json core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmake core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | Precheck stderr for missing optional scripts: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/head-dd299f7b3974-1e6d7cb2/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` Stack-check stdout: ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack/stack-report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15446-dd299f7b3974/stack/stack-report.json ``` Hosted-check output: ```text windows fail 13m59s https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865916862 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919606 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919926 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865918838 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865920338 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919297 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865919701 conventions pass 25s https://github.com/boykopovar/AnyPS5/actions/runs/41620812445/job/125865736141 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41620812696/job/125865735155 intake pass 4s https://github.com/boykopovar/AnyPS5/actions/runs/41620812495/job/125865736803 labels pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41620812429/job/125865736057 library-portability pass 1m47s https://github.com/boykopovar/AnyPS5/actions/runs/41620812645/job/125865734680 report pass 46s https://github.com/boykopovar/AnyPS5/actions/runs/41620812661/job/125865735067 ``` Windows failure summary from the job log: ```text The following tests FAILED: 2426 - avplayer_http_patched_modules (Failed) ``` </details> ## Negative control | Assertion | Change to code under test | Did the test fail? | |---|---|---| | The stored same-value refill is accepted, while an unstored repeat and a different pattern are refused. | No mutation was run here. | Not tested locally; the PR description reports these cases in its focused run. | ## Findings ### Blocking - The PR and open #15443 both edit the `set_tests_properties` list in `agc_driver_native_multisample_depth_tests.cmake`. The PR description says its test-list change needs to rebase after #15443, but the checklist says `Depends on: none`. `CONTRIBUTING.md` requires overlapping PR authors to agree on order and record it with `Depends on`. Please agree with #15443's author and declare the agreed order. - `CONTRIBUTING.md` requires AGC changes to run the same focused tests on `main` and the change with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`, then compare logs for missing-layer markers and new VUIDs. The PR reports that the validation layer was unavailable, so this required comparison is missing. Please provide the paired logs and comparison from a machine where the layer is installed. ### Non-blocking - The Windows hosted job failed at `avplayer_http_patched_modules`, which is not among the changed files. I did not verify whether it also fails on the base; resolve or rerun this check before approval. ## Sources - [Repository rule for overlapping PRs](https://github.com/boykopovar/AnyPS5/blob/4f41f4c375f5abb487dbd184fbc150f31994d762/CONTRIBUTING.md#L71) - [Repository AGC validation requirement](https://github.com/boykopovar/AnyPS5/blob/4f41f4c375f5abb487dbd184fbc150f31994d762/CONTRIBUTING.md#L74) - [#15446 test-list change](https://github.com/boykopovar/AnyPS5/blob/dd299f7b39749d1d116344cdd0fb717be6d0a31a/core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmake#L16-L20) - [#15443 overlapping test-list change](https://github.com/boykopovar/AnyPS5/blob/6e9b2bee4ca544a1cc2569092bbe36c60efc754b/core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmake#L16-L21) - [Stored-refill implementation](https://github.com/boykopovar/AnyPS5/blob/dd299f7b39749d1d116344cdd0fb717be6d0a31a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L3226-L3245) - [New regression test](https://github.com/boykopovar/AnyPS5/blob/dd299f7b39749d1d116344cdd0fb717be6d0a31a/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp#L2668-L2733) ## Not verified No local build or CTest, no validation-layer run or VUID comparison, and no check of whether the Windows failure reproduces on base. Linux and specialized hosted jobs were skipped. The Linux test counts and GPU details are author-reported, not independently reproduced here. ## To get this to a good state Agree and record the order with #15443, provide the required paired validation-layer logs and comparison, and resolve the failed Windows job. I will rerun the same precheck and review the updated head.
XairRrR commented 2026-11-03 16:54:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T16:54:59Z.

Review: APPROVED


Reviewed — approved

A second whole-HTILE fill can now take over a pending clear transition when it repeats the same value and the metadata was stored after the first fill. The new test pins both conditions of that check, and nothing regresses in the focused native depth set on lavapipe.

What I ran

Head 8e681944325b635c7dbd81a8be2b0eec54d6ed93, merged with --no-ff onto main 4f41f4c375f5abb487dbd184fbc150f31994d762 (merged tree 95c6e140b210b43a174b95086b90eb5db3fa4cba). Debian 13 VM, GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...8e681944325b635c7dbd81a8be2b0eec54d6ed93
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -j8 --output-on-failure -R '^agc_driver_native_(depth|multisample_depth)'
ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -V -R '^agc_driver_native_depth_stored_repeat_fill$'
# negative control: DepthSurface.cpp from main
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
ninja -C build agc_driver_native_multisample_depth_tests
ctest --test-dir build --output-on-failure -R '^agc_driver_native_depth_(stored_repeat_fill|stencil)$'
# mutation 1: remove "&& NewestStamp(...) > clearStoreStamp" from sameStored, rebuild, run stored_repeat_fill
# mutation 2: remove the all-words-equal condition from sameStored, rebuild, run stored_repeat_fill
git show 95c6e140b210b43a174b95086b90eb5db3fa4cba:core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
ninja -C build agc_driver_native_multisample_depth_tests
ctest --test-dir build -j8 -R '^agc_driver_native_(depth|multisample_depth)'
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py all checks passed
Build (script) configure, build and libs OK
Selected tests (script, 2207 run) 0 new failures, 0 timeouts. 7 known failures also fail on main (denormal/division tests, unwrap_self_..., vector_constant_factor_tininess)
Validation layer comparison (script, 771 tests) layer loaded, layer_missing_in empty, 0 tests with new VUID- vs main
Focused agc_driver_native_(depth|multisample_depth) 14 passed, 1 skipped (agc_driver_native_depth_bda_clear, expected skip)
agc_driver_native_depth_stored_repeat_fill passed in 0.2 s. Checked 4 and 8 samples; 2 samples is unavailable on lavapipe
agc_driver_native_depth_stencil (same-value FillOverlap fixture restored after the earlier review) passed
Worktree restored git status --porcelain empty, focused set passes again after the rebuild
New test output
Native D32S8 with HTILE, samples=4: a stored whole-HTILE fill was accepted, an unstored or partially stored one was refused and a stored refill after a draw was accepted
Native D32S8 with HTILE, samples=8: a stored whole-HTILE fill was accepted, an unstored or partially stored one was refused and a stored refill after a draw was accepted
Native depth stored repeated HTILE fill cases checked=2 unavailable=1

Negative control

Change to the code under test stored_repeat_fill
DepthSurface.cpp taken from main failed (AGC graphics: overlapping native multisample depth clear transitions are not implemented); agc_driver_native_depth_stencil still passed
sameStored without the NewestStamp(...) > clearStoreStamp condition failed (refusal did not match overlapping ...: native multisample depth clear has no complete tracked HTILE store)
sameStored without the all-words-equal condition failed (same mismatch)

This confirms the author's reply to oneandonlydean's third point: each half of the check is now pinned by a test case. In both mutations, CheckCurrent still refuses later with "no complete tracked HTILE store". The cases therefore pin where the refusal is raised, and an unsafe acceptance still cannot reach sampling.

Findings

Blocking

None.

Non-blocking

  • The checklist line Unblocks: PPSA17019 (7th Guest), with #15443 has no Game bring-up discussion number. CONTRIBUTING.md asks for the form Unblocks: PPSA01325 #3232. Please add the discussion number if one exists.
  • core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:3231-3232 sizes the vector as metadata.bytes / 4 and then memcpys metadata.bytes. If the size were not a multiple of 4, this would write past the end of the vector. CheckCurrent already makes the same assumption (DepthSurface.cpp:558-559), and HTILE sizes are whole words, so this is not new risk. It is noted only in case the two copies are ever shared in a helper.

The earlier review points (oneandonlydean: guarded GuestMemory::Read, the restored FillOverlap value, the throw pins; MarcZX10: Depends on and the validation comparison) are all addressed at this head. The plain memcpy is at DepthSurface.cpp:3232. agc_driver_native_depth_stencil passes, and the validation comparison on lavapipe shows no new VUID-.

Not verified

  • No hardware GPU run here, only lavapipe. The 2-sample case of the new test did not run, because lavapipe does not support it.
  • Behaviour on PPSA17019 (no titles are run here).
  • The Windows hosted job (avplayer_http_patched_modules) was not rerun; that test is not among the changed files.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5756254739 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15446#pullrequestreview-5756254739). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T16:54:59Z. **Review:** APPROVED --- # Reviewed — approved A second whole-HTILE fill can now take over a pending clear transition when it repeats the same value and the metadata was stored after the first fill. The new test pins both conditions of that check, and nothing regresses in the focused native depth set on lavapipe. ## What I ran Head `8e681944325b635c7dbd81a8be2b0eec54d6ed93`, merged with `--no-ff` onto `main` `4f41f4c375f5abb487dbd184fbc150f31994d762` (merged tree `95c6e140b210b43a174b95086b90eb5db3fa4cba`). Debian 13 VM, GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU. ```sh git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...8e681944325b635c7dbd81a8be2b0eec54d6ed93 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -j8 --output-on-failure -R '^agc_driver_native_(depth|multisample_depth)' ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -V -R '^agc_driver_native_depth_stored_repeat_fill$' # negative control: DepthSurface.cpp from main git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp ninja -C build agc_driver_native_multisample_depth_tests ctest --test-dir build --output-on-failure -R '^agc_driver_native_depth_(stored_repeat_fill|stencil)$' # mutation 1: remove "&& NewestStamp(...) > clearStoreStamp" from sameStored, rebuild, run stored_repeat_fill # mutation 2: remove the all-words-equal condition from sameStored, rebuild, run stored_repeat_fill git show 95c6e140b210b43a174b95086b90eb5db3fa4cba:core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp ninja -C build agc_driver_native_multisample_depth_tests ctest --test-dir build -j8 -R '^agc_driver_native_(depth|multisample_depth)' git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | all checks passed | | Build (script) | configure, build and `libs` OK | | Selected tests (script, 2207 run) | 0 new failures, 0 timeouts. 7 known failures also fail on `main` (denormal/division tests, `unwrap_self_...`, `vector_constant_factor_tininess`) | | Validation layer comparison (script, 771 tests) | layer loaded, `layer_missing_in` empty, 0 tests with new `VUID-` vs `main` | | Focused `agc_driver_native_(depth\|multisample_depth)` | 14 passed, 1 skipped (`agc_driver_native_depth_bda_clear`, expected skip) | | `agc_driver_native_depth_stored_repeat_fill` | passed in 0.2 s. Checked 4 and 8 samples; 2 samples is unavailable on lavapipe | | `agc_driver_native_depth_stencil` (same-value `FillOverlap` fixture restored after the earlier review) | passed | | Worktree restored | `git status --porcelain` empty, focused set passes again after the rebuild | <details><summary>New test output</summary> ``` Native D32S8 with HTILE, samples=4: a stored whole-HTILE fill was accepted, an unstored or partially stored one was refused and a stored refill after a draw was accepted Native D32S8 with HTILE, samples=8: a stored whole-HTILE fill was accepted, an unstored or partially stored one was refused and a stored refill after a draw was accepted Native depth stored repeated HTILE fill cases checked=2 unavailable=1 ``` </details> ## Negative control | Change to the code under test | `stored_repeat_fill` | |---|---| | `DepthSurface.cpp` taken from `main` | **failed** (`AGC graphics: overlapping native multisample depth clear transitions are not implemented`); `agc_driver_native_depth_stencil` still passed | | `sameStored` without the `NewestStamp(...) > clearStoreStamp` condition | **failed** (`refusal did not match overlapping ...: native multisample depth clear has no complete tracked HTILE store`) | | `sameStored` without the all-words-equal condition | **failed** (same mismatch) | This confirms the author's reply to oneandonlydean's third point: each half of the check is now pinned by a test case. In both mutations, `CheckCurrent` still refuses later with "no complete tracked HTILE store". The cases therefore pin where the refusal is raised, and an unsafe acceptance still cannot reach sampling. ## Findings ### Blocking None. ### Non-blocking - The checklist line `Unblocks: PPSA17019 (7th Guest), with #15443` has no Game bring-up discussion number. CONTRIBUTING.md asks for the form `Unblocks: PPSA01325 #3232`. Please add the discussion number if one exists. - `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:3231-3232` sizes the vector as `metadata.bytes / 4` and then `memcpy`s `metadata.bytes`. If the size were not a multiple of 4, this would write past the end of the vector. `CheckCurrent` already makes the same assumption (`DepthSurface.cpp:558-559`), and HTILE sizes are whole words, so this is not new risk. It is noted only in case the two copies are ever shared in a helper. The earlier review points (oneandonlydean: guarded `GuestMemory::Read`, the restored `FillOverlap` value, the throw pins; MarcZX10: `Depends on` and the validation comparison) are all addressed at this head. The plain `memcpy` is at `DepthSurface.cpp:3232`. `agc_driver_native_depth_stencil` passes, and the validation comparison on lavapipe shows no new `VUID-`. ## Not verified - No hardware GPU run here, only lavapipe. The 2-sample case of the new test did not run, because lavapipe does not support it. - Behaviour on PPSA17019 (no titles are run here). - The Windows hosted job (`avplayer_http_patched_modules`) was not rerun; that test is not among the changed files. <!-- anyps5-bots job=3296 head=8e681944325b635c7dbd81a8be2b0eec54d6ed93 -->
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!15446
No description provided.