Repository navigation
Test: the water's GenerateTiles tile split on a host of 32-lane waves (ignored, on the card) - #1107
Merged
Conversation
… (ignored, on the card) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Same result on a second architecture: RTX 5060 Ti 8 GB (Blackwell,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A 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