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

Open
HandshakeHackin wants to merge 87 commits from upstream-pr/49 into main
HandshakeHackin commented 2026-11-25 21:21:38 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T21:21:38Z.


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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5499385121 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/49). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T21:21:38Z. --- 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.
PastiiJay commented 2026-11-25 21:23:40 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T21:23:40Z.


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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7175017058 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/49#issuecomment-7175017058). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T21:23:40Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/49:upstream-pr/49'
git switch 'upstream-pr/49'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/49'
git switch 'upstream-pr/49'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/49'
git switch 'upstream-pr/49'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/49'
git switch 'main'
git merge --squash 'upstream-pr/49'
git switch 'main'
git merge --ff-only 'upstream-pr/49'
git switch 'main'
git merge 'upstream-pr/49'
git push origin 'main'
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
PastiiJay/klbf-lab!49
No description provided.