Copy GPU texture aliases after an upload from title memory #1241
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/fxceless--victory-fork!1241
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1241/head"
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?
@kesku on GitHub · 2026-11-26 01:31 UTC · original
kesku:fix/atlas-copy-after-upload→main· +0 −0 · 0 files · 0 commits · closed without mergingA 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.@Dathinel on GitHub · 2026-11-26 01:50 UTC · original
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