Bound the D3D12 list and upload workload in a smoke profile #1163
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1163"
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 ghptc on 2026-11-28T14:36:08Z.
Even with small positional list and copy counts, the existing D3D12 memory example proceeds to an upload batch of 2,000 one-MiB buffers. A quick allocation and teardown check needs a way to bound that phase too.
list_memory --smokefences four lists with 64 copies each and exercises all three upload sizes. At most 16 MiB of upload payload is live per batch. The example samples while mapped, pairs map and unmap, and releases the fence event on exit. The full workload keeps its original numeric controls. An invalid profile returns a usage error.Two profile regression tests and the complete smoke workload passed with a release MSVC cross-build, two compilation jobs, Proton Experimental, vkd3d-proton 3.2.0 and an RTX 5070. All three upload/release checkpoints completed in a private prefix. The synthetic service was capped at 1 GiB high, 2 GiB max and zero swap. Its final run exited successfully and peaked at 557.7 MiB. The staged asset policy passed. Wine printed zero for the example's Windows private-memory readings on this setup. The host peak came from systemd.
The Windows CI check stopped in Clippy at victory-shader/src/emit/mod.rs:2768 and victory-gpu/src/shadow.rs:1708. The base branch's CI job reports both diagnostics at the same lines. PR check · Base check
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by zhouzhidong3-hash on 2026-11-28T15:02:09Z.
Native Windows result for
list_memory --smokeat93e7e25c62e70bec43f852438a49eadebfa70d4e. All three upload/release checkpoints completed; exit code 0.Windows 10 Pro x64 (19045.5131), DXGI adapter 0: GeForce RTX 5070, driver 591.86. I compiled the unmodified example directly with rustc 1.98.1 (x86_64-pc-windows-msvc, optimized) against previously built Windows bindings. This covers the standalone example only; the full Cargo build was not completed.
Immediately before the uploads, private usage was 88 MiB and committed write-combined memory was 23 MiB. Both counters returned nonzero readings on Windows. At the displayed precision, neither counter dropped on the immediate sample after any of the three releases. This single short run does not establish long-term retention or a leak.
Raw output