Textures the title reads back are copied into title memory: the Gone Fishing boat stays afloat (VICTORY_TEXTURE_BACK, port of fxceless #999) #205
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!205
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-205"
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?
@TobiasFornell on GitHub · 2026-11-25 21:56 UTC · original
TobiasFornell:texture-readback-water→main· +463 −4 · 6 files · 1 commits · openIn the Gone Fishing mission the boat sinks right after the cutscene ("Cal fell off the boat"). The title's shaders write the water's height and flow into textures that its CPU reads back for the boat physics, and those writes never reach title memory. Geckomacabre's fxceless/victory-fork#999 copies such textures back after the submission; this is that change ported to this fork.
VICTORY_TEXTURE_BACKlists the sizes and formats to read back (256x256f41,256x256f16,64x64f16,128x128f36are the water's;VICTORY_TEXTURE_BACK=1takes those four). Unset, nothing changes.Run on Linux only (CachyOS, RX 9070 XT, RADV, Proton Experimental), from the shared Gone Fishing save (fxceless/victory-fork#863), on a Belobug-based tree with our Linux changes: without it the boat sinks; with it the boat stays afloat and the mission goes on ("Follow the plane"), 0 GPU page faults, 47 matched water textures in a 600 s run. This branch is the same logic ported to current
main: it builds and clippy finds nothing new, but I have not run it on currentmainitself (it needs the Wine fixes from #53/#100 to reach the world here). Not run on Windows.Some textures the title's shaders write are read by its CPU afterwards: in the Gone Fishing mission the water's height and flow, which the boat physics read. Without them in title memory the boat sinks right after the cutscene ("Cal fell off the boat"). With VICTORY_TEXTURE_BACK set, textures of the listed sizes and formats that a list writes through an unordered access view are copied back after the submission, in the console's tiling. VICTORY_TEXTURE_BACK=1 takes the four water kinds (256x256f41,256x256f16,64x64f16,128x128f36); unset, nothing changes. Port of fxceless/victory-fork pull request #999 (Geckomacabre). Source: fxceless/victory-fork#999 Co-authored-by: Geckomacabre <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>@adrianmjim on GitHub · 2026-11-26 19:49 UTC · original
Native Windows check of
81560c5(base4f62c2a), on an RX 7900 XT (driver 32.0.32029.2010) and on WARP. The game is not installed here, so I have nothing on the boat itself.Builds and tests
victorysucceed. Clippy on victory-gpu (default anddiagnostics) gives the same warnings as4f62c2a. None are in the new code.VICTORY_TEXTURE_BACKunset and1).texback::testspassed in every run that reached it (49 of 52). The other 3 were WARP runs that crashed earlier.watch::,frame::,query::,queue::,pipeline::library). The same families failed and crashed on4f62c2atoo.Copy-back layout (local test, not in this PR)
How the test works:
texture_written, then close and run the list.Layout::offset.Results:
SW_4KB_S.detilegives the pattern back.VICTORY_TEXTURE_BACKunset, title memory is not touched.One gap
_X, values 16 and up) is never copied back.SW_64KB_R_X(resource.rs:153).addressable, victory-formats texture.rs:486), sotilereturnsUnsupported.Once(texback.rs:311). Only the first such failure in a run is logged.Unsupported, mip 0line in #196: if your port logs the same way as this one, that line fits this case.Unsupportedfrom such a swizzle, because MSAA and non-2D textures are filtered out.texture readbacksmeter line would show whether one of the water textures is affected. The log could be once per address, like "texback matched texture".Smaller
replaced(texback.rs:129) only invalidates a pending copy when a new texture starts at exactly the same address.I have a local branch with the test on top of
81560c5if it is useful.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.