descriptor: diagnostics build after the packed DynamicBits (13e1f5e): read a slot through first_taken #2

Manually merged
github merged 1 commit from github-bot/gh-2 into main 2026-11-27 10:54:13 +00:00 AGit
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-27 10:30 UTC · original
HAL9000RELOADED:rdna/fix-diag-dynamicbits → main · +5 −1 · 1 files · 1 commits · merged 2026-11-27 10:52 UTC

cargo check -p victory-gpu --features diagnostics fails on main (8ba4f34):

error[E0599]: no method named `get` found for struct `DynamicBits` in the current scope
    --> crates\victory-gpu\src\descriptor\host.rs:1550:79

slot_story (diagnostics only) still calls .get(..) on host.next.1, which has been the packed DynamicBits since 13e1f5e. This is the build note in docs/benchmarks/rtx5070-nvidia.md. The patch reads the slot through the existing first_taken(i, i + 1), with None past len as before, so -Build diag / --profile diag --features diagnostics builds again.

On an RX 7900 XTX (RDNA3), driver 32.0.32015.7029, Windows 10 Pro 22H2 (19045), Rust 1.98.1 MSVC:

  • cargo check -p victory-gpu --features diagnostics: fails on 8ba4f34, passes on this branch. Without the feature it passes on both.
  • cargo test -p victory-gpu --lib --features diagnostics descriptor on this branch: 52 passed, 0 failed, 1 ignored.

I used this patch for the diag builds of the runs in the RX 7900 XTX benchmark PR.

AI-assisted (Claude Code): tested on my machine, text drafted with Claude.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-27 10:30 UTC · [original](https://github.com/XaviFortes/VIctory-RDNA/pull/2) `HAL9000RELOADED:rdna/fix-diag-dynamicbits` → `main` · +5 −1 · 1 files · 1 commits · merged 2026-11-27 10:52 UTC `cargo check -p victory-gpu --features diagnostics` fails on main (`8ba4f34`): ``` error[E0599]: no method named `get` found for struct `DynamicBits` in the current scope --> crates\victory-gpu\src\descriptor\host.rs:1550:79 ``` `slot_story` (diagnostics only) still calls `.get(..)` on `host.next.1`, which has been the packed `DynamicBits` since 13e1f5e. This is the build note in `docs/benchmarks/rtx5070-nvidia.md`. The patch reads the slot through the existing `first_taken(i, i + 1)`, with `None` past `len` as before, so `-Build diag` / `--profile diag --features diagnostics` builds again. On an RX 7900 XTX (RDNA3), driver 32.0.32015.7029, Windows 10 Pro 22H2 (19045), Rust 1.98.1 MSVC: - `cargo check -p victory-gpu --features diagnostics`: fails on `8ba4f34`, passes on this branch. Without the feature it passes on both. - `cargo test -p victory-gpu --lib --features diagnostics descriptor` on this branch: 52 passed, 0 failed, 1 ignored. I used this patch for the diag builds of the runs in the RX 7900 XTX benchmark PR. _AI-assisted (Claude Code): tested on my machine, text drafted with Claude._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:38:40 +00:00
github manually merged commit e3bfddf781 into main 2026-11-27 10:54:13 +00:00
Author
Owner

@⁠XaviFortes on GitHub · 2026-11-27 10:51 UTC · original

Thanks for catching this and sending a focused fix. I ran the descriptor tests locally with diagnostics enabled and got 52 passed, 1 ignored. The bounds check and reuse of first_taken look good to me. I’ll merge this.

**@⁠XaviFortes** on GitHub · 2026-11-27 10:51 UTC · [original](https://github.com/XaviFortes/VIctory-RDNA/pull/2#issuecomment-7216388264) Thanks for catching this and sending a focused fix. I ran the descriptor tests locally with diagnostics enabled and got 52 passed, 1 ignored. The bounds check and reuse of first_taken look good to me. I’ll merge this.
This discussion has been locked. Commenting is limited to contributors.
No description provided.