Copy GPU texture aliases after an upload from title memory #1238
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1241"
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 fxceless/victory-fork. Originally posted by kesku on 2026-11-26T01:31:22Z.
A command list can upload a texture from title memory, then sample it as a view of a GPU-written texture. The upload marks the view as used. If the GPU source needs no state transition,
aliasskips the copy and the shader reads the uploaded bytes.Track the last GPU source copied into each texture in the list. The first alias read copies from that source even if the list already uploaded the texture.
On an RTX 5080, the regression read back zero on
mainand the expected0x8c020100with the patch. All 10 resource tests passed.Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-26T01:50:49Z.
Confirmed the atlas readback on an RTX 3050 Laptop (4 GB). With the same synthetic test on our integration tree before the fix (
9a5ecb3), the first sampled texel was0x00000000. After integrating upstream's19a45d1, it was0x8c020100, exactly the value written by the GPU. I added a temporary print immediately before the assertion to confirm the test reached readback on both runs.cargo test -p victory-gpu --features diagnostics --lib alias_after_title_upload_copies_the_gpu_atlas -- --nocaptureIntegration commit. This checks the texture copy. Scene brightness and frame time remain unmeasured. AI-assisted verification.
Pull request closed