gpu: add always-on per-reason dropped and indirect_dropped counters #130

Manually merged
github merged 2 commits from github-bot/gh-129 into main 2026-12-05 17:43:22 +00:00 AGit
Owner

@⁠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 UTC

Summary

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

  • crates/victory-gpu/src/draw.rs: Always-on per-reason atomic drop counters (dropped) and snapshot/drain helpers.
  • crates/victory-gpu/src/list.rs: Always-on per-reason indirect drop counters (indirect_dropped).
  • crates/victory-gpu/src/host/present.rs: Report per-reason dropped / indirect_dropped breakdown in the periodic GPU status log.

Verification

  • cargo xtask policy: 439 files ok.
  • cargo test -p xtask: 9/9 passed.
  • cargo test -p victory-gpu --lib draw::: 19/19 passed.
  • cargo clippy -p victory-gpu --all-targets --all-features --no-deps -- -D warnings: 0 warnings/errors in modified files.
**@⁠Saksukella** on GitHub · 2026-12-05 15:31 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/129) `Saksukella:feat/rdna4-gpugen-drop-reasons` → `main` · +228 −58 · 3 files · 2 commits · merged 2026-12-05 17:40 UTC ## Summary 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 - crates/victory-gpu/src/draw.rs: Always-on per-reason atomic drop counters (dropped) and snapshot/drain helpers. - crates/victory-gpu/src/list.rs: Always-on per-reason indirect drop counters (indirect_dropped). - crates/victory-gpu/src/host/present.rs: Report per-reason dropped / indirect_dropped breakdown in the periodic GPU status log. ## Verification - cargo xtask policy: 439 files ok. - cargo test -p xtask: 9/9 passed. - cargo test -p victory-gpu --lib draw::: 19/19 passed. - cargo clippy -p victory-gpu --all-targets --all-features --no-deps -- -D warnings: 0 warnings/errors in modified files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 15:35:48 +00:00
Author
Owner

@⁠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 8119a00 changes. 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.

**@⁠staticman256** on GitHub · 2026-12-05 15:39 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/129#issuecomment-7440618823) 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 8119a00 changes. 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.
github-bot changed title from feat(gpu,launcher): classify AMD RDNA 2/3/4 for FSR 4 defaults and add always-on dropped-draw reason counters to gpu: add always-on per-reason dropped and indirect_dropped counters 2026-12-05 17:31:31 +00:00
Author
Owner

@⁠Saksukella on GitHub · 2026-12-05 17:27 UTC · original

Thanks a lot @⁠staticman256 — you're 100% right on both points:

  1. Gating the launcher's FSR 4 default by PCI ID regresses RX 7000 (Adrenalin 26.6.2+ INT8 FSR 4.1) and future RX 6000 users when runtime idelityfx.rs already falls back cleanly to FSR 3.1.
  2. Mixing that with the dropped-draw reason telemetry violated single-concern PR hygiene.

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).

**@⁠Saksukella** on GitHub · 2026-12-05 17:27 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/129#issuecomment-7442177126) Thanks a lot @⁠staticman256 — you're 100% right on both points: 1. Gating the launcher's FSR 4 default by PCI ID regresses RX 7000 (Adrenalin 26.6.2+ INT8 FSR 4.1) and future RX 6000 users when runtime idelityfx.rs already falls back cleanly to FSR 3.1. 2. Mixing that with the dropped-draw reason telemetry violated single-concern PR hygiene. 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).
github manually merged commit f8c46106fd into main 2026-12-05 17:43:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.