fix(agc): collect upload generation after host import #10696
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10696"
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-24T18:22:18Z.
What
Collect the storage upload generation again after successful
HostImportFor, before stamping the uploaded units.ImportWatchedcan collect newer stamps during import setup. Saving the earlier generation makes a newly uploaded array look changed at its next partial refresh: the requested first layer uploads again, while untouched last-layer units remain behind and prevent the refresh proof. The originalDepthPlanePartialStorefixture catches this on Windows with both GPU vendors.The two-line correction retains the original fixture and proof/pending/alias guards. Investigation and requested controls: #10664.
Fast-clear images retain the generation used to prove their clear value. Advancing it after import setup could hide a CPU write made after that proof; the uncompressed path instead reads from the import after the new collection. Original fixture author’s review confirms the distinction and no overlapping fix. Thanks to @janzezno and @MarcZX10 for narrowing the provenance and @MaxLikesCode for independent reproduction.
Tested
Normal merge refresh to current frozen main
48c160c58b589157ebd94ebd53736a182f8303bf; exact validated/published head7191aef0047c81dd4b99727aaf5ba63d6648f76a. Publishedaf4b99cca49d8b49b9725e2bf42e0b9ab6fdb380remains an ancestor and is archived locally. The two-line topic delta is identical; no force push. Full native libraries (370 patched PRXs), relinker and realDepthPlanePartialStorefixture build on both sources; executable/native hashes are stable across each matrix. Conventions and whitespace pass.Windows11 Enterprise26200, WinLibs GCC15.2r7/UCRT Release. 24 fresh focused GPU processes: imported proof fails3/3 per GPU on literal main and passes3/3 per GPU on this head; the unimported control passes3/3 per GPU on both sources. Six retained main assertion failures; candidate12/12 pass. Same original fixture, with the known imported small-plane conditional omission retained; the partial-array proof is exercised, while unimported controls complete. No weakened assertions or diagnostic code in the submission.
NVIDIA RTX5080/621.01 (32.0.16.2101) and AMD Radeon Graphics/32.0.21045.16010 (Vulkan26.10.1), actual device identity and loaded Khronos1.4.363 verified per process. Required Vulkan, app shader cache/journal disabled and verbose serial CTest. Zero VUIDs, validation errors/warnings, whole-process skips or timeouts on either source; longest candidate 0.635s. Prior CPU, broad-suite, independent-vendor and title evidence below retains its own source pins.
Cppcheck then clang-tidy complete without parser/configuration failure or timeout. Seven previously reviewed advisory notices remain in unchanged-main code outside the correction; source contexts checked. Not static-clean; no automatic fixes.
Exact main/change pins, artifacts, all24 verbose logs and analysis. This confirms the correction remains needed after main's linear-target completion changes. No new Sonic-unblock, performance, full default-suite or Linux result is claimed.
Earlier source-pinned evidence and independent contributor reports
Windows11 Enterprise26200, WinLibs GCC15.2r7/UCRT Release. Full native libraries/relinker and real selected fixtures build on both pinned revisions.
30be9b428b/ refreshed headaf4b99cca4, 19 processes each. Imported proof fails3/3 per GPU on main and passes3/3 per GPU with the fix. Unimported controls pass3/3 per GPU on both. Seven affected write-watch CPU checks pass on both. Main includes #9159, which does not supersede this correction.29f539a5f3/ fix8afdc2e10a:37 processes each (36GPU,1CPU), main31pass/6proof failures, fix37pass. This separately pinned matrix covers depth/copy/storage, MSAA/FMASK/retirement, journal, pixel interlock, guest layers, last writer, relocation, pooled range and shader-cache roundtrip. PipelineJournal enables its isolated temporary cache internally.Current paired pins, complete focused logs and coverage scope. The same Gist retains the earlier broader matrix and requested controls. Published history through3a28164803 is preserved by a normal merge. Main50757b01c6 subsequently adds only FreeType CID metadata; those AGC/write-watch/fixture/policy sources are unchanged. No Sonic-unblock, speedup or unchanged-main50757 execution claim.
Independent reported checks (separate from our local runs):
af4b99cca4merged onto main75227c7cdc. Imported proof fails3/3 on main and passes3/3 with the PR; unimported control passes3/3 on both. Reported60-test texture/depth/import/plane sweep:58pass/2fail main,59pass/1fail change; commonagc_host_import_cut_lifetimefailure (#10746) retained. Khronos1.4.363, required Vulkan/cacheoff/verbose CTest; no missing-layer line or VUID reported. This is the contributor’s report, not a fresh run or raw-log audit by us.57f506f811with this PR alone. Reported imported proof fails3/3 on main, passes3/3 plus10 consecutive with the PR; unimported control keeps passing. Reported full2310-test suite has no new failures beyond #10746, with a one-offagc_driver_depth_clear_hlefailure under load that passes5/5 alone and on rerun; its main-side status was not checked. Contributor report, not a raw-log audit or rerun by us.af4b99ccamerged onto main7a25f8762. Reported original partial-store proof fails3/3 on main and passes3/3 with the PR. Validated44-test sweep: main41pass/2fail/1skip; change42pass/1fail/1skip;42 loaded-layer logs,0VUID. Common #10746 failure and sparse-import skip retained. Contributor report; not a rerun or raw-log audit by us.af4b99ccamerged onto maina7a2eece4. Reported68-test storage/depth set repeated3times: main67/68 each, change68/68 each; the main failure is the original partial-store proof. Khronos1.4.363, required Vulkan/cache-off/verbose CTest; no missing-layer line or VUID. Reported full-suite2374/2375 passes, with the same #10746 failure on main too. Contributor report; not a rerun or raw-log audit by us.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T18:46:43Z.
Review: APPROVED
Reviewed exact head
3a28164803efab1d4cb1f4f79fe27d89df74d33eagainst currentmain(0ea0f25e1bfbf63e90bc28a3ca1bc4cd2a3972f6). The change advancesnowonly after a successfulHostImportForin the uncompressed upload branch, beforestampLayers(true)saves generations. It leaves the fast-clear path unchanged, so the generation used to prove its clear value is not refreshed after the proof; this matches the issue discussion. The exact head includes main5357acd, and current main has no later changes toTexture.cpp. I reviewed the reported paired ordinary/unimported runs and validation evidence: 12/12 focused processes pass across the NVIDIA RTX 5080 and AMD Radeon iGPU, with the Khronos layer confirmed and no VUIDs. I verifiedgit diff --check, current-main conventions, and a clean merge tree. I could not rerun AGC locally because this host CPU lacks the instruction extensions required by the test harness; the submitted physical-GPU runs cover the required comparison.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T20:39:34Z.
Review: APPROVED
Re-reviewed exact current head
af4b99cca49d8b49b9725e2bf42e0b9ab6fdb380after the normal merge update. The final production diff remains the two-line generation refresh after successfulHostImportForin the uncompressed branch; the fast-clear branch still retains the earlier proof generation. The refreshed report now includes a current-main (30be9b428b) versus refreshed-head (af4b99cca4) Windows comparison on both RTX 5080 and AMD Radeon Graphics: the imported proof failure is reported 3/3 per GPU on main and passes 3/3 per GPU with the change; the unimported control passes on both. The reported Khronos validation runs show no VUIDs. Independent Linux/RADV checks are non-regression evidence only. The focused GPU results are author-reported; I could not run the AGC suite locally. Hosted conventions/eligibility/labels pass; product jobs are skipped. I found no additional blocker in the updated diff.