GPU: dropped draws say whether their pipeline was refused or is still being made #3168
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3168
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3168"
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?
@pablogonz12 on GitHub · 2026-11-26 10:50 UTC · original
pablogonz12:out/dropped-draws-why→main· +162 −26 · 4 files · 1 commits · openWhat
draw::Statedrops a draw or dispatch that has no host pipeline, and the frame line said only how many of them:dropped 4440 without a host pipeline (4 being made). One number reads the same for two very different states: a pipeline whose shaders do not translate, whose draws are lost every frame to the end of the run, and one still being made, which costs its draws one frame. The per-reason lines that tell them apart (dropped N/frame without a host pipeline: <reason>) are printed only by adiagnosticsbuild, so a plain run cannot say why it is dropping.pipeline::note_dropnow counts in every build, on one of two sides, from what the pending pipeline actually holds: refused (a shader did not translate, the host driver declined to make it, or no pipeline is set at all) and waiting (still being made).take_dropped_split()returns[refused, waiting], and the frame line prints both:The drop sites in
draw.rscount in every build now (theDROPPEDtrace marker stays insidediagnostics), which is what feeds the counters.Counters and log text only: no behaviour change, so no off switch — a run that wants the old text reads the first number, which is unchanged.
Test
a_refused_pipeline_counts_its_drops_apart_from_one_still_being_made(crates/victory-gpu/src/pipeline.rs): a pipeline hand-built from junk shader words (no game data, no card involved) is counted as waiting while it is unmade, made on the spot (Pending::now) it is refused on the junk container and counted as refused, and a draw with no pipeline set at all counts as refused too —take_dropped_split()gives[0,1]and then[2,0].Numbers
cargo xwin clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc -- -D warnings: clean, and the same with--features victory-gpu/diagnostics.--test-threads=1): 232 passed, 0 failed, 1 ignored.Other hardware
Counting and one log line: no shader translation, no heap layout and no GPU object changes, so every adapter takes exactly the path it took before. The counters are plain relaxed atomics, as the
diagnosticscounters already were, and the split is read once per report. Not tested on NVIDIA hardware; nothing in the diff reads an adapter, vendor or driver, but a log line from a Windows/NVIDIA run of the new frame line would confirm the text there.@Dukestar69 on GitHub · 2026-11-26 11:08 UTC · original · approved these changes
Verified on RTX 5090 against
origin/main(63bcca4):cargo test -p victory-gpu --lib pipeline:: -- --test-threads=1: 24/24 passed (includinga_refused_pipeline_counts_its_drops_apart_from_one_still_being_made).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly distinguishes refused pipelines from still-compiling pipelines in dropped-draw reporting.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.