test(agc): exercise a full native depth clear through BDA #7228
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7228"
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 Amoenus on 2026-10-17T18:09:23Z.
What
Add
agc_driver_native_depth_bda_clear, a focused GPU completion regression for the native depth-clear path from #5554.The existing native-depth clear tests model completion with
StoreOwnBytes. During #7220, those tests passed a proposed tracker change that rejects a legitimate BDA-produced clear. This test catches that regression. It reuses the current kernel/recognizer rather than adding instruction semantics. It checks metadata and native-owner acceptance, not numeric sampled-depth readback or gameplay.Tested
Current head
bf8556f8e7741c76af90514197037bae5c5c4d88, maine3838332ee31af787ad311b7eadbe53d8d012e95: addressed the CI skip-classifier review. The actual published-head Linux JUnit reproducedcheck_skips.py --job linuxexit1. The new real lavapipe JUnit has one explicit import limitation and is accepted by both Linux/Windows classifiers (exit0). The missing-host-backend skip was removed: the existing allocation helper throws if guest write watching is unavailable. The device/import limitation now reportsskipped, the device does not retain guest write watching for native clear imports.Full Windows/Linux relinker/library builds pass at bf8556. The GPU producer passes3/3 on the verified RTX5080 and3/3 on AMD Radeon Graphics. No wider matrix is claimed on this wording/error-path update; earlier evidence retains its pins below. No runtime implementation change or global skip-policy relaxation.
Initial PR head
19925d409bb090597b00565e2be7bb33442a0132was based on maine1041f6a571b6579f9e42334375adb4eb02550e7. The final rebase includes only #7222's CI-cache change: the completecoretree is identical to validated59d (ac0e84bc230727839633fa478a35aff9d0beb5ee). Runtime tests are retained with their exact pins below. The file-only overlap check is clean, and conventions pass again after rebasing.Validated head
59d55694df05ffc3f730cfac25f69c935109f8b7, based on main07b4651142a2c40e129c8f9f9746eccf01f6e6ea: full Windows/Linux relinker/library builds pass. Main's new libc exception handling is covered by the new producer and native-depth refusal groups repeated 3 times per physical GPU (6 NVIDIA + 6 AMD passes); Linux native-depth refusals and the new host-libstdc++ exception test give 6 passes, with the new GPU producer explicitly skipped for lost import watching. Cppcheck/clang-tidy parse the unchanged fixture with no selected diagnostics. The test is automatically discovered; no shared CMake registration edit is needed.Earlier wider control at exact head
a76ff55c12bf493d5145db74982fed3c04a5e6de, main66702f1cffd3646f2d674ed093fde0a85a70761f(the test file is identical):native multisample depth clear has no complete tracked HTILE store, after correct metadata readback. Restoring the candidate passes again. The fault-control implementation is not part of this PR.Reproduce with
cmake --build build --target agc_driver_native_depth_bda_clear_tests, thenctest --test-dir build -V -R "^agc_driver_native_depth_bda_clear$" --timeout 30. Use the existingANYPS5_GPUselector andANYPS5_REQUIRE_VULKAN=1for required physical-GPU runs.No new title-startup or speed claim. The related PPSA99902 metadata investigation and unchanged loading-screen stop remain documented in #5336.
Automatic conventions/intake checks passed on this head. Full Linux/Windows CI jobs are skipped until a maintainer dispatches them; please run full CI for this PR.
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)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T18:16:47Z.
Thanks, the test reads well. One CI blocker: the Linux job runs
tools/check_skips.pyon ctest.xml after the tests, and it fails the job for any skip whose output doesn't match itsDEVICE_LIMITATIONpattern (tools/check_skips.py:6). Both skip messages here would be reported as unexpected skips on lavapipe:skipped, guest write watching is unavailableskipped, native clear imports do not retain guest write watchingSo the Linux job would fail even with every test passing. If these really are device/import limitations, could you phrase them to match the existing pattern (for example
skipped, the device imports no ...orskipped, host imports are unavailable), or extend the pattern in check_skips.py if neither fits?Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T18:29:26Z.
@oneandonlydean fixed in bf8556f8e. The published-head real Linux JUnit reproduces the classifier failure; the new actual lavapipe JUnit is accepted by
check_skips.pyfor both jobs.The import limitation uses the existing device-limit wording. The global write-watch skip is removed; the allocation helper already throws when that host backend is unavailable, so missing host coverage is not disguised as a device limitation. Full local Windows/Linux builds pass, with3/3 producer passes on each physical GPU. Body updated with exact pins and CI-classifier scope. Rebased onto maine383; please use this head for full CI.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T18:35:23Z.
Thanks for adding the positive BDA producer control. The first #7233 revision would have failed this test because it treated every BDA page as possible-only. I added a producer-scoped proof for the already-recognized complete HTILE kernel and a native-depth regression that keeps the tracker evidence possible-only while verifying the clear remains accepted. If convenient, could you run this test against #7233 head e58b118? It would independently confirm the integration with your real BDA path.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T18:42:50Z.
Follow-up on my integration request: #7233 is now at
f0303b36304f3b7eb1ef67f1ce47518b7a681242. I tightened the recognized-producer exception to require at least one tracked post-baseline HTILE write before using the kernel’s complete-coverage proof; this avoids accepting old matching HTILE bytes before the clear has published any write. The three affected Linux targets compile/link with the existing unrelated GCCtemplateworkaround; this host cannot execute the native-depth test due its CPU feature guard. If you get a supported host run, please use the new head.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T19:08:55Z.
@MarcZX100 the requested f030 head passes our real BDA clear test3/3 on each physical GPU, and both sparse-store wave controls pass. I also found an existing refusal-test diagnostic mismatch on NVIDIA, AMD and lavapipe. Exact pins, controls and failure details are on #7233. I will update that report in place for follow-up validation.
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T20:05:54Z.
First real-GPU runs of this fixture (it skips on lavapipe by design): head
bf8556f8e, Windows 11, MinGW (WinLibs GCC 15.2.0), Release —agc_driver_native_depth_bda_clearpasses on NVIDIA RTX 3070 (driver 617.42) and on Intel UHD 630 (ANYPS5_GPU=UHD, igvk64). The full native clear through BDA is exercised end-to-end on both.