Test: the water's GenerateTiles tile split on a host of 32-lane waves (ignored, on the card) #1107
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!1107
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1107"
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?
@grosterr on GitHub · 2026-11-28 13:21 UTC · original
grosterr:pr/water-tiles-test→main· +364 −0 · 2 files · 1 commits · merged 2026-11-28 19:39 UTCA test that keeps the lowering of the water light's tile split honest on hosts of 32-lane waves, as asked in #739. It adds a test file and nothing else; the test is
#[ignore]because it runs on the card.water_shading:CS_TransmissionVolumetrics_GenerateTiles(1aa247ed3653b616) is wave64 with 8x8 threads, one lane per tile. Tiles without water leave at once. The others look for a light in a loop that each lane leaves on its own. Then an if/else appends the tile to one of two lists in one buffer, with the allocation idiom on 64 lanes:s_ff1/s_bcnt1of EXEC, onebuffer_atomic_add(counter at offset 0, or at 32 for the second list),v_readfirstlane,v_mbcntlo/hi. The second list grows down from the end of the buffer throughv_xad_u32. On two host waves of 32 this only holds if the count, the single atomic and the base cover both halves.crates/victory-shader/src/emit/water_tiles_tests.rsbuilds a program of that shape with a small assembler. It goes through the production path (spill::build,structure,resource::track,io::raise,emitwith a host wave of 32) and lands in the same form as the game's program.VICTORY_WAVE_WHY=1gives the same three lines for both:The test runs 200 random cases on the card, with water in 100, 90, 50 and 10 % of the tiles and a random light and loop limit per lane. In each case it checks:
Checked on this branch (main
63b902f), RTX 3060 12 GB (driver 621.40), Windows 11:VICTORY_WAVE_WHY=1it prints the three lines above;cargo clippy -p victory-shader --all-targets: nothing new in the test file;cargo xtask policy: 295 files ok.VICTORY_LOOPS_WAVE=0. So the test does not catch NVIDIA's lanes that do not reconverge after the loop (one group only); it checks the split's lowering.The dark tiles at the buoy in #739 turned out to be in
_Tiled, not in this split; #888 fixes them on our build (details in #739).AI-assisted (Claude Code): Claude wrote the test and this text; I ran it on my PC. No game files: the program is assembled in the test.
🤖 Generated with Claude Code
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 13:39 UTC · original
Same result on a second architecture: RTX 5060 Ti 8 GB (Blackwell,
10de:2d04), Windows 11 26300, native D3D12.63b902f+ this PR.cargo test --release -p victory-shader --lib water_tiles -- --ignored --nocapture→ passed twice (6.35 s and 6.37 s).VICTORY_WAVE_WHY=1, the same three lines you listed: