startup: name ExecuteIndirect pipeline refusal causes per pipeline key #3411

Merged
SimSalabimse merged 6 commits from upstream-pr/3411 into main 2026-11-29 18:41:06 +00:00
SimSalabimse commented 2026-11-28 23:11:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T23:11:04Z.


Summary

ExecuteIndirect refusals in the graphics-pipeline, compute-pipeline, and placeholder-signature buckets record a named cause and the bound pipeline key. Which calls are accepted does not change. The graphics matching refusal still uses one decision and one message: indirect graphics requires a direct list with a matching desktop pipeline and root.

known_pipeline_key does not write translation request files. It returns, in order, the mesh-cache key, the compute request key recorded for a slot 67 pipeline, an opt-in compute trace key, a console translation key, the stream-translation key recorded for a slot 86 pipeline, and otherwise the guest stream hash recorded at creation. That hash mixes the copied descriptor (pointer words cleared for slots 57 and 67) with the shader and state bytes copied at the same time. A slot 57 or 86 mesh pipeline with no translation or no profile, and a compute pipeline, therefore rank under the key recorded for that pipeline.

A matching refusal with no recorded stream is stored as no_pipeline_key. Every other code keeps its name when the lookup is 0. Key 0 is not a ranked pipeline. Those calls are x2w-d3d12 indirect-pipeline no-pipeline-key: calls N. The key-overflow call count does not include them.

PerReasonRefusalCensus still stores at most 128 (key, reason) pairs. Per-key totals continue past that cap, up to 1024 non-zero keys. A report prints the 32 highest keys and key-overflow: keys K calls C unstored-calls U for the rest.

tools/startup/triage_run.py adds ExecuteIndirect Refusal Causes from those lines. --shareable sums counts by bucket and reason and omits every pipeline key. The no-pipeline-key line is counts only in either mode.

Reason codes

  • graphics/no_translation: the matching refusal when a guest stream key was recorded and none of the named clauses below apply
  • graphics/no_pipeline_key: that same matching refusal when no guest stream was recorded
  • graphics/mesh_profile_missing: a slot 57 or 86 mesh pipeline with no reviewed .mesh57-state profile and no cached stage
  • graphics/translated_indirect_draw_off: X2W_TRANSLATED_INDIRECT_DRAW is off
  • graphics/guest_root_mismatch: the desktop pipeline root differs from the root bound on the list
  • graphics/non_direct_list: the call is on a compute list
  • graphics/pipeline_kind_mismatch: a mesh command is bound to a non-mesh pipeline, or the reverse
  • graphics/cached_mesh_root: the cached mesh creation root or indexing mode differs
  • graphics/cached_mesh_constants: cached mesh root constants are incomplete
  • graphics/translated_draw_record: recording a translated draw failed
  • graphics/mesh_xmem_read: a mesh indirect read from copied memory failed
  • graphics/mesh_bind: binding the mesh shader resources for the indirect draw failed
  • compute/no_compute_pipeline: a dispatch has no desktop compute pipeline
  • compute/builder_gate: the compute builder gate refused the dispatch
  • compute/translated_dispatch_shape: translated Dispatch requires one rootless command and no count buffer
  • compute/translated_dispatch_record: recording a translated dispatch failed
  • placeholder/placeholder_signature: the command signature is a placeholder
  • unknown: a refusal site passed no code; the bucket is still graphics, compute, or placeholder

Tests

On the Windows test PC (MSVC, WARP) at head e799c4e134347bb41b6def5fe7aed1c47ff492ab, ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure: cmake --build --preset dev exit 0, 27/27 passed, ctest exit 0. None skipped. The branch is 10 commits behind current main c04e0dd6 and still merges cleanly.

startup_indirect_bucket_mesh-profile_warp and startup_indirect_bucket_no-translation_warp require a non-zero pipeline key. startup_indirect_bucket_no-translation_control_warp still reaches the target refusal and must not record no_translation. A control with no pipeline records graphics/no_pipeline_key and must not rank a key. Mesh cases return 77 when mesh shaders or a dispatch-mesh signature are unavailable.

Linux, head 633f3784: g++ and clang++ with -std=c++17 -Wall -Wextra -Werror -Werror=narrowing on tests/startup_per_reason_refusal_census_check.cpp exit 0. The -DX2W_CENSUS_KEEP_LAST and -DX2W_CENSUS_KEEP_FIRST controls exit 1. The python-linux check list, 259 checks, exits 0. tests/startup_triage_run_check.py and tests/startup_triage_run_cli_check.py exit 0.

Docs

docs/startup-runtime.md lists every reason code above, the guest stream hash, and the no-pipeline-key line. docs/wine.md shows triage_run.py --shareable.

Refs #3405

AI-assisted (Cursor)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5545502978 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T23:11:04Z. --- ## Summary ExecuteIndirect refusals in the graphics-pipeline, compute-pipeline, and placeholder-signature buckets record a named cause and the bound pipeline key. Which calls are accepted does not change. The graphics matching refusal still uses one decision and one message: `indirect graphics requires a direct list with a matching desktop pipeline and root`. `known_pipeline_key` does not write translation request files. It returns, in order, the mesh-cache key, the compute request key recorded for a slot 67 pipeline, an opt-in compute trace key, a console translation key, the stream-translation key recorded for a slot 86 pipeline, and otherwise the guest stream hash recorded at creation. That hash mixes the copied descriptor (pointer words cleared for slots 57 and 67) with the shader and state bytes copied at the same time. A slot 57 or 86 mesh pipeline with no translation or no profile, and a compute pipeline, therefore rank under the key recorded for that pipeline. A matching refusal with no recorded stream is stored as `no_pipeline_key`. Every other code keeps its name when the lookup is 0. Key 0 is not a ranked pipeline. Those calls are `x2w-d3d12 indirect-pipeline no-pipeline-key: calls N`. The key-overflow call count does not include them. `PerReasonRefusalCensus` still stores at most 128 `(key, reason)` pairs. Per-key totals continue past that cap, up to 1024 non-zero keys. A report prints the 32 highest keys and `key-overflow: keys K calls C unstored-calls U` for the rest. `tools/startup/triage_run.py` adds `ExecuteIndirect` Refusal Causes from those lines. `--shareable` sums counts by bucket and reason and omits every pipeline key. The no-pipeline-key line is counts only in either mode. ### Reason codes - `graphics/no_translation`: the matching refusal when a guest stream key was recorded and none of the named clauses below apply - `graphics/no_pipeline_key`: that same matching refusal when no guest stream was recorded - `graphics/mesh_profile_missing`: a slot 57 or 86 mesh pipeline with no reviewed `.mesh57-state` profile and no cached stage - `graphics/translated_indirect_draw_off`: `X2W_TRANSLATED_INDIRECT_DRAW` is off - `graphics/guest_root_mismatch`: the desktop pipeline root differs from the root bound on the list - `graphics/non_direct_list`: the call is on a compute list - `graphics/pipeline_kind_mismatch`: a mesh command is bound to a non-mesh pipeline, or the reverse - `graphics/cached_mesh_root`: the cached mesh creation root or indexing mode differs - `graphics/cached_mesh_constants`: cached mesh root constants are incomplete - `graphics/translated_draw_record`: recording a translated draw failed - `graphics/mesh_xmem_read`: a mesh indirect read from copied memory failed - `graphics/mesh_bind`: binding the mesh shader resources for the indirect draw failed - `compute/no_compute_pipeline`: a dispatch has no desktop compute pipeline - `compute/builder_gate`: the compute builder gate refused the dispatch - `compute/translated_dispatch_shape`: translated Dispatch requires one rootless command and no count buffer - `compute/translated_dispatch_record`: recording a translated dispatch failed - `placeholder/placeholder_signature`: the command signature is a placeholder - `unknown`: a refusal site passed no code; the bucket is still graphics, compute, or placeholder ## Tests On the Windows test PC (MSVC, WARP) at head `e799c4e134347bb41b6def5fe7aed1c47ff492ab`, `ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure`: `cmake --build --preset dev` exit 0, 27/27 passed, ctest exit 0. None skipped. The branch is 10 commits behind current main `c04e0dd6` and still merges cleanly. `startup_indirect_bucket_mesh-profile_warp` and `startup_indirect_bucket_no-translation_warp` require a non-zero pipeline key. `startup_indirect_bucket_no-translation_control_warp` still reaches the target refusal and must not record `no_translation`. A control with no pipeline records `graphics/no_pipeline_key` and must not rank a key. Mesh cases return 77 when mesh shaders or a dispatch-mesh signature are unavailable. Linux, head 633f3784: `g++` and `clang++` with `-std=c++17 -Wall -Wextra -Werror -Werror=narrowing` on `tests/startup_per_reason_refusal_census_check.cpp` exit 0. The `-DX2W_CENSUS_KEEP_LAST` and `-DX2W_CENSUS_KEEP_FIRST` controls exit 1. The python-linux check list, 259 checks, exits 0. `tests/startup_triage_run_check.py` and `tests/startup_triage_run_cli_check.py` exit 0. ## Docs `docs/startup-runtime.md` lists every reason code above, the guest stream hash, and the no-pipeline-key line. `docs/wine.md` shows `triage_run.py --shareable`. Refs #3405 AI-assisted (Cursor)
Leyukaka commented 2026-11-28 23:53:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T23:53:30Z.


Reviewed 633f3784 by its diff. Which calls are refused does not change (all 11 refuse sites differ only in the code they pass), the codes are static strings and the per-call logs stay bounded (16 plus the first 8 pairs). Points:

  1. Output changes not in the body. The per-call refusal line format changes; the existing indirect-draw and indirect-other reports gain key-total, key-overflow and no-pipeline-key lines; and known_pipeline_key now also returns compute_request_key (ahead of compute_trace_key) and falls back to the new creation-time guest_stream_key hash for any pipeline recorded by note_pipeline (slots 55/57/62/67/86), which changes the indirect-other census key and the indirect-recorded trace key. Pointer words are cleared only for slots 57 and 67, so the slot 55/62/86 hashes include raw pointer words. The body still names head 0e864258 and does not mention no_pipeline_key or the hash key.
  2. Ranking by kind. reason=graphics/<code> carries no draw / drawindexed / dispatchmesh kind, so mesh and draw refusals mix; on a run of main 0614f68c, DispatchMesh alone accounts for 1,923,473 refused commands. Past 128 pairs, calls are counted only in overflow calls and the key totals, with no cause. Suggest the kind in the reason and a per-code-and-kind counter without the cap.
  3. Cost per refused call. In these three buckets each refused call runs known_pipeline_key (up to two shared SRW locks), the matching refusal adds a pipeline_info lookup, then the census mutex, a linear scan of up to 1024 keys (skipped for key 0) and a scan of up to 128 pairs. The header still says "not a per-draw hot path"; that run had about 2.8 million refused calls in these buckets.
  4. Tests. Nine codes are asserted with controls. Not reached: builder_gate, translated_dispatch_shape / translated_dispatch_record, cached_mesh_root / cached_mesh_constants, translated_draw_record, the pipeline variant of mesh_xmem_read, mesh_bind (unknown is unreachable, every site passes a code). No test covers: in d3d12_xs_device.cpp, indirect_pipeline_refusal_code::cached_mesh_root changed to cached_mesh_constants; (info->path == 57 || info->path == 86) cut to info->path == 57; in triage_run.py, max(pipeline_keys.get(key, 0), calls) replaced by calls.

Minor: no_translation still mixes an untranslated console pipeline and a desktop pipeline with no recorded indirect root, and no_pipeline_key mixes no pipeline bound and a pipeline with no recorded stream; in indirect_graphics_match_code the env_on and !cached_mesh tests are redundant. On a placeholder refusal with no pass yet, the lambda's pass_of(self) now allocates a Pass.

Comment, not a change request: the PR is diagnostic only and refuses the same calls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7247731506 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7247731506). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T23:53:30Z. --- Reviewed `633f3784` by its diff. Which calls are refused does not change (all 11 refuse sites differ only in the code they pass), the codes are static strings and the per-call logs stay bounded (16 plus the first 8 pairs). Points: 1. **Output changes not in the body.** The per-call refusal line format changes; the existing `indirect-draw` and `indirect-other` reports gain `key-total`, `key-overflow` and `no-pipeline-key` lines; and `known_pipeline_key` now also returns `compute_request_key` (ahead of `compute_trace_key`) and falls back to the new creation-time `guest_stream_key` hash for any pipeline recorded by `note_pipeline` (slots 55/57/62/67/86), which changes the `indirect-other` census key and the `indirect-recorded` trace key. Pointer words are cleared only for slots 57 and 67, so the slot 55/62/86 hashes include raw pointer words. The body still names head `0e864258` and does not mention `no_pipeline_key` or the hash key. 2. **Ranking by kind.** `reason=graphics/<code>` carries no draw / drawindexed / dispatchmesh kind, so mesh and draw refusals mix; on a run of main `0614f68c`, `DispatchMesh` alone accounts for 1,923,473 refused commands. Past 128 pairs, calls are counted only in `overflow calls` and the key totals, with no cause. Suggest the kind in the reason and a per-code-and-kind counter without the cap. 3. **Cost per refused call.** In these three buckets each refused call runs `known_pipeline_key` (up to two shared SRW locks), the matching refusal adds a `pipeline_info` lookup, then the census mutex, a linear scan of up to 1024 keys (skipped for key 0) and a scan of up to 128 pairs. The header still says "not a per-draw hot path"; that run had about 2.8 million refused calls in these buckets. 4. **Tests.** Nine codes are asserted with controls. Not reached: `builder_gate`, `translated_dispatch_shape` / `translated_dispatch_record`, `cached_mesh_root` / `cached_mesh_constants`, `translated_draw_record`, the pipeline variant of `mesh_xmem_read`, `mesh_bind` (`unknown` is unreachable, every site passes a code). No test covers: in `d3d12_xs_device.cpp`, `indirect_pipeline_refusal_code::cached_mesh_root` changed to `cached_mesh_constants`; `(info->path == 57 || info->path == 86)` cut to `info->path == 57`; in `triage_run.py`, `max(pipeline_keys.get(key, 0), calls)` replaced by `calls`. Minor: `no_translation` still mixes an untranslated console pipeline and a desktop pipeline with no recorded indirect root, and `no_pipeline_key` mixes no pipeline bound and a pipeline with no recorded stream; in `indirect_graphics_match_code` the `env_on` and `!cached_mesh` tests are redundant. On a placeholder refusal with no pass yet, the lambda's `pass_of(self)` now allocates a `Pass`. Comment, not a change request: the PR is diagnostic only and refuses the same calls.
lukaslw-lab commented 2026-11-29 11:23:43 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-29T11:23:43Z.

Review: COMMENTED


Reviewed 633f3784 by reading the diff; not built or run. One issue before merge: the cost per refused call (point 3 above), with numbers.

  • With no switch, every refused slot-61 call in the three buckets runs known_pipeline_key, an snprintf of the reason (d3d12_xs_device.cpp:3826), the census mutex and the key/pair scans (per_reason_refusal_census.h:39-42). In a 360 s startup run from a save on main 46226004, the existing x2w-render indirect: line ends at draw 1,451,072, drawindexed 301,750, dispatchmesh 15,874,353, compute dispatch 4,853,572, placeholder 252,513: about 22.7 million refused calls, roughly 3,000 per frame. That run is CPU-bound (about 5.4 cores busy, GPU 3D about 18 %).
  • Suggest interlocked per-code, per-kind counters for every call, and the keyed census only for the first few calls per code, or behind an opt-in switch.
  • Merges cleanly into current main.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6102650427 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#pullrequestreview-6102650427). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-29T11:23:43Z. **Review:** COMMENTED --- Reviewed `633f3784` by reading the diff; not built or run. One issue before merge: the cost per refused call (point 3 above), with numbers. - With no switch, every refused slot-61 call in the three buckets runs `known_pipeline_key`, an `snprintf` of the reason (`d3d12_xs_device.cpp:3826`), the census mutex and the key/pair scans (`per_reason_refusal_census.h:39-42`). In a 360 s startup run from a save on main `46226004`, the existing `x2w-render indirect:` line ends at draw 1,451,072, drawindexed 301,750, dispatchmesh 15,874,353, compute dispatch 4,853,572, placeholder 252,513: about 22.7 million refused calls, roughly 3,000 per frame. That run is CPU-bound (about 5.4 cores busy, GPU 3D about 18 %). - Suggest interlocked per-code, per-kind counters for every call, and the keyed census only for the first few calls per code, or behind an opt-in switch. - Merges cleanly into current main.
JohnConnorNPC commented 2026-11-29 12:52:25 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T12:52:25Z.


I reviewed e799c4e1 (rebased on main 77d1ba4d, 0 behind) by reading it. I also ran benchmarks and the platform-independent checks on Linux. I did no Windows or WARP run.

The per-call cost is fixed by e799c4e1. This is the point lukaslw-lab and Leyukaka raised. On 633f3784 I timed note() plus the snprintf from that head's per_reason_refusal_census.h (g++ -O2, 4 M calls): 117–300 ns per call on one thread and 270–817 ns on four, for 16 to 1024 keys. That was all under one mutex. In the new path each refused call does pipeline_refusal_index, an interlocked add and a sample check. A copy of that path takes 9.6 ns (no_translation, the first name) to 44.6 ns (placeholder_signature, a late one) per call on one thread, and 20.7–25.5 ns on four, with no lock. At the ~63,000 refused calls per second in lukaslw-lab's run, that's under 3 ms per second.

At this head, python3 -B tests/startup_triage_run_check.py reports startup triage_run checks: 0 failed. tests/startup_per_reason_refusal_census_check.cpp (g++ -Wall -Wextra -Werror) prints PASS, and the X2W_CENSUS_KEEP_LAST and X2W_CENSUS_KEEP_FIRST controls fail it with 7 and 6 checks.

MUST

  1. Nobody has run this head's runtime fixtures yet. e799c4e1 changes the refuse path in d3d12_xs_device.cpp, and startup_indirect_draw_indexed.cpp now expects a x2w-d3d12 indirect-pipeline count <kind> <bucket>/<code> 1 line from it. The pr preset doesn't include those tests: the Windows CI log at this head has 100% tests passed out of 81, and grep -c 'startup_indirect_bucket' on it gives 0. The receipts in the body are for 633f3784. Please post the same ctest --preset dev WARP run at e799c4e1, with the bucket tests and their controls.

SHOULD
2. Nothing tests the new sample window or the opt-in. Every bucket fixture refuses one call per cell, so two mutants pass all tests: seen >= pipeline_key_sample_limit → false (key every call, which brings the old cost back), and pipeline_keys_opt_in() → false. No test sets X2W_INDIRECT_PIPELINE_KEYS. Two checks would pin them: a case with 9 or more refusals in one cell that expects exactly 8 keyed calls and the full count, and an opt-in run that keys all of them.
3. triage_run.py still prints pipeline keys by default (shareable: bool = False). With the sample, the first 8 keys per cell show up in every default report. The module docstring still says the report "is built only from allowlisted structured values" and lists which ones, and the opening sentence of the triage_run.py paragraph in docs/startup-runtime.md describes an "allowlist-only Markdown report" with the same list. Only docs/wine.md tells people to pass --shareable, and the PR's own test treats a key in shareable output as a failure. Either make keys opt-in so the default matches the documented contract, or update those two places to say the report includes keys.

NIT
4. Two counts depend on the sample window: count <kind> graphics/no_pipeline_key and count <kind> graphics/no_translation. A bound pipeline whose key is 0 is moved to no_pipeline_key only when it falls in the first 8 calls of its no_translation cell. After that it stays in no_translation. The code comment says so, but the per-kind counts paragraph in docs/startup-runtime.md doesn't.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7256124172 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7256124172). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T12:52:25Z. --- I reviewed `e799c4e1` (rebased on `main` `77d1ba4d`, 0 behind) by reading it. I also ran benchmarks and the platform-independent checks on Linux. I did no Windows or WARP run. **The per-call cost is fixed by `e799c4e1`.** This is the point lukaslw-lab and Leyukaka raised. On `633f3784` I timed `note()` plus the `snprintf` from that head's `per_reason_refusal_census.h` (g++ -O2, 4 M calls): 117–300 ns per call on one thread and 270–817 ns on four, for 16 to 1024 keys. That was all under one mutex. In the new path each refused call does `pipeline_refusal_index`, an interlocked add and a sample check. A copy of that path takes 9.6 ns (`no_translation`, the first name) to 44.6 ns (`placeholder_signature`, a late one) per call on one thread, and 20.7–25.5 ns on four, with no lock. At the ~63,000 refused calls per second in lukaslw-lab's run, that's under 3 ms per second. At this head, `python3 -B tests/startup_triage_run_check.py` reports `startup triage_run checks: 0 failed`. `tests/startup_per_reason_refusal_census_check.cpp` (g++ `-Wall -Wextra -Werror`) prints `PASS`, and the `X2W_CENSUS_KEEP_LAST` and `X2W_CENSUS_KEEP_FIRST` controls fail it with 7 and 6 checks. **MUST** 1. Nobody has run this head's runtime fixtures yet. `e799c4e1` changes the refuse path in `d3d12_xs_device.cpp`, and `startup_indirect_draw_indexed.cpp` now expects a `x2w-d3d12 indirect-pipeline count <kind> <bucket>/<code> 1` line from it. The `pr` preset doesn't include those tests: the Windows CI log at this head has `100% tests passed out of 81`, and `grep -c 'startup_indirect_bucket'` on it gives `0`. The receipts in the body are for `633f3784`. Please post the same `ctest --preset dev` WARP run at `e799c4e1`, with the bucket tests and their controls. **SHOULD** 2. Nothing tests the new sample window or the opt-in. Every bucket fixture refuses one call per cell, so two mutants pass all tests: `seen >= pipeline_key_sample_limit` → `false` (key every call, which brings the old cost back), and `pipeline_keys_opt_in()` → `false`. No test sets `X2W_INDIRECT_PIPELINE_KEYS`. Two checks would pin them: a case with 9 or more refusals in one cell that expects exactly 8 keyed calls and the full count, and an opt-in run that keys all of them. 3. `triage_run.py` still prints pipeline keys by default (`shareable: bool = False`). With the sample, the first 8 keys per cell show up in every default report. The module docstring still says the report "is built only from allowlisted structured values" and lists which ones, and the opening sentence of the `triage_run.py` paragraph in `docs/startup-runtime.md` describes an "allowlist-only Markdown report" with the same list. Only `docs/wine.md` tells people to pass `--shareable`, and the PR's own test treats a key in shareable output as a failure. Either make keys opt-in so the default matches the documented contract, or update those two places to say the report includes keys. **NIT** 4. Two counts depend on the sample window: `count <kind> graphics/no_pipeline_key` and `count <kind> graphics/no_translation`. A bound pipeline whose key is 0 is moved to `no_pipeline_key` only when it falls in the first 8 calls of its `no_translation` cell. After that it stays in `no_translation`. The code comment says so, but the per-kind counts paragraph in `docs/startup-runtime.md` doesn't. AI-assisted.
Leyukaka commented 2026-11-29 13:16:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T13:16:35Z.

Review: COMMENTED


Reviewed e799c4e1 by its diff, code reading only; nothing built or run. Only points not already raised above, all about the fallback key (guest_stream_key).

MUST

  1. src/startup_stubs/d3d12_capture.inl:381 — the slot 57 hash still contains addresses, so the key does not "follow the stream" as the comment at :372, docs/startup-runtime.md:657-658 and the body say. hash_guest_stream clears words 0, 1, 3, 5, 7, 9, 10, 13. For the 0x300-byte fixed mesh descriptor, normalize_mesh57_descriptor (src/startup_stubs/mesh57_profile.h:43-60) treats 0x78, 0x120, 0x128, 0x168, 0x178, 0x198, 0x1d8, 0x280, 0x288, 0x2c8, 0x2d8, 0x2f8 as pointers, 0x110 / 0x270 as 32-bit addresses, and 0x160 / 0x2c0 as an allocation address that "varies independently". None of those are cleared here. Scenario: a slot 57 mesh pipeline with no profile (graphics/mesh_profile_missing, the case the body names) has no mesh86_key and no translation, so known_pipeline_key (d3d12_draw.inl:1246) returns this hash; the same stream created at another address, or in another run, gets another key, splits across key-total rows and cannot be compared between two reports. Either hash normalize_mesh57_descriptor(info.desc) for slot 57, or state in the docs and body that the slot 57 key is per allocation like slots 55/62/86. The slot 57 fixture (tests/startup_indirect_draw_indexed.cpp:1998) uses a zero-filled descriptor with only word 0 set, so it cannot see this.

SHOULD

  1. d3d12_capture.inl:438 / :395-396 — shader bytes are in the hash only for a fixed mesh slot 57 pipeline. fixed_ms / fixed_ps are copied only when !words[9] && !words[10] && words[14]. For a slot 57 pipeline with a vertex stage (words 9/10 set) no shader bytes are copied, and word 10, cleared as a "pointer word", is the vertex stage length (d3d12_draw.inl:1187, b_bytes = words[10]). Scenario: two such pipelines with the same fixed state and the same pixel stage length but different shader code get one key and one key-total row under graphics/no_translation or graphics/translated_indirect_draw_off. For slot 67 neither code, data nor state blocks are copied (:444 is path == 57 only), so when compute_request_key is 0 (publishing disabled or the description refused) the key is the description fields alone, and it covers up to 0x300 bytes where publish_compute_request reads 12 words. The sentence "mixes the copied descriptor with the shader and state bytes" in the body and at docs/startup-runtime.md:657 should say which slots it holds for.

  2. d3d12_xs_device.cpp:3838-3850, tools/startup/triage_run.py:714, :731 — the sample window is per code and kind, not per key. Without X2W_INDIRECT_PIPELINE_KEYS=1 the keyed census receives at most 8 calls per cell, so key-total and the pair rows hold the first 8 calls of each cell, not the pipelines with the most refusals. Scenario: a default run with millions of dispatchmesh graphics/mesh_profile_missing refusals over many pipelines reports at most 8 keys for that cell, with calls summing to 8, under the headings "Top pipeline keys by refusal calls" and "Latest cumulative count per pipeline key and cause". Suggest the headings say "sampled" unless the opt-in was set, or sample the first N calls per key.

NIT

  1. The body still describes 633f3784: it does not mention the count <kind> <bucket>/<code> lines, the 8-call window or X2W_INDIRECT_PIPELINE_KEYS, and "Per-key totals continue past that cap" and "A matching refusal with no recorded stream is stored as no_pipeline_key" now hold only inside the window or with the opt-in.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6103036185 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#pullrequestreview-6103036185). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T13:16:35Z. **Review:** COMMENTED --- Reviewed `e799c4e1` by its diff, code reading only; nothing built or run. Only points not already raised above, all about the fallback key (`guest_stream_key`). **MUST** 1. `src/startup_stubs/d3d12_capture.inl:381` — the slot 57 hash still contains addresses, so the key does not "follow the stream" as the comment at `:372`, `docs/startup-runtime.md:657-658` and the body say. `hash_guest_stream` clears words 0, 1, 3, 5, 7, 9, 10, 13. For the 0x300-byte fixed mesh descriptor, `normalize_mesh57_descriptor` (`src/startup_stubs/mesh57_profile.h:43-60`) treats `0x78, 0x120, 0x128, 0x168, 0x178, 0x198, 0x1d8, 0x280, 0x288, 0x2c8, 0x2d8, 0x2f8` as pointers, `0x110` / `0x270` as 32-bit addresses, and `0x160` / `0x2c0` as an allocation address that "varies independently". None of those are cleared here. Scenario: a slot 57 mesh pipeline with no profile (`graphics/mesh_profile_missing`, the case the body names) has no `mesh86_key` and no translation, so `known_pipeline_key` (`d3d12_draw.inl:1246`) returns this hash; the same stream created at another address, or in another run, gets another key, splits across `key-total` rows and cannot be compared between two reports. Either hash `normalize_mesh57_descriptor(info.desc)` for slot 57, or state in the docs and body that the slot 57 key is per allocation like slots 55/62/86. The slot 57 fixture (`tests/startup_indirect_draw_indexed.cpp:1998`) uses a zero-filled descriptor with only word 0 set, so it cannot see this. **SHOULD** 2. `d3d12_capture.inl:438` / `:395-396` — shader bytes are in the hash only for a fixed mesh slot 57 pipeline. `fixed_ms` / `fixed_ps` are copied only when `!words[9] && !words[10] && words[14]`. For a slot 57 pipeline with a vertex stage (words 9/10 set) no shader bytes are copied, and word 10, cleared as a "pointer word", is the vertex stage length (`d3d12_draw.inl:1187`, `b_bytes = words[10]`). Scenario: two such pipelines with the same fixed state and the same pixel stage length but different shader code get one key and one `key-total` row under `graphics/no_translation` or `graphics/translated_indirect_draw_off`. For slot 67 neither code, data nor state blocks are copied (`:444` is `path == 57` only), so when `compute_request_key` is 0 (publishing disabled or the description refused) the key is the description fields alone, and it covers up to 0x300 bytes where `publish_compute_request` reads 12 words. The sentence "mixes the copied descriptor with the shader and state bytes" in the body and at `docs/startup-runtime.md:657` should say which slots it holds for. 3. `d3d12_xs_device.cpp:3838-3850`, `tools/startup/triage_run.py:714`, `:731` — the sample window is per code and kind, not per key. Without `X2W_INDIRECT_PIPELINE_KEYS=1` the keyed census receives at most 8 calls per cell, so `key-total` and the pair rows hold the first 8 calls of each cell, not the pipelines with the most refusals. Scenario: a default run with millions of `dispatchmesh graphics/mesh_profile_missing` refusals over many pipelines reports at most 8 keys for that cell, with calls summing to 8, under the headings "Top pipeline keys by refusal calls" and "Latest cumulative count per pipeline key and cause". Suggest the headings say "sampled" unless the opt-in was set, or sample the first N calls per key. **NIT** 4. The body still describes `633f3784`: it does not mention the `count <kind> <bucket>/<code>` lines, the 8-call window or `X2W_INDIRECT_PIPELINE_KEYS`, and "Per-key totals continue past that cap" and "A matching refusal with no recorded stream is stored as `no_pipeline_key`" now hold only inside the window or with the opt-in.
SimSalabimse commented 2026-11-29 13:18:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T13:18:47Z.


Windows test PC (MSVC, WARP, --preset dev, -j 1), at e799c4e134347bb41b6def5fe7aed1c47ff492ab. cmake --build --preset dev exit 0.

ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure

27/27 passed, ctest exit 0. None skipped.

  • startup_indirect_translated_refusal_census_warp: x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0). A valid draw did not increment refusals (8/8 non-clear pixels).
  • startup_indirect_translated_refusal_census_control_warp: required mismatch. Got total 5, distinct keys 3, distinct pairs 3.
  • startup_indirect_other_refusal_census_warp: x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).
  • startup_indirect_other_refusal_census_control_warp: required mismatch. Got total 3, distinct keys 2, distinct pairs 2.

Bucket cases and their controls, from the test's own success line. None returned 77.

  • no-translation: graphics/no_translation. Control must not record that code and must reach the target refusal.
  • mesh-profile: graphics/mesh_profile_missing. Control: graphics/no_pipeline_key.
  • mesh-profile-86: graphics/mesh_profile_missing. Control: graphics/no_translation.
  • translated-draw-off: graphics/translated_indirect_draw_off. Control must not record that code.
  • guest-root: graphics/guest_root_mismatch. Control must not record that code.
  • non-direct: graphics/non_direct_list. Control: graphics/no_pipeline_key.
  • pipeline-kind: graphics/pipeline_kind_mismatch. Control must not record that code.
  • placeholder: placeholder/placeholder_signature. Control: graphics/no_pipeline_key.
  • compute-pipeline: compute/no_compute_pipeline. Control: graphics/no_pipeline_key.

Each case with an expected reason also requires x2w-d3d12 indirect-pipeline count <kind> <reason> 1 in the census report. None of those checks failed. The success stdout does not print that line, so this comment does not quote one.

  • startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).
  • startup_per_reason_refusal_census_keep-last_control (WILL_FAIL): FAIL (7 checks).
  • startup_per_reason_refusal_census_keep-first_control (WILL_FAIL): FAIL (6 checks).
  • startup_triage_run: startup triage_run checks: 0 failed.
  • runtime_startup_triage_run_cli_check passed.

The branch is 10 commits behind current main c04e0dd6 and still merges cleanly. This run does not cover the sample window or X2W_INDIRECT_PIPELINE_KEYS, and it does not change the triage_run.py default keys.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7256444893 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7256444893). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-29T13:18:47Z. --- Windows test PC (MSVC, WARP, `--preset dev`, `-j 1`), at `e799c4e134347bb41b6def5fe7aed1c47ff492ab`. `cmake --build --preset dev` exit 0. ``` ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure ``` 27/27 passed, ctest exit 0. None skipped. - `startup_indirect_translated_refusal_census_warp`: `x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0)`. A valid draw did not increment refusals (8/8 non-clear pixels). - `startup_indirect_translated_refusal_census_control_warp`: required mismatch. Got total 5, distinct keys 3, distinct pairs 3. - `startup_indirect_other_refusal_census_warp`: `x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0)`. - `startup_indirect_other_refusal_census_control_warp`: required mismatch. Got total 3, distinct keys 2, distinct pairs 2. Bucket cases and their controls, from the test's own success line. None returned 77. - `no-translation`: `graphics/no_translation`. Control must not record that code and must reach the target refusal. - `mesh-profile`: `graphics/mesh_profile_missing`. Control: `graphics/no_pipeline_key`. - `mesh-profile-86`: `graphics/mesh_profile_missing`. Control: `graphics/no_translation`. - `translated-draw-off`: `graphics/translated_indirect_draw_off`. Control must not record that code. - `guest-root`: `graphics/guest_root_mismatch`. Control must not record that code. - `non-direct`: `graphics/non_direct_list`. Control: `graphics/no_pipeline_key`. - `pipeline-kind`: `graphics/pipeline_kind_mismatch`. Control must not record that code. - `placeholder`: `placeholder/placeholder_signature`. Control: `graphics/no_pipeline_key`. - `compute-pipeline`: `compute/no_compute_pipeline`. Control: `graphics/no_pipeline_key`. Each case with an expected reason also requires `x2w-d3d12 indirect-pipeline count <kind> <reason> 1` in the census report. None of those checks failed. The success stdout does not print that line, so this comment does not quote one. - `startup_per_reason_refusal_census`: PASS (distinct keys=2, pairs=4, detail=8, max=128). - `startup_per_reason_refusal_census_keep-last_control` (`WILL_FAIL`): FAIL (7 checks). - `startup_per_reason_refusal_census_keep-first_control` (`WILL_FAIL`): FAIL (6 checks). - `startup_triage_run`: startup triage_run checks: 0 failed. - `runtime_startup_triage_run_cli_check` passed. The branch is 10 commits behind current main `c04e0dd6` and still merges cleanly. This run does not cover the sample window or `X2W_INDIRECT_PIPELINE_KEYS`, and it does not change the `triage_run.py` default keys. AI-Assisted
JohnConnorNPC commented 2026-11-29 13:24:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T13:24:15Z.


Thanks for the WARP run at e799c4e1: 27/27 passed, and the census and control counts match what the tests expect. That settles my MUST 1, so my own review has nothing blocking left.

I'm still not merging, because Leyukaka's MUST 1 (13:16 review) checks out when I read this head:

  • Slot 57/67 creation records the full descriptor: note_pipeline(static_cast<Wrapper*>(*out), N, nullptr, desc, 0x300); in d3d12_xs_device.cpp.
  • hash_guest_stream clears only pointer_words[] = {0, 1, 3, 5, 7, 9, 10, 13}, so it clears nothing past byte 0x6f.
  • normalize_mesh57_descriptor in mesh57_profile.h treats 0x78, 0x120, 0x128, 0x168, 0x178, 0x198, 0x1d8, 0x280, 0x288, 0x2c8, 0x2d8 and 0x2f8 as section pointers and 0x110/0x270 as 32-bit addresses. It also says the allocation address at +0x160/+0x2c0 "varies independently".

So when the same fixed-mesh descriptor is created at another address, it gets a different fallback key. The comment above hash_guest_stream and the docs say the opposite: the key "follows the stream, not the addresses in it". One fix would be to hash the output of normalize_mesh57_descriptor for slot 57. That helper already exists, and the Mesh57 capture path in d3d12_draw.inl uses it. A fixture could then create one descriptor twice, with all of its pointers shifted by the same offset, and expect a single key.

My SHOULD 2 (sample window and X2W_INDIRECT_PIPELINE_KEYS untested) and SHOULD 3 (triage_run.py prints keys by default) are still open. Your comment says this run doesn't cover them. The branch still merges cleanly into current main (17b662a2).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7256512069 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7256512069). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T13:24:15Z. --- Thanks for the WARP run at `e799c4e1`: 27/27 passed, and the census and control counts match what the tests expect. That settles my MUST 1, so my own review has nothing blocking left. I'm still not merging, because Leyukaka's MUST 1 (13:16 review) checks out when I read this head: - Slot 57/67 creation records the full descriptor: `note_pipeline(static_cast<Wrapper*>(*out), N, nullptr, desc, 0x300);` in `d3d12_xs_device.cpp`. - `hash_guest_stream` clears only `pointer_words[] = {0, 1, 3, 5, 7, 9, 10, 13}`, so it clears nothing past byte `0x6f`. - `normalize_mesh57_descriptor` in `mesh57_profile.h` treats `0x78`, `0x120`, `0x128`, `0x168`, `0x178`, `0x198`, `0x1d8`, `0x280`, `0x288`, `0x2c8`, `0x2d8` and `0x2f8` as section pointers and `0x110`/`0x270` as 32-bit addresses. It also says the allocation address at `+0x160`/`+0x2c0` "varies independently". So when the same fixed-mesh descriptor is created at another address, it gets a different fallback key. The comment above `hash_guest_stream` and the docs say the opposite: the key "follows the stream, not the addresses in it". One fix would be to hash the output of `normalize_mesh57_descriptor` for slot 57. That helper already exists, and the Mesh57 capture path in `d3d12_draw.inl` uses it. A fixture could then create one descriptor twice, with all of its pointers shifted by the same offset, and expect a single key. My SHOULD 2 (sample window and `X2W_INDIRECT_PIPELINE_KEYS` untested) and SHOULD 3 (`triage_run.py` prints keys by default) are still open. Your comment says this run doesn't cover them. The branch still merges cleanly into current `main` (`17b662a2`). AI-assisted.
SimSalabimse commented 2026-11-29 18:14:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T18:14:33Z.


Windows test PC (MSVC, WARP, --preset dev, -j 1), at a2fae7adba04499247803d2690f8d1421b63822c. That head is a merge of origin/main 77d63db8b63348d4081716a10b3e2e4c74bd338f into e799c4e134347bb41b6def5fe7aed1c47ff492ab (fast-forward of the PR branch, no force-push). cmake --preset dev and cmake --build --preset dev exit 0.

The only conflict was tools/startup/triage_run.py, one hunk. The merge keeps both the ExecuteIndirect pipeline-refusal section from this PR and the compute Dispatch refusal section from #3384. Other files auto-merged. Against main this is still the same 11 files.

ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure

27/27 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run.

  • startup_indirect_translated_refusal_census_warp: x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0). census valid draw does not increment refusals: 8/8 non-clear pixels, argument guards intact.
  • startup_indirect_translated_refusal_census_control_warp: indirect-draw refusal census mismatch: got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed.
  • startup_indirect_other_refusal_census_warp: x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).
  • startup_indirect_other_refusal_census_control_warp: indirect-other refusal census mismatch: got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed.

Bucket success lines from LastTest (the control line is what that control test printed):

  • no-translation: graphics/no_translation. Control: graphics/no_translation.

  • mesh-profile: graphics/mesh_profile_missing. Control: graphics/no_pipeline_key.

  • mesh-profile-86: graphics/mesh_profile_missing. Control: graphics/no_translation.

  • translated-draw-off: graphics/translated_indirect_draw_off. Control: graphics/translated_indirect_draw_off.

  • guest-root: graphics/guest_root_mismatch. Control: graphics/guest_root_mismatch.

  • non-direct: graphics/non_direct_list. Control: graphics/no_pipeline_key.

  • pipeline-kind: graphics/pipeline_kind_mismatch. Control: graphics/pipeline_kind_mismatch.

  • placeholder: placeholder/placeholder_signature. Control: graphics/no_pipeline_key.

  • compute-pipeline: compute/no_compute_pipeline. Control: graphics/no_pipeline_key.

  • startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).

  • startup_per_reason_refusal_census_keep-last_control (WILL_FAIL): binary printed FAIL (7 checks). ctest Passed.

  • startup_per_reason_refusal_census_keep-first_control (WILL_FAIL): binary printed FAIL (6 checks). ctest Passed.

  • startup_triage_run: startup triage_run checks: 0 failed.

  • runtime_startup_triage_run_cli_check: Ran 8 tests in 1.503s / OK.

This does not address Leyukaka MUST 1 (slot 57 guest stream key still hashing addresses). It also does not cover the sample window or X2W_INDIRECT_PIPELINE_KEYS.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7260326315 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7260326315). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-29T18:14:33Z. --- Windows test PC (MSVC, WARP, `--preset dev`, `-j 1`), at `a2fae7adba04499247803d2690f8d1421b63822c`. That head is a merge of origin/main `77d63db8b63348d4081716a10b3e2e4c74bd338f` into `e799c4e134347bb41b6def5fe7aed1c47ff492ab` (fast-forward of the PR branch, no force-push). `cmake --preset dev` and `cmake --build --preset dev` exit 0. The only conflict was `tools/startup/triage_run.py`, one hunk. The merge keeps both the `ExecuteIndirect` pipeline-refusal section from this PR and the compute Dispatch refusal section from #3384. Other files auto-merged. Against main this is still the same 11 files. ``` ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure ``` 27/27 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run. - `startup_indirect_translated_refusal_census_warp`: `x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0)`. `census valid draw does not increment refusals: 8/8 non-clear pixels, argument guards intact`. - `startup_indirect_translated_refusal_census_control_warp`: `indirect-draw refusal census mismatch:` got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed. - `startup_indirect_other_refusal_census_warp`: `x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0)`. - `startup_indirect_other_refusal_census_control_warp`: `indirect-other refusal census mismatch:` got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed. Bucket success lines from LastTest (the control line is what that control test printed): - `no-translation`: `graphics/no_translation`. Control: `graphics/no_translation`. - `mesh-profile`: `graphics/mesh_profile_missing`. Control: `graphics/no_pipeline_key`. - `mesh-profile-86`: `graphics/mesh_profile_missing`. Control: `graphics/no_translation`. - `translated-draw-off`: `graphics/translated_indirect_draw_off`. Control: `graphics/translated_indirect_draw_off`. - `guest-root`: `graphics/guest_root_mismatch`. Control: `graphics/guest_root_mismatch`. - `non-direct`: `graphics/non_direct_list`. Control: `graphics/no_pipeline_key`. - `pipeline-kind`: `graphics/pipeline_kind_mismatch`. Control: `graphics/pipeline_kind_mismatch`. - `placeholder`: `placeholder/placeholder_signature`. Control: `graphics/no_pipeline_key`. - `compute-pipeline`: `compute/no_compute_pipeline`. Control: `graphics/no_pipeline_key`. - `startup_per_reason_refusal_census`: PASS (distinct keys=2, pairs=4, detail=8, max=128). - `startup_per_reason_refusal_census_keep-last_control` (`WILL_FAIL`): binary printed FAIL (7 checks). ctest Passed. - `startup_per_reason_refusal_census_keep-first_control` (`WILL_FAIL`): binary printed FAIL (6 checks). ctest Passed. - `startup_triage_run`: `startup triage_run checks: 0 failed`. - `runtime_startup_triage_run_cli_check`: `Ran 8 tests in 1.503s` / `OK`. This does not address Leyukaka MUST 1 (slot 57 guest stream key still hashing addresses). It also does not cover the sample window or `X2W_INDIRECT_PIPELINE_KEYS`. AI-Assisted
SimSalabimse commented 2026-11-29 18:33:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T18:33:58Z.


Windows test PC (MSVC, WARP, --preset dev, -j 1), at 6f748bfdbe399743d72b35edf3a6a607cfa6ce39. That head is one commit on top of the merge a2fae7adba04499247803d2690f8d1421b63822c (fast-forward, no force-push). cmake --preset dev and cmake --build --preset dev exit 0.

This commit is Leyukaka MUST 1. For a slot 57 record, hash_guest_stream now hashes the output of normalize_mesh57_descriptor. Slot 67 is unchanged and still clears only the early pointer words, so a slot 67 fallback hash can still contain later addresses.

ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?|mesh57_stream_key)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure

28/28 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run.

New startup_indirect_mesh57_stream_key_warp (warp mesh57-stream-key): creates one extended 0x300 slot 57 descriptor twice, with every address field normalize_mesh57_descriptor treats as an address shifted by 0x3FE3000, and expects one non-zero graphics/mesh_profile_missing key with calls=2. A third copy with byte 0x207 set must produce a different non-zero key with calls=1. LastTest: mesh57 stream key: shared d9c0489e17cbf29a, content bc89ce6ec1c2fbe1. No mesh / dispatch-mesh capability skip. Test Passed.

The previous 27 still passed at this head. Census totals match the merge run:

  • startup_indirect_translated_refusal_census_warp: x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0).
  • startup_indirect_translated_refusal_census_control_warp: got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed.
  • startup_indirect_other_refusal_census_warp: x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).
  • startup_indirect_other_refusal_census_control_warp: got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed.
  • startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).
  • startup_per_reason_refusal_census_keep-last_control (WILL_FAIL): binary printed FAIL (7 checks). ctest Passed.
  • startup_per_reason_refusal_census_keep-first_control (WILL_FAIL): binary printed FAIL (6 checks). ctest Passed.
  • startup_triage_run: startup triage_run checks: 0 failed.
  • runtime_startup_triage_run_cli_check passed.

This does not address Leyukaka SHOULD 2 or SHOULD 3, the sample window, or X2W_INDIRECT_PIPELINE_KEYS.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7260583370 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7260583370). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-29T18:33:58Z. --- Windows test PC (MSVC, WARP, `--preset dev`, `-j 1`), at `6f748bfdbe399743d72b35edf3a6a607cfa6ce39`. That head is one commit on top of the merge `a2fae7adba04499247803d2690f8d1421b63822c` (fast-forward, no force-push). `cmake --preset dev` and `cmake --build --preset dev` exit 0. This commit is Leyukaka MUST 1. For a slot 57 record, `hash_guest_stream` now hashes the output of `normalize_mesh57_descriptor`. Slot 67 is unchanged and still clears only the early pointer words, so a slot 67 fallback hash can still contain later addresses. ``` ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?|mesh57_stream_key)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure ``` 28/28 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run. New `startup_indirect_mesh57_stream_key_warp` (`warp mesh57-stream-key`): creates one extended 0x300 slot 57 descriptor twice, with every address field `normalize_mesh57_descriptor` treats as an address shifted by `0x3FE3000`, and expects one non-zero `graphics/mesh_profile_missing` key with `calls=2`. A third copy with byte `0x207` set must produce a different non-zero key with `calls=1`. LastTest: `mesh57 stream key: shared d9c0489e17cbf29a, content bc89ce6ec1c2fbe1`. No mesh / dispatch-mesh capability skip. Test Passed. The previous 27 still passed at this head. Census totals match the merge run: - `startup_indirect_translated_refusal_census_warp`: `x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0)`. - `startup_indirect_translated_refusal_census_control_warp`: got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed. - `startup_indirect_other_refusal_census_warp`: `x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0)`. - `startup_indirect_other_refusal_census_control_warp`: got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed. - `startup_per_reason_refusal_census`: PASS (distinct keys=2, pairs=4, detail=8, max=128). - `startup_per_reason_refusal_census_keep-last_control` (`WILL_FAIL`): binary printed FAIL (7 checks). ctest Passed. - `startup_per_reason_refusal_census_keep-first_control` (`WILL_FAIL`): binary printed FAIL (6 checks). ctest Passed. - `startup_triage_run`: `startup triage_run checks: 0 failed`. - `runtime_startup_triage_run_cli_check` passed. This does not address Leyukaka SHOULD 2 or SHOULD 3, the sample window, or `X2W_INDIRECT_PIPELINE_KEYS`. AI-Assisted
JohnConnorNPC commented 2026-11-29 18:41:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T18:41:02Z.


Re-review at 6f748bfd (delta from e799c4e1: merge a2fae7ad + one commit). No blocking issues left, so I'm merging.

Slot 57 fallback key (earlier MUST): fixed for the recognized layout. For path 57, hash_guest_stream now hashes what normalize_mesh57_descriptor returns. When the extended 0x300 guard passes, that output has the 13 section pointers (0x38…0x2f8) made relative, 0x110/0x270 made relative and 0x160/0x2c0 cleared. The descriptor is always 0x300 here (note_pipeline(..., N, nullptr, desc, 0x300)). The new startup_indirect_mesh57_stream_key_warp shifts every one of those fields by 0x3FE3000 and gets one key with calls=2. It also gets a different key for the copy with byte 0x207 changed. Reverting the hash would give three keys, so the old bug fails this test. The author's WARP run at this head shows 28/28 passed.

SHOULD, not blocking. The fallback now hashes three words it used to clear. If the extended guard fails, normalize_mesh57_descriptor clears only words {0, 1, 3, 5, 13}. At e799c4e1 the path-57 branch also cleared words 7, 9 and 10 (0x38, 0x48, 0x50), and 0x38 is the section pointer. So for an unrecognized 0x300 slot-57 record the key now includes one more address than before. Fix: run the old pointer_words clear after normalization in both cases. For a recognized record it changes nothing: relative 0x38 is 0, and the guard requires 0x48 and 0x50 to be 0.

Still open from earlier, not blocking: the 8-call sample window and X2W_INDIRECT_PIPELINE_KEYS=1 are still unpinned (SHOULD 2), and triage keys are still printed by default (SHOULD 3). The author's comment says the same. Both can be follow-ups.

State: MERGEABLE/CLEAN. CI: Windows, Linux Python and gfx1013 jobs pass. No change requests are standing; both earlier reviews are COMMENTED.

AI-assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7260675488 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3411#issuecomment-7260675488). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T18:41:02Z. --- Re-review at `6f748bfd` (delta from `e799c4e1`: merge `a2fae7ad` + one commit). No blocking issues left, so I'm merging. **Slot 57 fallback key (earlier MUST): fixed for the recognized layout.** For path 57, `hash_guest_stream` now hashes what `normalize_mesh57_descriptor` returns. When the extended 0x300 guard passes, that output has the 13 section pointers (0x38…0x2f8) made relative, 0x110/0x270 made relative and 0x160/0x2c0 cleared. The descriptor is always 0x300 here (`note_pipeline(..., N, nullptr, desc, 0x300)`). The new `startup_indirect_mesh57_stream_key_warp` shifts every one of those fields by 0x3FE3000 and gets one key with `calls=2`. It also gets a different key for the copy with byte 0x207 changed. Reverting the hash would give three keys, so the old bug fails this test. The author's WARP run at this head shows 28/28 passed. **SHOULD, not blocking. The fallback now hashes three words it used to clear.** If the extended guard fails, `normalize_mesh57_descriptor` clears only words {0, 1, 3, 5, 13}. At `e799c4e1` the path-57 branch also cleared words 7, 9 and 10 (0x38, 0x48, 0x50), and 0x38 is the section pointer. So for an unrecognized 0x300 slot-57 record the key now includes one more address than before. Fix: run the old `pointer_words` clear after normalization in both cases. For a recognized record it changes nothing: relative 0x38 is 0, and the guard requires 0x48 and 0x50 to be 0. **Still open from earlier, not blocking:** the 8-call sample window and `X2W_INDIRECT_PIPELINE_KEYS=1` are still unpinned (SHOULD 2), and triage keys are still printed by default (SHOULD 3). The author's comment says the same. Both can be follow-ups. State: MERGEABLE/CLEAN. CI: Windows, Linux Python and gfx1013 jobs pass. No change requests are standing; both earlier reviews are COMMENTED. AI-assisted
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
R0Y00/Xbox2Windows!3411
No description provided.