Shaders: lower v_permlanex16_b32 without fetch-inactive #3560
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3560"
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 Marvisak/VIctory. Originally posted by pablogonz12 on 2026-11-27T17:50:28Z.
Summary
I lower
v_permlanex16_b32with fetch-inactive clear by selecting the source from the opposite 16-lane row using the two selector words. I ballot source activity and avoid reading an inactive source; when it is inactive, I preserve the destination for BC=0 or write zero for BC=1. Compute shaders using this path request the console wave size. I based the lane selection on work by fxceless.FI=1 behaviour is unchanged; its inactive-lane semantics are a separate question.
Evidence
Merge Danger
Door: Two-way
Blast Radius: Shader translation
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-27T18:27:16Z.
Verified on AMD hardware, head
b2d087e: Windows 11, Radeon 780M (RDNA3 iGPU, 32-lane waves available), toolchain 1.98.1.permlanex_partial_exec_matches_reference:[SUMMARY] permlanex: 2 passed, 0 failed, 0 skipped, so it ran on the 780M with 32-lane waves as well as on WARP; 0/10 failures over 10 runs.cargo test -p victory-shaderon the 780M: 303 passed, 0 failed.AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T18:32:38Z.
Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC.
b2d087e53e637c7dcc1ab1c4a880963c10d59dbb, merge base63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-shader --lib -- emit::crosslane_tests::permlanex_partial_exec_matches_reference --exact --test-threads=1 --quiettest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 305 filtered out, exit 0.git grep -F -c permlanex_partial_exec_matches_reference 63bcca43 -- .→ exit 1 / 0 hits (test genuinely new); present on PR head.git diff --check 63bcca43 HEAD→ exit 0.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.