Confirm D3D12 mapping fences before publishing memory #203

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

@⁠TaynanGT on GitHub · 2026-11-27 09:12 UTC · original
TaynanGT:fix/mapping-fence-confirmation-200 → main · +238 −9 · 3 files · 1 commits · merged 2026-11-27 09:39 UTC

Check the mapping queue’s expected fence value after each wake. Return device removal for the sentinel, surface callback registration and Win32 wait errors, and keep the queue and its resources alive until an outstanding submission is confirmed. Each mapping gets a fresh marker after recovery.

Based on @⁠NotADonky43’s patch in #200. The focused tests cover removal, event registration failure, a stale wake, recovery ordering and native mapping when D3D12 is available. The author tested the submitted patch on an RTX 5070 Ti. This draft keeps the native case conditional on an available D3D12 adapter.

Refs #200

**@⁠TaynanGT** on GitHub · 2026-11-27 09:12 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/203) `TaynanGT:fix/mapping-fence-confirmation-200` → `main` · +238 −9 · 3 files · 1 commits · merged 2026-11-27 09:39 UTC Check the mapping queue’s expected fence value after each wake. Return device removal for the sentinel, surface callback registration and Win32 wait errors, and keep the queue and its resources alive until an outstanding submission is confirmed. Each mapping gets a fresh marker after recovery. Based on @⁠NotADonky43’s patch in #200. The focused tests cover removal, event registration failure, a stale wake, recovery ordering and native mapping when D3D12 is available. The author tested the submitted patch on an RTX 5070 Ti. This draft keeps the native case conditional on an available D3D12 adapter. Refs #200
Confirm the serialized mapping queue fence before returning success. Preserve outstanding submissions across wait or event errors and retry their marker before reusing the list.

Co-authored-by: NotADonky43 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 09:14:46 +00:00
github manually merged commit 99a7f9b167 into main 2026-11-27 10:39:57 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 09:39 UTC · original · edited 2026-11-27 09:41 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-27T09:40:37.074974Z 42ea1ad Draft marked ready
🔒 Security Review ✅ Completed 2026-11-27T09:40:59.606825Z 42ea1ad Draft marked ready
ℹ️ 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 09:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/203#issuecomment-7214942141) · edited 2026-11-27 09:41 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"42ea1ad6ed636810d03e952922d4de953017fe31","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"42ea1ad6ed636810d03e952922d4de953017fe31","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"42ea1ad6ed636810d03e952922d4de953017fe31","mergeGateEnabled":false,"pullRequestNumber":203,"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-27T09:40:37.074974Z">2026-11-27T09:40:37.074974Z</relative-time> | `42ea1ad` | Draft marked ready | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T09:40:59.606825Z">2026-11-27T09:40:59.606825Z</relative-time> | `42ea1ad` | Draft marked ready | <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>
This discussion has been locked. Commenting is limited to contributors.
No description provided.