GPU: isolate unaligned and off-element buffer views in exact shadow copies #159

Closed
github-bot wants to merge 1 commit from gh-pr/159/head into gh-pr/159/base
Owner

@⁠dutch2005 on GitHub · 2026-11-25 17:52 UTC · original
fix/own-bytes-exact-buffer-views → main · +953 −65 · 4 files · 1 commits · closed without merging

GPU: isolate unaligned and off-element buffer views in exact shadow copies

Backports isolated per-view Shadow::exact buffers (gated on
VICTORY_VIEW_OWN_COPY, enabled by default and =0 to disable) for
buffer SRVs/UAVs whose bytes start off an element boundary of their
shared host shadow copy (without a valid raw window) or whose raw view
start is not 16-byte aligned:

  • Add shadow::exact + shadow::prune_exact with host moment / COM
    references tracking and overlap invalidation on shadow::remapped.
  • Convert off-element and unaligned-raw buffer views onto isolated
    Shadow::exact buffers in descriptor/host (buffer_srv, buffer_uav,
    buffer_copy, bindless tracking, and draw::readable), while converting
    isolated 16B+ structured views to raw where valid.
  • Add unit and WARP GPU execution tests in host, shadow,
    descriptor/host, and draw.

Verification (cargo test --lib with --test-threads=1):

  • victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker: 115 passed, 0 failed, 4 ignored (skipped pre-existing #102 flake).
  • cargo clippy -p victory-gpu --lib --tests --locked --no-deps: 0 warnings on touched lines; cargo check -p victory-gpu --lib --tests --all-features --locked passed.
  • cargo xtask policy --staged: 4 files ok.
  • cargo mutants --in-diff (p victory-gpu): 139 mutants tested — 126 caught, 12 unviable, 1 timeout (descriptor/host.rs:2359:26: delete ! in buffer_srv), 0 missed.

Ported from fxceless/victory-fork and adapted cleanly for this tree.

**@⁠dutch2005** on GitHub · 2026-11-25 17:52 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/159) `fix/own-bytes-exact-buffer-views` → `main` · +953 −65 · 4 files · 1 commits · closed without merging GPU: isolate unaligned and off-element buffer views in exact shadow copies Backports isolated per-view `Shadow::exact` buffers (gated on `VICTORY_VIEW_OWN_COPY`, enabled by default and `=0` to disable) for buffer SRVs/UAVs whose bytes start off an element boundary of their shared host shadow copy (without a valid raw window) or whose raw view start is not 16-byte aligned: - Add `shadow::exact` + `shadow::prune_exact` with host `moment` / COM `references` tracking and overlap invalidation on `shadow::remapped`. - Convert off-element and unaligned-raw buffer views onto isolated `Shadow::exact` buffers in `descriptor/host` (`buffer_srv`, `buffer_uav`, `buffer_copy`, `bindless` tracking, and `draw::readable`), while converting isolated 16B+ structured views to raw where valid. - Add unit and WARP GPU execution tests in `host`, `shadow`, `descriptor/host`, and `draw`. Verification (`cargo test --lib` with `--test-threads=1`): - `victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker`: 115 passed, 0 failed, 4 ignored (skipped pre-existing #102 flake). - `cargo clippy -p victory-gpu --lib --tests --locked --no-deps`: 0 warnings on touched lines; `cargo check -p victory-gpu --lib --tests --all-features --locked` passed. - `cargo xtask policy --staged`: 4 files ok. - `cargo mutants --in-diff` (`p victory-gpu`): 139 mutants tested — 126 caught, 12 unviable, 1 timeout (`descriptor/host.rs:2359:26: delete ! in buffer_srv`), 0 missed. Ported from `fxceless/victory-fork` and adapted cleanly for this tree.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:55 +00:00
github-bot closed this pull request 2026-11-26 03:36:55 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.