tests: make the workspace tests pass on an NVIDIA machine and stop the loader test hang #48
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!48
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-48"
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?
@Kal0s-design on GitHub · 2026-12-05 18:59 UTC · original
Kal0s-design:tests/reliable-on-nvidia→main· +37 −7 · 6 files · 4 commits · merged 2026-12-05 19:56 UTCFour test fixes that together make the workspace tests reliable on a developer machine, so a red test means something again.
The first is mine. Three indirect clamp tests (host_list_budget_starts_empty_at_each_submission, warp_a_group_charges_its_records_in_lane_order, warp_batch_charges_every_execution) failed on any PC with an NVIDIA card. They run on WARP but compile the clamp with the default of the host, and nvidia_mode turns on by itself when the card is NVIDIA, which switches VICTORY_INDIRECT_REST off. The tests expect the non-NVIDIA default, so they saw the other default working as intended. In test builds rest() now resolves as on a non-NVIDIA host, and the NVIDIA default keeps its own check in rest_for_defaults_off_only_under_nvidia_mode. With VICTORY_INDIRECT_REST=1 forced on the old code all 19 indirect tests already passed, which is how I narrowed it down.
The second is also mine. quad_read_in_a_branch_reads_the_left_lanes_register lowered its program with host wave 0, which for the wave64 case asks for 64-lane waves, and a host whose waves are 32 lanes at most refuses that pipeline, so on NVIDIA it failed at compute_pipeline with "The parameter is incorrect" before checking anything. A real run lowers for the card's widest wave, and the other permlane test already passes WaveLaneCountMax. It now lowers for host.translation_caps()'s widest wave. On an NVIDIA card it then passes for both console wave sizes, which also exercises the split two-wave path for this case.
The other two come from upstream ReVIctory unchanged, authors kept. 82aa45a fixes a real hang in the victory-loader tests. MiniDumpWriteDump suspends every thread, and a test thread suspended inside LoadLibraryEx holds the loader lock the dump needs, so a parallel cargo test could sit at zero CPU forever. Here it hung twice in one evening. The cherry-pick needed one manual resolution, two module declarations upstream has in the same spot (ps5_rumble, vehicle_notch) that this fork doesn't have, so only the lock went in. 542aa65 makes the table-parts wait test robust on slow runners.
Tested on this branch merged with current main, on one NVIDIA desktop card. The three indirect tests pass where they failed before, victory-loader passes 112 in a quarter of a second instead of hanging, and clippy -D warnings reports nothing new in the touched crates (the three lints already on main aside). Of the victory-shader tests that run on the hardware adapter, three still fail on NVIDIA. The ISA comparison against RDNA2 differs there in the sign of zero for v_fma_mix_f32 and by an ulp in v_log_f32, the float d16 test sees the card drop the sign of a 16-bit NaN, and the 16-bit integer table view case is a real translation issue that gets its own PR. One victory-gpu test, watch's no_mapping_is_lost_between_askers, failed once in a full run while other builds were loading the machine and passed five times out of five on its own. It asserts that readers got at least one answer while mappers race them, so it can starve under load, and none of these changes touch it.
AI-assisted: yes
🤖 Generated with Claude Code
a6eb5646dato56db046a9f