startup: add opt-in placed input provenance diagnostics #3593

Manually merged
github merged 2 commits from github-bot/gh-3591 into gh-pr/3591/base 2026-11-30 12:09:22 +00:00 AGit
Owner

@⁠tedin7 on GitHub · 2026-11-30 11:54 UTC · original
tedin7:uppr16-diag-placed-input → main · +96 −3 · 5 files · 2 commits · merged 2026-11-30 12:08 UTC

Add a strictly opt-in, bounded diagnostic controlled by X2W_DIAG_PLACED_INPUT=1 (zero overhead when unset, capped per shader key + SRV) that logs the desktop resource, requested byte range, same-list copy ranges, cross-list recorded copies, UAV bindings, and clears when an indirect draw refuses a non-title-aliased placed buffer.

Documented in docs/startup-runtime.md.

**@⁠tedin7** on GitHub · 2026-11-30 11:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3591) `tedin7:uppr16-diag-placed-input` → `main` · +96 −3 · 5 files · 2 commits · merged 2026-11-30 12:08 UTC Add a strictly opt-in, bounded diagnostic controlled by `X2W_DIAG_PLACED_INPUT=1` (zero overhead when unset, capped per shader key + SRV) that logs the desktop resource, requested byte range, same-list copy ranges, cross-list recorded copies, UAV bindings, and clears when an indirect draw refuses a non-title-aliased placed buffer. Documented in `docs/startup-runtime.md`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 11:57:52 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 11:54 UTC · original · edited 2026-11-30 11:57 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-30T11:57:57.019002Z 78fc979 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-30 11:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3591#issuecomment-7277678988) · edited 2026-11-30 11:57 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"78fc9790f3ef34f9afba2c787ea51b6fde16b28a","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <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-30T11:57:57.019002Z">2026-11-30T11:57:57.019002Z</relative-time> | `78fc979` | 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>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 11:57 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78fc9790f3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 11:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3591#pullrequestreview-6111733451) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `78fc9790f3` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
@ -2690,0 +2723,4 @@
auto found = placed_input_copies.find(resource);
if (found != placed_input_copies.end()) copies = found->second;
}
log("x2w-diag placed-input %016llx srv %u source %d slot %d resource %p width %llu offset %llu bytes %llu same-list-tracking %d same-list %u ranges %s recorded-copies %u uav-bindings %u clears %u",
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 11:57 UTC · original

P2 Badge Keep provenance summaries within the logger's line limit

With X2W_TRANSLATED_INDIRECT_COPY_RANGES=1, a refused resource with many disjoint copy ranges can make this message exceed the 1,533-character payload limit in log() (d3d12_xs_device.cpp:431-438). A supported 64-range example with 1 MiB copies spaced 2 MiB apart produces approximately 1,600 characters, silently dropping recorded-copies, uav-bindings, and clears along with the last ranges. All four allowed reports can be truncated this way, leaving the requested provenance unavailable. Bound or split the range text, or emit the fixed summaries before it.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 11:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3591#discussion_r4738819083) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Keep provenance summaries within the logger's line limit** With `X2W_TRANSLATED_INDIRECT_COPY_RANGES=1`, a refused resource with many disjoint copy ranges can make this message exceed the 1,533-character payload limit in `log()` (`d3d12_xs_device.cpp:431-438`). A supported 64-range example with 1 MiB copies spaced 2 MiB apart produces approximately 1,600 characters, silently dropping `recorded-copies`, `uav-bindings`, and `clears` along with the last ranges. All four allowed reports can be truncated this way, leaving the requested provenance unavailable. Bound or split the range text, or emit the fixed summaries before it. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
github-bot changed target branch from main to gh-pr/3591/base 2026-11-30 12:09:21 +00:00
github manually merged commit 382d7d9fc9 into gh-pr/3591/base 2026-11-30 12:09:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.