GPU: re-register invalidated texture readback tickets #1376
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!1376
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1376"
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?
@spk-c on GitHub · 2026-11-26 19:28 UTC · original
spk-c:submit/texture-readback-ticket→main· +123 −4 · 4 files · 1 commits · merged 2026-11-26 23:06 UTCProblem
If a texture's backing memory is reused or remapped, the previous readback ticket becomes invalid. A later write in the same list finds the old target and suppresses registration, so the readback is dropped.
Change
Re-register a stale target in place; keep a fresh target and preserve deduplication. Use the existing ticket invalidation and mapping lock. Add a synthetic R32_FLOAT texture regression with a thread-local test configuration restored on drop.
Verification
Direct base
52ac4ec. Clean isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed.a_rewritten_back_texture_after_reuse_is_read_backexercised on a host device with WARP requested; registered, invalidated, registered again and recorded exactly one readback at close. Diff check passed. Staged asset policy fails solely on host.rs size (530160 bytes; upstream already 528954, limit 524288). Await the existing upstream split #1357 rather than weakening the policy or bundling unrelated source movement. No real water/gameplay claim. CI/review pending.AI-assisted adaptation from fork 0b4c9c8 and 575e3d5; no title assets.