Skip to content

Test build: storage-image write-back fixes combined (do not merge) - #5761

Closed
oneandonlydean wants to merge 8 commits into
boykopovar:mainfrom
oneandonlydean:test/storage-writeback-1014
Closed

oneandonlydean wants to merge 8 commits into
boykopovar:mainfrom
oneandonlydean:test/storage-writeback-1014

Conversation

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Test build only, not for merging. One build of main with #5671, #5679, #5707 and #5760 applied together, for the Windows reports of the storage-image write-back throw since #5596:

storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented

(#361, #5693, #5711, and the Stellar Blade, Sifu, Palworld and Super Meat Boy 3D reports). The Windows artifact of the full build linked below is the one to try. Each fix goes in through its own PR; this closes once they are in.

  • AI-assisted: yes

oneandonlydean and others added 8 commits October 14, 2026 18:51
…ves the write watch

On Windows the write watch is dropped in whole 64 KiB blocks
(WriteWatchCoverage::Exclude), but the unwatch hook was given the page
range of the import. An image with results pending in the same block as
an imported page, outside that page, lost the watch without its guest
bytes saved, and storing its results threw.

The hook now gets the span of blocks Exclude drops (ExcludedSpan, the same
block math), so every image with results pending in those blocks saves its
bytes first.
…en results land outside the write watch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es not cover

A fill turned into an image clear or an image copy invalidated the saved
guest bytes of every unit of each other image over its range. The flush
before it stores only the units it overlaps, so results still pending in
the other units lost their saved bytes, and storing them over memory
outside the write watch threw ("storing storage image results pending
over memory outside the write watch without the guest bytes saved before
them is not implemented").

Only the units over the filled or copied range lose their saved bytes now;
the others are compared with them at their store as before.
A write-back stored on the GPU over memory outside the write watch left its
units without saved guest bytes (only the CPU path saved them), so the next
store of results landing there threw (boykopovar#5711), and every refresh re-uploaded
the image. The stored ranges are now copied from the retile scratch into a
host-visible buffer behind the store and become the saved bytes when the
batch completes; a store or refresh that needs them first syncs that batch.
Units without a write generation pending when their range leaves the watch
save their bytes there too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VuBhHz31iDFifpyLeqz8TB
…n-1014

# Conflicts:
#	core/libs/prx/libSceAgcDriver/tests/execution/StoreOverUntracked.cpp
#	docs/dev/debt/libSceAgcDriver.md
…at save when results land

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VuBhHz31iDFifpyLeqz8TB
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed docs agc libSceAgc* labels Oct 14, 2026
This was referenced Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants