gpu: scope card-compare and card-steps prelude UAV barriers to touched buffers #2606
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nidea1 on 2026-11-29T14:54:04Z.
Summary
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.