fix(agc): retain proven initial depth clear with a previous owner #14084
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14084"
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-31T18:22:29Z.
What
A fresh D16/D32 multisample depth attachment can pass every initial HTILE/import check, yet fail at its first currentness check because an older attachment owns the same depth address.
DepthSurfaceViewrecordsnative multisample depth fast-clear transition is not implementedeven though the constructor has already initialized the new image and the full-clear ownership path does not copy the old depth plane. https://github.com/boykopovar/AnyPS5/issues/14083Keep that proven initialization for created && samplingActive surfaces. The one-line production change retains refusal for existing surfaces and ineligible imports, first-refusal preservation, complete HTILE proof, generation/watch/race checks and unsupported later transitions. No title-specific condition, fallback, retry, environment switch or new export.
Builds on the existing initial-import contract (#5496/#5554) and JJenkx's merged fresh-plane correction #6438. Vulkan host-clear contract; no new console HTILE semantics or hardware-equivalence claim. Related #6300/#6808 retain the old bind refusal. #7256 moves that same condition into a layered helper; retain this correction during that rebase. No code from those open PRs is included.
The regression is isolated from shared helper signatures/property lists. #12862 has merged;the registration is now in its required executable fragment,relocated with the documented resolver. The earlier overlap scan/reviews remain source-pinned history,not an assertion that all peer combinations were tested. #7256 layered-rebase order proposal remains separate;no author agreement is presumed.
Review snapshot — 7 November, after initializer merges:
dfcaecf301af8f39c2940cc791a1557777d343b2includes tested main090f57166adb9692d27d16662a89ccc33a502406. All earlier submitted/qualified heads and maintainer contributions remain ancestors. Current two-phase qualification and recurrence evidence.Tested
Final head
dfcaecf301af8f39c2940cc791a1557777d343b2includes tested main090f57166adb9692d27d16662a89ccc33a502406. 12 final-head physical-GPU processes pass on NVIDIA RTX5080 and AMD Radeon Graphics iGPU. The earlier head19f89065716da0513e416152e424cd6cef2dd9d0passed14 processes on main4977f640527d606eacae4d948c3be22262a40e77; those are separate source pins. The source-specific selections, commands and logs are in the recurrence/sweep report. Matched main runs46 processes at the first pin and18 at the final pin across the whole sweep; new capability registrations absent on main are counted separately.All4 #15964 regression groups pass on both GPUs at this final head. Their refusal helper, expected alias message and aliased-depth/publication assertion bodies are unchanged from the final main. The initializer merge removed no lines from that fixture and added owner-survival checks. This does not restore the reverted ordinary-constructor guest capture or use changed expected errors to hide its failure. Current main and all6 pending PR heads pass these same cases; the historical original-restoration control retains its earlier8 expected failures and source pin.
Configured native libraries/relinker and selected real execution fixtures build. Graphics/cache CPU checks, conventions and whitespace pass. Windows11 Enterprise26200,GCC15.2/UCRT Release; RTX5080/621.01(32.0.16.2101),AMD1002:13c0/26.10.1(32.0.21045.16010). Required Vulkan, app shader cache/journal off, loaded Khronos1.4.363 instance/device layers and physical devices verified per GPU process. No qualified skips/timeouts,VUID/SYNC hazards or validation warning/error. Successful observed tests are below30s; inherited explicit180s readback/snapshot/publication properties retain the maintainer's setting.
Earlier controls and independent Linux/RADV reports retain their actual heads. The upstream initializer-merge Linux log shows all4 old cases and7 initializer groups pass before cancellation; its full job remains cancelled, and Windows CI skipped those GPU cases. Fresh local hardware evidence is separate from full hosted CI, updated independent RADV timing, console equivalence or a title/FPS claim. No new full-stack claim.
The proven initial-owner correction has an unchanged stable topic patch ID. The final matrix includes its isolated initial-owner fixture, native clears and the4 #15964 cases. Earlier main-failing controls retain their historical pins; no new console HTILE semantics or title-specific condition.
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 MarcZX10 on 2026-10-31T18:24:14Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The linked final-head GPU report records the new
agc_driver_native_depth_initial_ownertest exiting with Windows status0xc0000409, so the added regression test has not demonstrated a passing result on the submitted head.What I ran
Reviewed exact head
b5829490036c0760bc5eeca0c3090e2e0c85c121against baseca073ec3ad0d766ea9f4658e418a5c977001a353. Individual no-build merge previews against currentmainwere clean; the stack report records declared merge-order dependency #12862, whose head is not included. Environment: Linux x86-64, Python 3.11.2, Git 2.39.5. I did not build or run the C++ test locally.Results
--initial-ownerCTest reportExit code 0xc0000409on Windows, 0/1 tests passed.Unedited linked test output
Negative control
Findings
Blocking
The PR description says the new case passes on both GPU vendors, but the linked final-head raw log ends with
agc_driver_native_depth_initial_ownerfailing with Windows status0xc0000409. That is a process failure, not a passing regression run. Please diagnose the crash and provide a passing run of the exact current head on the affected setup (or explain with reproducible evidence why this log is unrelated to the claimed final-head runs).Non-blocking
None.
Sources
Not verified
I did not build or run the C++ fixture locally, independently reproduce the Windows crash, or verify the author's GPU runs. Product Linux and specialized hosted jobs were skipped; hosted Windows was still running at the last snapshot. The linked report includes vendor-specific GPU and Vulkan validation evidence, but I did not rerun those measurements.
To get this to a good state
Resolve the
0xc0000409failure and publish a passing exact-head run, including the command and raw output. I will rerun the no-build precheck and review the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T18:41:10Z.
Review: APPROVED
Re-checked — new head, looks good
The evidence-index correction resolves the reported failure: the immutable logs for the exact reviewed head show the targeted test passing on both listed GPU vendors.
What I ran
Reviewed head
b5829490036c0760bc5eeca0c3090e2e0c85c121, PR baseca073ec3ad0d766ea9f4658e418a5c977001a353. The PR remains at that head. I fetched both linked raw logs and confirmed their SHA-256 values match the manifest; I did not run the GPU tests locally.Results
Fetched log output
Findings
Blocking
None found in this re-check. The prior blocker was the ambiguous raw gist URL; the corrected manifest and named immutable logs identify the crashing run as an earlier fixture setup and provide passing records for the submitted head.
Non-blocking
The GPU runs are author-provided evidence, not independently reproduced. The PR also notes that a Sonic Unleashed replay remains pending; this approval does not assert title-specific validation.
Sources
Not verified
I did not independently run the GPU tests, a Linux build/test, console behavior, or the pending Sonic Unleashed replay. The PR's #12862 registration relocation remains an explicitly declared merge-order coordination item; its individual preview against the stated base is clean, but I did not perform a combined integration build.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T19:21:12Z.
Review: APPROVED
Re-checked — new head, looks good
The test-only update now skips the initial-owner fixture only when the device supports none of its depth/sample combinations, and retains coverage for supported combinations.
What I ran
Reviewed exact head
03dae7c6195042f2087ced2b6ecfec84d52e2c36against baseca073ec3ad0d766ea9f4658e418a5c977001a353; the merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0 (c++). I did not build or run the GPU test locally. I downloaded and hash-checked the author-provided pinned report and CTest logs.Results
NativeMultisampleDepth.cpp; the production fix and CTest registration are unchanged from the previously approved head.main.checked=24 unavailable=0, with zeroVUID-orValidation Errorstrings. These were run by the author on Windows 11 with NVIDIA RTX 5080 and AMD Radeon Graphics 1002:13c0; I did not run them.Skipped. The partial-capability run matches its hash and reports 4 checked / 20 unavailable, passing.SKIP_RETURN_CODE 77.Unedited excerpts from the downloaded CTest logs
Negative control
Findings
Blocking
None found in the new head.
Non-blocking
The
results.jsonmanifest lists SHA2564d9dda362ef223423ce9b3073f3c219e4534219c8e5a3dd23aab5c19c82182e8forcontrol-zero-direct-v3.log, while the currently linked raw file hashes to37fd58c29f2bc3f4d393f2c19c0a7fdee0295ae300a2a47c2d3e87b5849c0e7a. The CTest skip log itself matches its manifest hash and confirms the required skip behavior; please reconcile the direct-log hash in the report artifacts when convenient.Sources
Not verified
I did not build or run the fixture locally, use a GPU or console, or independently reproduce the author's Windows test runs. The hosted checks still pending above were not treated as passed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T19:51:02Z.
Review: APPROVED
Re-checked — new head, looks good
The refreshed branch preserves the reviewed depth-clear fix, and the new-head regression evidence passes on both reported GPUs.
What I ran
Reviewed exact head
e269d111c4d72747e8864ad603fef730e2ce1247against base121b2e37af75278e3d84a2f43869730030b112ed; GitHub reports it mergeable. Local environment: Debian 12, Python 3.11.2, GCC 12.2.0. I did not build or run GPU tests locally.Results
Unedited relevant output
Findings
Blocking
None.
Non-blocking
No new issues found in this re-check.
Sources
Not verified
I did not build or run GPU tests locally. Linux product tests, specialized jobs, title execution, and physical-console behavior were not verified.