gpu: scope card-compare and card-steps prelude UAV barriers to touched buffers #2606
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2606
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2606"
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?
@nidea1 on GitHub · 2026-11-29 14:54 UTC · original
nidea1:perf/scoped-card-check-and-steps-uav-barriers→main· +313 −28 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCSummary
Replaces the remaining host-emitted global (
NULL) UAV barriers inHost::check(card-side shader-write compare prelude) andcard_steps::record(GPU-side buffer fill/copy replay) with deduplicated per-resource UAV barriers covering only the touched buffers:crates/victory-gpu/src/host.rs:uav_barrier()andscoped_uav_barriers()helpers (usingManuallyDrop/transmute_copywithout touching COM refcounts).NULLUAV barrier beforeCARD_COMPAREinHost::check(~325 passes/frame) with scoped UAV barriers over{r.shadow.buffer, before, shared.differs.0}(deduplicated by raw pointer).crates/victory-gpu/src/host/card_steps.rs:NULLUAV barrier atlevel == 0inrecord()(5,900+ fills/frame) with deduplicated scoped UAV barriers covering every buffer touched across all0..levelspasses.Verification
cargo test -p victory-gpu --lib -- card_steps host::batch:: host::tests::: 119 passed, 0 failed (including new real-GPU RTX 3060 Ti tests exercising heavy 256-group x 64-thread compute UAV writes into 1-ECLCARD_COMPAREand 2-ECL multilevelcard_stepswith 0 D3D12 debug errors).cargo clippy -p victory-gpu --tests: 0 warnings in touched lines.cargo xtask policy --staged: passed.VICTORY_BARRIER_STATS=1on RTX 3060 Ti: shifts ~820–1,650 barriers/frame fromglobal UAVtoper-resource UAV, leaving host-emitted global UAV barriers near zero while title UAV waits remain intact.