Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:
- Logging the D3D12 debug layer message when a pipeline creation is refused is clean and minimal.
cargo test -p victory-gpu pipeline::host::tests: 2/2 passed.cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
|
Independent Windows 11 hardware + WARP verification of #2471 at
Not tested: live game workload / reproducing a refused pipeline with AI-assisted test run and summary. |
catminou4
left a comment
There was a problem hiding this comment.
A refused pipeline says what the debug layer said (+7). Small, precise. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
|
Automated triage for the maintainers. Merge candidate. In Both points from the last review are fixed:
Optional nit: the field is named CI: no check runs on this head; the workflow needs a maintainer's approval. Contributors report RTX 5070 Ti, WARP and RTX 4060 runs with only the known #1744 failures. Generated by Claude Code |
|
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060:
All tests in this branch pass on RTX 4060; the only 2 failures are the known 1,000,000 view heap cap tests ( |
…e refusal
`Host::log_messages` already writes every stored message to the log as its own
`D3D12: ...` warning before clearing the queue; it only returns the first
error. So the answer was in the log, but on a line after the refusal it
explains. All three places that refuse a pipeline (compute, mesh and graphics)
call it and drop the return value; this binds it and puts the first error in the
refusal line itself:
let messages = host.log_messages();
tracing::warn!(error = %e, ?shaders, ?messages, "host pipeline refused");
No behaviour changes beyond which line the text appears on.
That line is the whole diagnosis in some cases. On this machine, with the debug
layer installed, the software rasteriser refused 458 compute pipelines in a
single boot of a title, and every one of them said:
ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but
maximum wave lane count for device is 4. To check for support, check device
caps via the CheckFeatureSupport() API
which turns "that world drops 1,935 draws a frame on WARP" into one sentence.
Checked with `cargo check -p victory-gpu --profile diag --features diagnostics`
and by the run the message above comes from.
12c2263 to
0cd1a79
Compare
|
Automated triage for the maintainers, second look (a review against current Closing because it can attribute a message to the wrong pipeline. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
|
Understood, and agreed - closing it is right.
Evidence that the separate lines are enough, from this machine: with
The |
What was wrong with the first form of this
Host::log_messagesalready writes every stored message to the log as its ownD3D12: ...warning before clearing the queue — it only returns the first error. So the answer was in the log, on a line after the refusal it explains. My first description said it was thrown away; it was not, and the patch now also drops a stray UTF-8 byte order mark it had added to line 1 of the file.What this does
All three places that refuse a pipeline (compute, mesh and graphics) call
log_messagesand drop the return value. This binds it and puts the first error in the refusal line itself, so the reason comes before the line that says a pipeline was refused:ust let messages = host.log_messages(); tracing::warn!(error = %e, ?shaders, ?messages, "host pipeline refused");Diff is the three call sites (6 lines changed); no behaviour beyond which line the text appears on.
Why it is worth it
In some cases that line is the whole diagnosis. On this machine, with the debug layer installed, the software rasteriser refused 458 compute pipelines in a single boot of a title, and every one of them said:
ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 4. To check for support, check device caps via the CheckFeatureSupport() APIwhich turns "that world drops 1,935 draws a frame on WARP" into one sentence.
How it was checked
cargo check -p victory-gpu --profile diag --features diagnosticson the rebased branch, and by the run the message above comes from. Independent runs on this PR (RTX 5070 Ti: 144 passed / 2 pre-existing #1744 failures; WARP: 146 passed; clippy clean; asset policy 182 files ok; RTX 4060: 141 passed / 2 pre-existing) were reported in the comments below.