Watch textures in composited frames #4992
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4992"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T16:47:18Z.
Fixes #4988 for the 8-bit formats supported by the watcher.
What it changes
When the plane compositor is active, the texture pop watcher now reads the composed 8-bit frame from the back buffer. The read happens in the same present list, before the local overlays are drawn. The back buffer is returned to its previous state after the read. Direct presents keep using their source texture.
A recycled read-back buffer must match the new frame's dimensions and format. The watcher still runs only within the configured time window and its existing queue limit. A changing display overlay can contribute to the counts.
How it was tested
5fabb46eand36e6a26a, with stub D3D12 calls. Main recorded no composed read. The patch recorded the back-buffer read between the two transitions, restored the state when no read was returned, and recorded no barriers outside the watch window. Direct reads still used the original source. Tested a pool with different sizes and RGBA/BGRA formats.cargo check --locked -p victory-gpu --features diagnosticsandcargo xtask policy --stagedpassed on Windows.Checked for overlap
VICTORY_POP_WATCH, and the affected files. #3488 wraps the copy call with its checked-copy helper. #4658 changes the swap-chain format. Neither adds the composed source to the watcher.@CLHelper, the setup in #4988 could confirm that the composed presentation now produces pop-watch lines.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.