Confirm D3D12 mapping fences before publishing memory #203

Merged
TaynanGT merged 1 commit from upstream-pr/203 into main 2026-11-27 09:39:22 +00:00
TaynanGT commented 2026-11-27 09:12:02 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:12:02Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5524095657 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/203). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T09:12:02Z. --- 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
chatgpt-codex-connector[bot] commented 2026-11-27 09:39:36 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T09:39:36Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7214942141 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/203#issuecomment-7214942141). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T09:39:36Z. --- <!-- 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>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay!203
No description provided.