tooling: report paired draw and compute paths #3941
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3941
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3939"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lambirou on GitHub · 2026-12-03 14:16 UTC · original
lambirou:codex/amd-draw-path-report→main· +813 −21 · 10 files · 3 commits · merged 2026-12-03 15:03 UTCProblem
nnThe startup triage readsExecuteIndirectbuckets, but it drops thedirect-drawcensus that the runtime already emits. A paired run therefore cannot distinguish a placeholder signature, a compute-pipeline refusal, an indirect draw that reached the GPU, and a direct draw refused before recording.nn## Changenn- Report direct-draw refusals by reason, pipeline key and first frame.n- Addtriage_run.py --comparefor a paired summary of direct draws, indirect buckets and compute dispatches. Each row states its source so absent and zero values stay distinct.n- Document the AMD pair. Arm A uses the default settings. Arm B only addsX2W_INDIRECT_PIPELINE_KEYS=1so the bounded indirect census keeps every pipeline key instead of the first eight per code and kind.n- Extend the source-built draw-path fixture with named paths for a placeholder signature, a compute-pipeline refusal, an indirect draw that is actually forwarded, and a directno_pipeline_boundrefusal.nnThe runtime behavior and defaults are unchanged. Switch B increases diagnostic census work, so this pair is for path counts rather than frame-rate or pixel claims.nn## Validationnn```powershelln.\tools\dev.ps1ncmake --build --preset dev --target startup_indirect_draw_indexed startup_clear_depth_stencilnctest --preset dev --no-tests=error -j 1 -R '^(startup_draw_path_report_warp|startup_indirect_bucket_(placeholder|compute-pipeline)_warp|startup_indirect_draw_indexed_warp|startup_draw_clear_census_warp|startup_triage_run|runtime_startup_triage_run_cli_check)$'n````nn- Six passed, one capability skip:startup_draw_clear_census_warphas no debug-layer callback on WARP.n-startup_draw_indirect_counts_hardwarepassed on the AMD Radeon RX 9060 XT, driver32.0.32029.2010.n-startup_triage_run_check.py, the nine CLI cases,startup_tools_lint_check.py tools/startup,startup_run_preset_check.py, anddocs_links_check.pypassed. The documentation check covers 282 files and 1,007 links.n- The paired source-built fixture reports the same counts for A and B on AMD: three forwarded indirect indexed draws, one placeholder signature, one compute-pipeline refusal, one directno_pipeline_boundrefusal, one graphics-pipeline refusal, and three other indexed refusals. The forwarded path also checks its pixels.nnThe fixture is intentionally short and does not reach a late 300-frame heartbeat, so the aggregatetranslated drawsline can be absent even when the forwarded draw counter is nonzero.nnRefs #870, #3901. AI-assisted.n514b1d68fato2740f59836@R0Y00 on GitHub · 2026-12-03 14:36 UTC · original · requested changes
I reproduced a crash in the new paired report on
2740f598. Pass format_path_comparison two summaries with indirect_peaks=None on A and Counter({('forwarded', 'drawindexed'): 7}) on B. The ExecuteIndirect Causes table raises KeyError: ('forwarded', 'drawindexed') because(indirect_a or {})[outcome, kind]indexes a plain empty dict. This occurs whenever one run reports indirect counters and the other has no such line. Please render the missing side as n/a consistently with the primary metric table and include a one-sided synthetic log pair in the CLI tests.@lambirou on GitHub · 2026-12-03 14:40 UTC · original
Fixed in
9d7f08d57.A missing
indirect_peaksside now renders asn/a, while a reported zero remains0. I added the requested one-sided CLI regression: run A has no indirect line, run B reportsforwarded/drawindexed = 7, and both the metric and cause tables rendern/a | 7 | n/awithout crashing.Targeted CTest: 8 passed, 1 existing debug-layer capability skip. The merged #3937 snapshot tests pass on both WARP and the AMD adapter.
@R0Y00 on GitHub · 2026-12-03 15:03 UTC · original · approved these changes
Re-reviewed
9d7f08d5. Both missing-side orientations now preserve n/a, and an empty but reported Counter yields zero. Independently checked n/a | 7 | n/a, 7 | n/a | n/a, and 0 | 7 | 7. The Python triage checks and all 10 CLI tests passed. Rebuilt the Windows MSVC Debug fixture and ranctest --preset dev --no-tests=error -j 1 -V -R '^startup_(draw_path_report_warp|triage_run(_cli)?)$': 2/2 registered tests passed. This addresses my paired-report crash review.