gpu: add always-on per-reason dropped and indirect_dropped counters #130
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!130
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-129"
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?
@Saksukella on GitHub · 2026-12-05 15:31 UTC · original
Saksukella:feat/rdna4-gpugen-drop-reasons→main· +228 −58 · 3 files · 2 commits · merged 2026-12-05 17:40 UTCSummary
Splits the 5-second GPU telemetry line's dropped-draw and indirect-dropped counters by reason so pipeline-compilation drops, disabled-RT-builder drops, and other drop reasons are always visible without requiring extra diagnostic flags.
(Updated per review from @staticman256: removed the PCI-ID-based RDNA 4 FSR 4 launcher default gating so RX 7000/6000 INT8 FSR 4.1 drivers are never downgraded, keeping this PR strictly focused on drop-reason telemetry.)
Changes
Verification
@staticman256 on GitHub · 2026-12-05 15:39 UTC · original
Sorry, this actually makes things worse. I touched the FSR stuff before and what you're doing is killing FSR4 for 7000 series users (and 6000 series users in the future).
The FSR part adds nothing useful, and on RX 7000 cards it probably makes things worse. You're right that the fallback already exists.
What
8119a00changes. It only changes the launcher's default. The launcher now looks up the card's PCI device ID in a hand-written table and turns FSR 4 on by default only for IDs it lists as RDNA 4 (9070/9060). Every other AMD card, including any ID missing from the table, now defaults to FSR 3.1. It doesn't touch play.ps1 or the runtime. A saved fsr_version choice still overrides the default.Why the fallback already covers it. At runtime, choose in fidelityfx.rs takes FSR 4.1.2 if AMD's DLL offers it for the card. If it doesn't, it quietly takes the newest 3.1 and logs "no FSR 4.1.2; FSR 3.1 is used in its place". So a card without FSR 4 already ends up on 3.1, and this commit just makes that happen earlier. (The "falling back to NewBE" message is from the title's own shader pipeline loading, so it has nothing to do with this.)
Why it's a step backwards. The commit assumes FSR 4 needs FP8 hardware and so only runs on RDNA 4. That stopped being true when AMD's 26.6.2 driver brought FSR 4.1 (the INT8 model) to the RX 7000 series, and AMD has said RX 6000 will get it too. On those cards the commit takes away FSR 4 by default when the driver could have provided it, which goes against the "don't second-guess the user" change you made to the README. The one thing I haven't checked is what version string the SDK reports on RDNA 3. Our code wants exactly 4.1.2, so if the INT8 build reports something else, those cards fall back to 3.1 either way.
The other half of the commit, which splits the dropped-draw count in the 5-second log line by reason, is unrelated and harmless. It probably belongs in its own PR.
feat(gpu,launcher): classify AMD RDNA 2/3/4 for FSR 4 defaults and add always-on dropped-draw reason countersto gpu: add always-on per-reason dropped and indirect_dropped counters@Saksukella on GitHub · 2026-12-05 17:27 UTC · original
Thanks a lot @staticman256 — you're 100% right on both points:
I've reverted the GpuGen / launcher FSR-default changes and scoped this PR strictly to the always-on per-reason dropped / indirect_dropped counters (draw.rs, list.rs, host/present.rs), verified with cargo xtask policy, cargo test -p xtask, cargo test -p victory-gpu --lib draw::, and cargo clippy --no-deps --all-features -- -D warnings (0 warnings in touched files).