Fix transmission tile allocation on wave32 hosts #45
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/trustno1-coder--VIctory-NVIDIA!45
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-45"
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?
@xss3009 on GitHub · 2026-11-27 13:44 UTC · original
xss3009:pr-wave32-water-tile-append→main· +69 −1 · 2 files · 1 commits · openSummary
Fix the transmission tile allocator for the identified compute program when the host supports only 32-lane waves. Each admitted lane reserves one slot in its existing front or back list. This keeps the classification, atomic counters, list layout, index reversal and downstream dispatch contract.
The rewrite checks the container and native program identities. It moves the relevant atomic, address and wait instructions from the locally supplied program at runtime. The pull request contains no shader binaries or captures. The existing default for experimental tiled water lighting stays in place.
Verification
victory-shaderrelease library and validated translated DXIL with the Windows SDK validator. The wave32 output is byte-identical to the correction tested on an RTX 5070 Ti. The wave64 output is byte-identical to the original.@jptorres96 on GitHub · 2026-11-27 16:16 UTC · original
Independent run on RTX 4080 SUPER 16 GB (Ada, 32-lane waves), driver 621.01, Ryzen 5 5600X, Windows build 26300, toolchain 1.98.1, DXIL validator from DXC 1.9.2609.5,
VICTORY_REQUIRE_HW_GPU=1. Head69e7e00.The PR adds no tests (the rewrite matches a program of the title), so this only checks it breaks nothing else:
cargo clippy -p victory-shader --all-targets -- -D warnings: cleancargo test -p victory-shader --lib -- --test-threads=1: 287 passed, 0 failed, 4 ignoredNo game dump here, so the water itself is not checked.
@Younisl on GitHub · 2026-11-27 18:06 UTC · original
Thanks for the Wave32 tile append fix. I tested it on an RTX 4070 SUPER with experimental water lighting enabled. The local build was based on
d12eb1band also used paired Wave32 lowering for the two water-volume shaders, round-to-nearest-even conversion for packed depth, and the dispatch-order change below.In the sampled Series X boat scene (1440p, DLSS Performance, frame generation and ray tracing off), the large dark rectangles disappeared and the brighter water lighting remained. All four water-related compute shaders passed the Windows SDK DXIL validator. This was a test of the combined changes. The dispatch-order change was not isolated in a separate visual run and no FPS gain was measured.
The diff ends the indirect-argument batch after the transmission clear and tile-generation passes. Later indirect dispatches then use the updated tile counts. The diff applies to the tested base with
git apply.Dispatch-order patch against
d12eb1bView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.