startup: name why ExecuteIndirect is refused in the graphics-pipeline, compute-pipeline and placeholder buckets, per pipeline key #3405

Closed
opened 2026-11-28 22:25:31 +00:00 by SimSalabimse · 0 comments
SimSalabimse commented 2026-11-28 22:25:31 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T22:25:31Z.


Status update · 1 December 2026

The keyed ExecuteIndirect refusal diagnostics and shareable reporting are on main in d9b064e5 and e799c4e1. The startup_per_reason_refusal_census CTest and tests/startup_triage_run_check.py passed on the #3638 integration. The separate direct Mesh86 backing refusals are tracked in #3639 and #3640.

Part of #870. Refs #1759, #2413.

What this unblocks: after the menus, the runtime refuses most ExecuteIndirect calls, and the counters can say how many but not which pipelines or which cause. Picking the next mesh or compute slice needs that split.

Counts (one local start-up run of a retail title on the Windows test PC, after it left the menus; counts only).

x2w-render indirect: bucket Calls
refused graphics-pipeline, dispatchmesh 60,186
refused graphics-pipeline, draw 31,875
refused graphics-pipeline, drawindexed 1,862
refused compute-pipeline, dispatch 70,415
refused placeholder-signature 5,144

Same run: pipelines translated / missing 57 / 300, compute dispatches with no translation 132,507. Frame rate went from about 25 in the menus to 2-5.

What main does. list_execute_indirect (src/startup_stubs/d3d12_xs_device.cpp) gives one reason, indirect graphics requires a direct list with a matching desktop pipeline and root, for every case where pass.indirect_graphics.root is not set, the guest root differs, the list is not DIRECT, or the pipeline kind does not match. Those cases are different problems:

  • the pipeline has no translation yet, or was never requested;
  • a mesh pipeline (slot 57 or 86) has no reviewed .mesh57-state profile or no cached stage;
  • the translated indirect Draw path is off, because X2W_TRANSLATED_INDIRECT_DRAW is opt-in;
  • the guest root does not match;
  • the call is on a compute list.

Only indirect_other refusals reach PerReasonRefusalCensus. The graphics-pipeline, compute-pipeline and placeholder buckets only increment a counter, and their log line stops after 16. The census also stores at most 128 (key, reason) pairs, and a run like this has 300 missing pipelines.

Proposed change (one PR, diagnostics only, no change in what is accepted).

  1. Give each of the causes above a named code and route all three buckets through a census keyed by pipeline key (known_pipeline_key), printed with the five-second report.
  2. Let the census keep per-key totals past the pair cap (top N keys plus an overflow count), so a run with hundreds of keys is not truncated.
  3. Make tools/startup/triage_run.py print the table (counts only, no keys in --shareable output).

Fixture. startup_per_reason_refusal_census already checks the census class without a device, so the cap and totals logic has a device-free test. The wiring is checked by extending the existing startup_indirect_* source-built cases (WARP), one case per code, each with a control that must not hit the code.

I will post before and after counts on the same kind of run.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6671877096 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3405). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-28T22:25:31Z. --- ## Status update · 1 December 2026 The keyed ExecuteIndirect refusal diagnostics and shareable reporting are on `main` in `d9b064e5` and `e799c4e1`. The `startup_per_reason_refusal_census` CTest and `tests/startup_triage_run_check.py` passed on the #3638 integration. The separate direct Mesh86 backing refusals are tracked in #3639 and #3640. Part of #870. Refs #1759, #2413. **What this unblocks:** after the menus, the runtime refuses most ExecuteIndirect calls, and the counters can say how many but not which pipelines or which cause. Picking the next mesh or compute slice needs that split. **Counts (one local start-up run of a retail title on the Windows test PC, after it left the menus; counts only).** | `x2w-render indirect:` bucket | Calls | |---|---:| | refused graphics-pipeline, dispatchmesh | 60,186 | | refused graphics-pipeline, draw | 31,875 | | refused graphics-pipeline, drawindexed | 1,862 | | refused compute-pipeline, dispatch | 70,415 | | refused placeholder-signature | 5,144 | Same run: pipelines translated / missing 57 / 300, compute dispatches with no translation 132,507. Frame rate went from about 25 in the menus to 2-5. **What `main` does.** `list_execute_indirect` (`src/startup_stubs/d3d12_xs_device.cpp`) gives one reason, `indirect graphics requires a direct list with a matching desktop pipeline and root`, for every case where `pass.indirect_graphics.root` is not set, the guest root differs, the list is not DIRECT, or the pipeline kind does not match. Those cases are different problems: - the pipeline has no translation yet, or was never requested; - a mesh pipeline (slot 57 or 86) has no reviewed `.mesh57-state` profile or no cached stage; - the translated indirect Draw path is off, because `X2W_TRANSLATED_INDIRECT_DRAW` is opt-in; - the guest root does not match; - the call is on a compute list. Only `indirect_other` refusals reach `PerReasonRefusalCensus`. The graphics-pipeline, compute-pipeline and placeholder buckets only increment a counter, and their log line stops after 16. The census also stores at most 128 `(key, reason)` pairs, and a run like this has 300 missing pipelines. **Proposed change (one PR, diagnostics only, no change in what is accepted).** 1. Give each of the causes above a named code and route all three buckets through a census keyed by pipeline key (`known_pipeline_key`), printed with the five-second report. 2. Let the census keep per-key totals past the pair cap (top N keys plus an overflow count), so a run with hundreds of keys is not truncated. 3. Make `tools/startup/triage_run.py` print the table (counts only, no keys in `--shareable` output). **Fixture.** `startup_per_reason_refusal_census` already checks the census class without a device, so the cap and totals logic has a device-free test. The wiring is checked by extending the existing `startup_indirect_*` source-built cases (WARP), one case per code, each with a control that must not hit the code. I will post before and after counts on the same kind of run. AI-Assisted
Sign in to join this conversation.
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#3405
No description provided.