NVIDIA test failures, and victory-gpu clean with clippy -D warnings #52
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!52
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-52"
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?
@towiice on GitHub · 2026-11-25 13:02 UTC · original
towiice:nvidia-and-clippy→main· +77 −57 · 14 files · 3 commits · openFixes the test failures I get on an NVIDIA card (apart from
xmem, see #14 / #16, and thextasksize policy) and the Clippy errors CI would reach after #3.Depends on #3 for Clippy to get past
victory-shader.What is in it (three commits)
descriptor/host.rs: on a host that caps the view heap at 1,000,000, the heap got 933,440 title slots even when fewer were asked for, sodynamic_slots_are_held_until_releasedfailed (also reported in #4). It now keepsmin(asked, 933,440). A request for 1,245,184 is unchanged, so this does not fix the short view heap of #9 / #15.valu_tests.rs: the four wave64 lane-count tests skip, saying why, on a host without 64-lane waves or without a GPU. They still run wherever the host reports 64 lanes, so the RDNA2 failures in #2 are not hidden.victory-gpuand one test-only lint invictory-hle: automatic fixes, SAFETY comments,allows for type complexity and argument count; removes the unusedtest_queueandRSP.Tested (GTX 1650 SUPER, driver 32.0.16.1088, Windows 11 build 26300, Rust 1.98.1 MSVC, debug)
With #3 and #16 merged locally:
cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean (also with #14 instead of #16)victory-gpulib: 109 passed, 0 failed, 4 ignored.victory-hlelib: 103 passed (104 with #14), 0 failed, 1 ignoredvictory-shaderlib: 266 passed, 0 failed, 6 ignored. Without thevalu_tests.rschange: 262 passed, 4 failedcargo test --workspace --locked --no-fail-fast: the remaining failure isrepository_passes_policy(lower.rsover the size limit, listed in the README). In that run thevictory-shadertests hung (one core busy, GPU idle) and I killed them after about 10 minutes; a second run of that library alone also hit my 8-minute limit. The groups I then ran alone passed, and the next full run of the library finished in 168 s. I have not found the cause, nor shown that it happens without this change.Not tested: AMD, Intel, a machine without a GPU, the game.
AI use: Claude Code (Claude Sonnet 5.5) wrote the changes, ran the tests and wrote this description.
🤖 Generated with Claude Code
@adrianmjim on GitHub · 2026-11-25 17:24 UTC · original
The
descriptor/host.rspart of this (24c3128) can be checked on a GPU that is not capped. On a branch based on01aadd1, I added a test-only thread-local cap to thecreateclosure inHostHeap::new: above it (PORTABLE_VIEWS), creating a shader-visible view heap returnsE_INVALIDARG. Two tests set the cap:(count, spare) == (4, DYNAMIC_CAPPED), then thedynamic_slots_are_held_until_releasedchecks;PORTABLE_VIEWS-slot request: 933,440 title slots,DYNAMIC_CAPPEDdynamic slots, in a 1,000,000-slot heap.On an RX 7900 XT (not capped; Windows 11 26300, Rust 1.98.1), the first test fails on
mainwith(933440, 65536)vs(4, 65536), the count reported in #4, and both pass with this PR's capped branch. The second also passes onmain, so it only guards the capped path.I also checked the old
lostfield. With a tracing subscriber installed,mainpanics in a debug build with "attempt to subtract with overflow" for a 4-slot heap. With this PR'ssaturating_subit does not.If useful, I can post the hook and tests as a patch here or open them as a PR on top of this one. Not tested on an NVIDIA card or with the game.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.