fix(gpu): add CBV guards and typed buffer view validation #3339

Open
github-bot wants to merge 1 commit from github-bot/gh-3339 into main AGit
Owner

@⁠legayclightning22 on GitHub · 2026-11-26 19:03 UTC · original
legayclightning22:fix/cbv-and-typed-buffer-view-guards → main · +216 −45 · 2 files · 1 commits · open

Summary

Adds CBV guards and typed buffer view validation in victory-gpu (414d469), along with unit tests covering buffer view validation.

Changes

  • Add CBV guard checks and typed buffer view validation in the descriptor/buffer view path.
  • Add unit tests verifying view validation and guard behavior.

Verification

  • cargo test -p victory-gpu --lib descriptor
  • cargo clippy --locked -p victory-gpu --all-targets -- -D warnings
  • cargo xtask policy
**@⁠legayclightning22** on GitHub · 2026-11-26 19:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/3339) `legayclightning22:fix/cbv-and-typed-buffer-view-guards` → `main` · +216 −45 · 2 files · 1 commits · open ## Summary Adds CBV guards and typed buffer view validation in `victory-gpu` (`414d469`), along with unit tests covering buffer view validation. ## Changes - Add CBV guard checks and typed buffer view validation in the descriptor/buffer view path. - Add unit tests verifying view validation and guard behavior. ## Verification - `cargo test -p victory-gpu --lib descriptor` - `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` - `cargo xtask policy` ```[cite: 20]
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:06:55 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 19:08 UTC · original · approved these changes

LGTM — verified on RTX 5090 (Windows / D3D12) against origin/main (63bcca4).

  • Capping CBV sizes, clearing stale views on null CBVs, validating buffer view ranges before creation, and using bit-exact host formats for typed buffer views are cleanly scoped and well-tested.
  • cargo test -p victory-gpu --lib descriptor:: -- --skip dynamic_slots_are_held_until_released --test-threads=1: 24 passed, 0 failed (including cbv_sizes_are_capped_and_zero_sizes_use_the_zero_view, null_cbv_clears_a_stale_view, buffer_view_ranges_are_validated_before_creation, and typed_buffer_views_use_bit_exact_host_formats).
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 19:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/3339#pullrequestreview-6079329766) · **approved these changes** LGTM — verified on RTX 5090 (Windows / D3D12) against `origin/main` (`63bcca4`). - Capping CBV sizes, clearing stale views on null CBVs, validating buffer view ranges before creation, and using bit-exact host formats for typed buffer views are cleanly scoped and well-tested. - `cargo test -p victory-gpu --lib descriptor:: -- --skip dynamic_slots_are_held_until_released --test-threads=1`: 24 passed, 0 failed (including `cbv_sizes_are_capped_and_zero_sizes_use_the_zero_view`, `null_cbv_clears_a_stale_view`, `buffer_view_ranges_are_validated_before_creation`, and `typed_buffer_views_use_bit_exact_host_formats`). - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3339/head:github-bot/gh-3339'
git switch 'github-bot/gh-3339'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3339'
git switch 'github-bot/gh-3339'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3339'
git switch 'github-bot/gh-3339'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3339'
git switch 'main'
git merge --squash 'github-bot/gh-3339'
git switch 'main'
git merge --ff-only 'github-bot/gh-3339'
git switch 'main'
git merge 'github-bot/gh-3339'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3339
No description provided.