Tests: validate copied D3D12 descriptors through GPU-visible semantics #1355
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!1355
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@73N1X on GitHub · 2026-11-28 17:55 UTC · original
skAInet-labs:nv03/descriptor-semantic-validation→main· +190 −19 · 1 files · 2 commits · merged 2026-11-29 08:16 UTCSummary
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.@babuakhil on GitHub · 2026-11-28 20:24 UTC · original
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.@73N1X on GitHub · 2026-11-28 23:45 UTC · original
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.
@iBooM72 on GitHub · 2026-11-28 23:50 UTC · original
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).