Skip to content

GPU: re-register invalidated texture readback tickets - #1376

Merged
fxceless merged 1 commit into
fxceless:mainfrom
spk-c:submit/texture-readback-ticket
Nov 26, 2026
Merged

fxceless merged 1 commit into
fxceless:mainfrom
spk-c:submit/texture-readback-ticket

Conversation

@spk-c

@spk-c spk-c commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants