GPU: isolate unaligned and off-element buffer views in exact shadow copies #159
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/Belobug--VIctory-Belobug-AMD!159
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/159/head"
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?
@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 mergingGPU: isolate unaligned and off-element buffer views in exact shadow copies
Backports isolated per-view
Shadow::exactbuffers (gated onVICTORY_VIEW_OWN_COPY, enabled by default and=0to disable) forbuffer 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:
shadow::exact+shadow::prune_exactwith hostmoment/ COMreferencestracking and overlap invalidation onshadow::remapped.Shadow::exactbuffers indescriptor/host(buffer_srv,buffer_uav,buffer_copy,bindlesstracking, anddraw::readable), while convertingisolated 16B+ structured views to raw where valid.
host,shadow,descriptor/host, anddraw.Verification (
cargo test --libwith--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 --lockedpassed.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-forkand adapted cleanly for this tree.Pull request closed