Copy GPU-written texture views after a CPU upload #141

Manually merged
github merged 1 commit from github-bot/gh-141 into main 2026-11-27 04:10:11 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 04:02 UTC · original
TaynanGT:fix/vi-br-gpu-texture-alias → main · +104 −2 · 3 files · 1 commits · merged 2026-11-27 04:07 UTC

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.

**@⁠TaynanGT** on GitHub · 2026-11-27 04:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/141) `TaynanGT:fix/vi-br-gpu-texture-alias` → `main` · +104 −2 · 3 files · 1 commits · merged 2026-11-27 04:07 UTC 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](https://github.com/edsuuu/VI-BR-PORT/commit/5c17c8c83b782a9c5f1bfa12fb1d2fa438c23e5b) and [kesku's original fix](https://github.com/fxceless/victory-fork/pull/1241).
Track GPU alias copies separately from texture uploads so a view can read the newer GPU contents. Verify the copy with D3D12 readback.

Adapted from edsuuu/VI-BR-PORT 5c17c8c83b782a9c5f1bfa12fb1d2fa438c23e5b, following kesku in fxceless/victory-fork #1241.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:04:45 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 04:02 UTC · original · edited 2026-11-27 04:05 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T04:03:21.876937Z 7993c1b PR opened
🔒 Security Review ✅ Completed 2026-11-27T04:05:30.551996Z 7993c1b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 04:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/141#issuecomment-7209473454) · edited 2026-11-27 04:05 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"7993c1bcb694d1667921f1cfd7d5f63e06e99ffe","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"7993c1bcb694d1667921f1cfd7d5f63e06e99ffe","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"7993c1bcb694d1667921f1cfd7d5f63e06e99ffe","mergeGateEnabled":false,"pullRequestNumber":141,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:03:21.876937Z">2026-11-27T04:03:21.876937Z</relative-time> | `7993c1b` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:05:30.551996Z">2026-11-27T04:05:30.551996Z</relative-time> | `7993c1b` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github manually merged commit 0d50938323 into main 2026-11-27 04:10:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.