Copy GPU-written texture views after a CPU upload #141
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/141"
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 TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T04:02:26Z.
The renderer tracked texture uploads and alias copies with the same first-use flag. A CPU upload could set that flag before a texture view needed to copy the GPU-written data in the same command list.
Track the last GPU source copied into each host view for the lifetime of the recording. The copy runs after a CPU upload and when a different GPU source supplies the view. Repeated reads from the same source still use the existing state check.
The regression writes a known texel on the GPU, records the CPU upload and alias copy in one list, then reads the view back. It returned zero before the fix and the seeded texel afterward on the RTX 4090.
Adapted from the VI-BR-PORT commit and kesku's original fix.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T04:02:41Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
7993c1b7993c1bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.