test(agc): skip the HTILE fill over a pending import without a settle queue #28802
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28802"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ArekatlaNishanthchowdary on 2026-12-03T18:27:52Z.
What
agc_driver_native_depth_fill_over_pending_import(added in #26034) fails on every run on an Intel iGPU on Windows:The device exposes one queue, so
decideImportWatchlogsWindows direct host imports use comparisons (no second queue to settle imports on), andsettlesPrivateImportsis false: a direct host import is never queued for a deferred settle, it is compared and stays unwatched. The test took any unwatched import (import->unwatched && !Watched(...)) for one waiting for its settle, so on this device it filled over a compared import and expected the fill's settle (settleImportsUnderFill→WatchedAfterSettle) to watch the HTILE again. Nothing is pending, so the HTILE stays unwatched and the fill takes the refusal the debt file already lists under Native multisampled depth sampling (the HTILE must be write-watched, and the fill is refused where host imports are compared).The test now skips when the context has no settle queue (
settleQueueorsettleQueueMutexmissing), the same capability check the recorder's settle tests make, before either case (CheckFillOverPendingImport,CheckSettleKeepsImportOwner) runs. A device with a settle queue checks every case as before. A device with a settle queue whose import probe does not keep the watch would also compare its imports; the probe result is not exposed to tests, so this check covers devices without a settle queue only. No production code changes.Tested
Windows 11 Pro 10.0.26200, i9-13900HX, WinLibs GCC 15.2.0 r7 UCRT, Release,
BUILD_TESTING=ON;main02e5bbf2e3and this change, then rebased ontoa9cbd48cb0(no change to the test files in between). Same machine, both GPUs, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerandctest --test-dir build -R '^agc_driver_native_depth_fill_over_pending_import$' -V, validation layer 1.4.363.1:main8086:a788, driver 101.6733)the device has no queue to settle host imports on10de:28e0, driver 621.47)cases checked=4 unavailable=0cases checked=4 unavailable=0Every log shows
Insert instance layer "VK_LAYER_KHRONOS_validation", none containswas not found but was requested by env var VK_INSTANCE_LAYERS, and all four contain 0VUID-lines. With the change,ctest -R '^agc_driver_native_depth_'reports 0 failures out of 41 on both GPUs (Intel skipsbda_clear,driver_queued_filland this test; NVIDIA skipsdriver_queued_fill, as onmain).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T18:33:22Z.
Review: COMMENTED
The guard covers the reported single-queue iGPU. The two fixtures still infer a pending settle from an unwatched import, so the same test failure remains possible on a two-queue device whose import probe selects comparison. The existing
deferredSettleTestsintests/Recorder.cppalready checks that distinction by making a larger private import first and skipping if it stays unwatched. Reusing that capability check, or checking for a pending settle on the actual import, would cover both cases.Source review of
7e019377c1. The exact CTest is registered on Windows, so the Intel and NVIDIA results here are the author's runs.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T19:43:14Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: also skip when the host-import probe selects comparison mode, even if a settle queue exists.
What I ran
Reviewed head
7e019377c1715dd89f4cad4bdd44279312c37cefwithrepo_read.pysearches and targeted reads of the changed test and its import-watch helpers. No tests were run. The author-reported Windows and GPU results were not independently verified.Results
Negative control
Not run; no test was executed.
Findings
Blocking
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp:4414: the new guard skips only when the settle queue is absent. With a queue present, the import probe can still selectUnwatchwhen protection is unsupported or the probe fails. In that caseCheckFillOverPendingImportcan still proceed with an unwatched import and hit the HTILE-fill refusal this change intends to avoid. The same file already checksPrepareImportWatch(context) == ImportWatch::Unwatchbefore running a queued-fill test. Extend this guard to cover that result. Changed guard · Import probe behavior · Existing capability checkNon-blocking
None.
Sources
The changed test’s import check and fill path were read at
NativeMultisampleDepth.cpplines 4325–4371; the import-watch probe logic atGuestBufferMemory.cpplines 1603–1622; and the existing queued-fill capability check atNativeMultisampleDepth.cpplines 3885–3887. See the commit-pinned links in the finding.Not verified
No tests or builds were run. The author’s reported Windows 11 GPU results were not independently confirmed.
files.jsonlists one reviewed changed file; its full text was excluded from the review folder because of size. I read targeted ranges from that file and the relevant reader context, not the entire changed file. No changed files were listed as excluded by rule.To get this to a good state
Skip when
PrepareImportWatch(context)selectsImportWatch::Unwatch, as well as when the settle queue or its mutex is unavailable; then rerun the reported test on the affected device configuration.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T00:44:27Z.
Review: APPROVED
Reviewed — looks good
The changed test guard is consistent with the import settling conditions, and I found no blocking defect at head
16917e8e973de0572acd50dc4e4476ec9ba64738.What I ran
Read the changed test and relevant import-watch implementation with
repo_read.pyat the exact head above. No tests or builds were run.Results
Negative control
Could not run a negative control; tests were not run.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The author's reported Windows and GPU test results were not independently verified. No files were excluded; the sole file listed under
reviewedwas read throughrepo_read.py.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T03:53:06Z.
Review: COMMENTED
Actionable comments
7db292f9-bff3-4c44-9f71-244658f4b80fReviewing files that changed from the base of the PR and between
16917e8e97andf194fe7fc4.core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T04:23:50Z.
Review: APPROVED
Reviewed — looks good
The change skips the pending-import cases when the device cannot settle imports or when a 1 MiB private import is compared rather than settled.
What I ran
Reviewed head
f194fe7fc438bbcee35693200fa55e91c2c61bcb. No merged-preview check was run. I usedrepo_read.pyto inspect the changed function and relevant import-settling logic; no tests or builds were run. The reader returned the requested source ranges but could not append its read log in this read-only environment.Results
Negative control
Not run; no test was executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The reported Windows GPU runs and CI results were not independently verified. The reviewed file was
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp;files.jsonlists no excluded files. The full file was not read; the changed hunk and relevant helper behavior were inspected with the pinned reader.To get this to a good state
No action required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T13:37:39Z.
Review: APPROVED
Verified on Windows 11 (GCC 15.2, Release) on main
484b0368d3, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1and the Khronos validation layer 1.4.363. Every run log shows the loader inserting the layer and none shows "was not found". It ran on an RTX 5080 (621.24) and an AMD Radeon iGPU (26.11.2), together with #28820, #28780, #28646 and #28670.agc_driver_native_depth_fill_over_pending_importpassed on main and with this change on both GPUs. Both devices have a settle queue, and the 1 MiB probe import is settled here, so the test ran in full and did not take either new skip. This setup loses no coverage.Not run: a device without a settle queue, which is the path the new skip covers, and Linux.
AI-assisted: yes (Claude Code)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.