fix(agc): hash small storage images at unwatch when no upload copy proves their bytes #17791
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17791"
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 klosixgaming-arch on 2026-11-09T16:05:13Z.
What
Small storage images (up to
GenerationBaselineBytes) prove their guest bytes with the copy taken at upload. Two cases leave such an image with no usable copy:When the image's range then leaves the write watch while results are pending,
writeBackLayershas no proof of the guest bytes and throws: "storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented (unit 0 of 1: its bytes differ from the copy taken at its upload)".Cyberpunk 2077 (PPSA03974) hits this right after the title screen, and the game aborts.
This change gives those small images the same proof that large images already use, a hash taken when the range leaves the watch:
uploadmarks a small image uploaded without a copy as one to hash at unwatch.hashBeforeUnwatchandhashedAtUnwatchtake marked images.baselineMisschecks the unwatch hash of the current generation before the upload copy.Tested
Windows, NVIDIA GeForce RTX 5090.
main(d34caa9dbe) with #16974 aborts after the title with the error above. With this change added, it gets through the title, the lifepath menu and the character creator's Body Type screen without the error, and the frame dumps look right.^agc_(storage|unwatch|untracked|heap_mirror|sparse_heap|address_space|driver_untracked|driver_depth_plane_cpu)pass. These includeagc_storage_pending_after_unwatch,agc_storage_baseline_settled,agc_untracked_forgetandagc_driver_untracked_snapshot_hint.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)AI-assisted: yes. Written with AI assistance and reviewed by me.
Pull request closed