Report the cause of refused pipelines in per-frame draw counts #49

Open
github-bot wants to merge 4 commits from github-bot/gh-49 into beta AGit
Owner

@⁠HandshakeHackin on GitHub · 2026-11-25 21:21 UTC · original
HandshakeHackin:diagnostics/pipeline-refusal-counts → beta · +60 −24 · 3 files · 4 commits · open

The RX 580 report in #45 and the NVIDIA reports in #30 count hundreds of dropped draws per frame. Beta can log a pipeline refusal once, but the per-frame diagnostics often record only refused [shaders]. That makes it hard to tell how many draws were lost to a missing GPU feature or to a D3D12 error.

This change records the refusal when the worker builds the pipeline. The diagnostics summary groups explicit compatibility refusals by reason. For driver refusals it includes the operation (root signature, compute, mesh or graphics), HRESULT and shader IDs, so a tester can match the count to the release log. Existing shader-translation and still-building counts keep their labels. Release builds use the existing logging and rendering paths.

Windows verification at a17d721 against beta e328c88: I applied the new worker assertion to the original beta and saw the old refused [] result. On the PR, all four diagnostics worker tests and all three default-feature worker tests passed. The HRESULT test checks that a compute refusal retains 0x80070057 and the shader hash. Regression and passing tests

The combined Windows run also passed both strict workspace Clippy checks and the 191-file asset check. The full suite had 608 passed, 0 failed and 16 ignored, followed by four passing diagnostics tests. This run included the eight earlier beta fixes, PRs #41–43 and the maintainer’s WARP test correction.

**@⁠HandshakeHackin** on GitHub · 2026-11-25 21:21 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/49) `HandshakeHackin:diagnostics/pipeline-refusal-counts` → `beta` · +60 −24 · 3 files · 4 commits · open The RX 580 report in #45 and the NVIDIA reports in #30 count hundreds of dropped draws per frame. Beta can log a pipeline refusal once, but the per-frame diagnostics often record only `refused [shaders]`. That makes it hard to tell how many draws were lost to a missing GPU feature or to a D3D12 error. This change records the refusal when the worker builds the pipeline. The diagnostics summary groups explicit compatibility refusals by reason. For driver refusals it includes the operation (root signature, compute, mesh or graphics), HRESULT and shader IDs, so a tester can match the count to the release log. Existing shader-translation and still-building counts keep their labels. Release builds use the existing logging and rendering paths. **Windows verification** at `a17d721` against beta `e328c88`: I applied the new worker assertion to the original beta and saw the old `refused []` result. On the PR, all four diagnostics worker tests and all three default-feature worker tests passed. The HRESULT test checks that a compute refusal retains `0x80070057` and the shader hash. [Regression and passing tests](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45703095612/job/139517996701) The [combined Windows run](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45703509799/job/139519423159) also passed both strict workspace Clippy checks and the 191-file asset check. The full suite had 608 passed, 0 failed and 16 ignored, followed by four passing diagnostics tests. This run included the eight earlier beta fixes, PRs #41–43 and the maintainer’s WARP test correction.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:53:34 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-25 21:23 UTC · original

Thanks a lot @⁠HandshakeHackin, this is the piece that was missing in #30 and #45: per-frame drop counts that name the real refusal (operation, HRESULT, shader IDs) instead of refused [], so a tester can match them to the release log. And thank you for showing the regression on the original beta first, then the passing tests on the PR.

It's a diagnostics-only change, so it won't touch our fps baseline. It goes into our one-change-at-a-time queue; we'll run the diagnostics build on the RX 9070 XT with it and post the breakdown here.

**@⁠PastiiJay** on GitHub · 2026-11-25 21:23 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/49#issuecomment-7175017058) Thanks a lot @⁠HandshakeHackin, this is the piece that was missing in #30 and #45: per-frame drop counts that name the real refusal (operation, HRESULT, shader IDs) instead of `refused []`, so a tester can match them to the release log. And thank you for showing the regression on the original beta first, then the passing tests on the PR. It's a diagnostics-only change, so it won't touch our fps baseline. It goes into our one-change-at-a-time queue; we'll run the diagnostics build on the RX 9070 XT with it and post the breakdown here.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/49/head:github-bot/gh-49'
git switch 'github-bot/gh-49'

Merge

Merge the changes and update on Forgejo.
git switch 'beta'
git merge --no-ff 'github-bot/gh-49'
git switch 'github-bot/gh-49'
git rebase 'beta'
git switch 'beta'
git merge --ff-only 'github-bot/gh-49'
git switch 'github-bot/gh-49'
git rebase 'beta'
git switch 'beta'
git merge --no-ff 'github-bot/gh-49'
git switch 'beta'
git merge --squash 'github-bot/gh-49'
git switch 'beta'
git merge --ff-only 'github-bot/gh-49'
git switch 'beta'
git merge 'github-bot/gh-49'
git push origin 'beta'
This discussion has been locked. Commenting is limited to contributors.
No description provided.