Tests: validate copied D3D12 descriptors through GPU-visible semantics #1355
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1355"
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 73N1X on 2026-11-28T17:55:47Z.
Summary
Replace the driver-specific comparison of opaque D3D12 descriptor bytes with a functional GPU-side regression test.
The new test executes a synthetic compute shader to verify that descriptors preserve their intended behavior, regardless of their internal driver representation.
Coverage
Validation
The full repository asset policy currently reports a pre-existing
bindings.iniallowlist violation, unrelated to this patch.Runtime impact
None expected. All changes are confined to the test module under
#[cfg(test)]. Existing NVIDIA-specific optimizations and descriptor handling remain unchanged.No game assets are included. NVIDIA hardware validation is still requested.
Based on upstream commit
9ce3cf9e.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-28T20:24:05Z.
Ran this on NVIDIA hardware: GeForce RTX 3060, Windows 11, Rust 1.98.1 (pinned). Applied on top of current
main(9300875); cherry-picks cleanly.The new test passes on the RTX 3060, with the values the GPU read back exactly as expected:
a5000010 a500010f 0 400a5000020 a500009f 0 2000 0 0 0VICTORY_VIEW_COPY=0--all-features(diagnostics)Whole workspace, with this stacked on #1290 (which fixes the clippy/policy failures already on
main):-D warnings, with and without--all-features): passxtask policy: passcargo test --workspace --locked --no-fail-fast, three runs: 1129/1129, 1129/1129, and 1128/1129 (onewatch::testsfailure, below)Without #1290 underneath, clippy and policy fail only on what already fails on
main(the four lints andbindings.ini); this PR adds nothing there.The
watchfailure is not this PR.cargo test -p victory-gpu --lib, 20 runs each side:main+ #1290): 1 of 20 failed (what_is_put_in_beside_the_guards_is_told_at_every_view)what_the_kernel_writes_through_is_not_guarded_for_another_view,faults_that_take_no_lock_tell_the_same)Same rate within noise, different
watchtests each time: the existing flakiness mentioned on #1267.One small thing: the test prints
first:/second:/null:andNV03_GPU_SEMANTICS_PASS copy=…on every run. Handy for this round of hardware checks, but probably worth removing before merge, since the assertions already say all of it.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 73N1X on 2026-11-28T23:45:00Z.
Thanks @babuakhil for the NVIDIA validation and regression analysis.
Addressed the review feedback in
65677f0by removing the temporary diagnostic output. All semantic assertions and test logic remain unchanged.Post-change validation on the RX 5700 XT:
The PR has been updated. No additional changes were introduced.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by iBooM72 on 2026-11-28T23:50:28Z.
Tested
65677f04on a GeForce RTX 4070 Ti 12 GB (driver 621.01), Windows 11 build 26300, Rust 1.98.1. Both commits cherry-pick cleanly ontomain(d4b5d517).The new test passed all 80 runs, with none skipped:
VICTORY_VIEW_COPY=0--all-featuresVICTORY_ADAPTER=4070. One extra run per setup, with a temporary check of the D3D12 device's adapter LUID, confirmed the RTX 4070 Ti. That check wasn't in the 80 runs.main, with or without--all-features(run without-D warnings, becausemainalready fails with it).I ran only this test with the PR applied, not the full suite. On
mainwithout the PR, one full run gave 1,305 passed, 59 ignored and 1 failed:repository_passes_policy, becauselower.rsis over the size limit (#1429).