Shaders: a select on a lane mask held as a number keeps the console's lanes (port of VIctory-7900XTX #308) #52
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!52
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-52"
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?
@illuminatedfellow on GitHub · 2026-11-27 15:05 UTC · original
illuminatedfellow:port-308→main· +36 −0 · 2 files · 1 commits · openPort of compaccount1-coder's fix from avatarmanz/VIctory-7900XTX#308 (still open there), cherry-picked with their authorship; the commit message is theirs.
The bug, on this fork's main: a
v_cndmask_b32select on a lane mask the code holds as a number (a constant bit pattern, or one loaded from memory) is lowered to each lane's own bit of that number. That is the console's bit only with the console's lanes, but the check that setsconsole_lanesdoesn't count such a select. A compute program whose only cross-lane code is one is lowered without them:debug_assert!incross_lanefires.The fix:
selects_on_mask_datacounts towardconsole_lanes, besidereads_mask_as_data.How it was found and checked here:
ir::build, structure, resources, io and lowering, with debug assertions on): 11 of 480,000 programs hit that assertion, all from this select.wave_sizeNone; on this branch,Some(32)in both.cargo test -p victory-shader: 205 passed. The test file had changed here, so the new test is written with this fork'slowered_with_wave; it is inwave64_tests.rs, which runs on Windows only, so it hasn't run yet.Not run on an RTX card or with title shaders.
@1tsethan on GitHub · 2026-11-27 23:00 UTC · original
Independent Windows validation of PR #52.
Tested commit:
e399f154c639fd561625c80e2b5e9259834bac33.cargo test --locked -p victory-shader a_select_on_a_mask_held -- --nocapture --test-threads=1Exit: 0.
This ran the mask-select lowering regression. It does not establish shader execution/output parity on the physical RTX adapter.
Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.
@cloph-dsp on GitHub · 2026-11-27 23:35 UTC · original
Independent local verification of PR #52 (shader select on a lane mask held as a number keeps the console's lanes).
cargo test --locked, synthetic inputs only.e399f154c639fd561625c80e2b5e9259834bac33, merge based12eb1b23da4cad2f551a3dd49e82a87e564122a, worktree-localCARGO_TARGET_DIR.cargo test --locked -p victory-shader --lib -- emit::wave64_tests::a_select_on_a_mask_held_as_a_number_keeps_the_consoles_lanes --exact --test-threads=1 --quiet→test result: ok. 1 passed; 0 failed; 292 filtered out, exit 0.git grep -F a_select_on_a_mask_held_as_a_number_keeps_the_consoles_lanes d12eb1b2 -- crates/victory-shader/src/emit/wave64_tests.rs→ exit 1 (test absent on base).git diff --check d12eb1b2 HEADclean; diff 2 files, +36 (lower.rs + wave64_tests.rs).Only the named test was replayed; full suite not run. GPU/driver N/A (CPU-side lowering test). AI-assisted (Hy4 flash). No game data, assets, extracted shaders, DRM or decrypt.
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.