Shaders: retire VICTORY_FIRSTLANE_OWN, first-lane reads only of values shown alike (#101) #173
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/173"
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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by HamudL on 2026-11-26T10:06:41Z.
Closes #101 once a run confirms it (see "Needs a game run").
What changes
VICTORY_FIRSTLANE_OWNis no longer read. On a host of 32-lane waves it took each host wave's own first lane of any value read where the two halves cannot meet, so a read of a value that differs between the halves gave the upper half the wrong lane instead of failing the build. The builder's three prefix scans (39321a95223001ed,77360df21e12ea43,9fc111d3be79364f), which it was made for, have been shown alike bylane_uniformsince the merge of #142. Without the switch any other such read is refused again ("a first-lane read where not every lane runs"), with its block named for the wave-wide forms (widen).RETIRED_FIRSTLANE_OWNinshader_cache.rs). Nothing is translated again. A run that still sets the switch is served what the translator makes now, not translations the shortcut once made.wave64_tests(Windows-only) move toemit/wave64_programs.rs, which builds everywhere. Three new tests of the lowering alone run on Linux too:wave_prefix_program(false)) lowers for waves of 32 with no switch, and no block is named;wave64_tests);main:clippy::missing_transmute_annotationsin thedescriptor_sitestest ofvictory-loaderfailscargo clippy --workspace --all-targets -- -D warningswith the pinned 1.98.1. The transmutes now nameusize -> F.Checked
cargo test -p victory-shader(default and--all-features) on Linux: 212 passed (209 before, plus the 3 new tests).cargo test -p xtask: policy and switch checks pass.cargo clippy --workspace --all-targets [--all-features] --target x86_64-pc-windows-msvc -- -D warnings: clean for both feature sets. This was a cross-check from Linux, withCARGO_FEATURE_PURE=1so that blake3 builds without MSVC.wave64_testson a card with waves of 32).Needs a game run
On a host that runs waves of 32 (NVIDIA, or AMD forced to wave32), with
VICTORY_BVH_BUILDER=1and withoutVICTORY_FIRSTLANE_OWN, check that the log still says all 53 builder programs have host pipelines (nomissing=3 of=53).View 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.