Skip to content

tools: count Device::slot133 placements by outcome - #1697

Merged
R0Y00 merged 2 commits into
R0Y00:mainfrom
tedin7:x2w-frontier-triage-slot133
Nov 24, 2026
Merged

R0Y00 merged 2 commits into
R0Y00:mainfrom
tedin7:x2w-frontier-triage-slot133

Conversation

@tedin7

@tedin7 tedin7 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Handled Device::slot133(CreatePlacedResourceX?) lines end in aliased|not aliased gpuva=... (buffers) or not aliased [...] (textures), not in the HRESULT, so triage_run.py counted every one as an unhandled slot. In the #870 report that was 3,406 of 3,554 events. The ABI note on slot 133 (placed resource at a title address, handled in d3d12_xs_device.cpp) traces this to the classifier, not to a gap in the stand-in.

Change:

  • tools/startup/triage_run.py: a slot 133 line with -> 0x00000000 is counted in a new table by outcome (aliased, not_aliased) and no longer counts as unhandled. A line with any other HRESULT, or the "not committed -> E_INVALIDARG" line, is counted as failed and still counts as an unhandled Device::slot133 event. The table only appears when there are slot 133 lines, and it holds fixed tokens only (no addresses, no GPU addresses).
  • tests/startup_triage_run_check.py: a log with an aliased success, a not-aliased success, a failure 0x80070057, a texture success, an uncommitted address and one unrelated unhandled slot. Expected: outcomes 1 / 2 / 2, unhandled 2 (slot 133 failures) + 1 (other slot). Control: with the slot 133 rules switched off, the same log counts all five slot 133 lines as unhandled.
  • docs/startup-runtime.md: one paragraph in the triage section.

Verification:

  • Linux (python3 -I -B):
    • python3 -I -B tests/startup_triage_run_check.py: 0 failed.
    • python3 -I -B tests/docs_links_check.py: 17 Markdown files, 364 links, passed.
    • python3 -I -B tests/bidi_controls_check.py: 1287 files, passed.
    • git diff --check origin/main...HEAD: clean.
    • Mutation check (if norm_hr == "0x00000000": -> if True:): tests/startup_triage_run_check.py fails (exit 1, 3 failed), plus 5 single-change mutations (rule removed, failed HRESULT counted as success, failure not counted as an outcome, not-aliased merged into aliased, uncommitted-address rule removed) each fail with exit 1.
    • git merge-tree against #1598: 0 conflicts.
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit df97a04bd8dbc57cbef85ead9d6f6d7c051aa80e:
    • Debug (--preset dev): ctest --preset dev -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure -> 1/1 passed (0.26s).
    • Release /O2 (--preset release): ctest --preset release -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure -> 1/1 passed (0.29s).

Not covered: no raw #870 log, so the real aliased / not-aliased / failed split is not known yet; this PR makes it countable.

AI-assisted; commands listed were executed locally.

…ndled slots

Handled slot133 lines end in 'aliased|not aliased gpuva=...', so the triage report counted them as unhandled (96 percent of the unhandled count in R0Y00#870). They are now counted in their own table by outcome (aliased, not_aliased, failed). A line with an HRESULT other than 0, or an uncommitted address, still counts as failed and as an unhandled event.
@tedin7 tedin7 changed the title tools: count Device::slot133 placements by outcome, not as unhandled slots tools: count Device::slot133 placements by outcome Nov 24, 2026
@tedin7
tedin7 marked this pull request as ready for review November 24, 2026 17:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
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-24T17:37:20.804937Z df97a04 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.

@R0Y00
R0Y00 merged commit 515d6a3 into R0Y00:main Nov 24, 2026
5 checks passed
denn0x added a commit to denn0x/Xbox2Windows that referenced this pull request Nov 25, 2026
Brings R0Y00#1707 (output modifiers on float conversions, VEC_U_TO_F), R0Y00#1716 (operand-count guard),
R0Y00#1697 (triage slot-133 counts) and test/tool PRs.

Conflict: gfx2hlsl.py set_vf, took upstream's combined scale-then-clamp (same result as the
local comment described). Semantic fixes: the local op_v_cvt_f16_f32 handler bypasses VEC_U, so it
now applies R0Y00#1716's operand-count rule itself; the local coverage check expects R0Y00#1707's
U((float(int(v0))) * 2.0) form for v_cvt_f32_i32 mul:2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants