GPU: re-register invalidated texture readback tickets #1376

Manually merged
github merged 1 commit from github-bot/gh-1376 into gh-pr/1376/base 2026-11-27 01:04:07 +00:00 AGit
Owner

@⁠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 UTC

Problem

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_back exercised 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.

**@⁠spk-c** on GitHub · 2026-11-26 19:28 UTC · [original](https://github.com/fxceless/victory-fork/pull/1376) `spk-c:submit/texture-readback-ticket` → `main` · +123 −4 · 4 files · 1 commits · merged 2026-11-26 23:06 UTC ## Problem 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_back` exercised 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.
AI-assisted adaptation of fork 0b4c9c8 and 575e3d5; isolated regression with thread-local test configuration.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:47:24 +00:00
github-bot changed target branch from main to gh-pr/1376/base 2026-11-27 01:04:06 +00:00
github manually merged commit ae7b3153ac into gh-pr/1376/base 2026-11-27 01:04:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.