Preserve opposite-row lane reads on Wave32 #340

Closed
github-bot wants to merge 1 commit from gh-pr/340/head into gh-pr/340/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-24 23:37 UTC · original
Kamiloj9:codex/wave32-opposite-row-permute → main · +295 −8 · 3 files · 1 commits · closed without merging

Change

  • Lower the zero-selector form of v_permlanex16_b32 to an opposite-row lane read within each 32-lane half. Require full guest EXEC and proven lane participation before emitting the read.
  • Check the flags and source mask before simulating the operation in the existing whole-wave reduction path.
  • Cover the lowering and refusal cases on CPU, and read back all 64 lane results on Wave32 hardware.

Verification

  • The captured CS_WaterTransmittanceOpticalDepthProcessing compute shader emits WaveSize(32), passes the DXIL validator and creates a D3D12 compute PSO. The strict replay uses VICTORY_WAVE_LOCAL=idiom.
  • The synthetic GPU dispatch returned the expected values for all 64 lanes on an RTX 4080 SUPER.
  • The integrated diagnostic build created the compute PSO in the title and reached the first 3D scene. The run later hit the existing Windows commit exhaustion.
  • Targeted lowering and symbolic wave tests, Clippy, and the staged asset policy check passed.
**@⁠Kamiloj9** on GitHub · 2026-11-24 23:37 UTC · [original](https://github.com/fxceless/victory-fork/pull/340) `Kamiloj9:codex/wave32-opposite-row-permute` → `main` · +295 −8 · 3 files · 1 commits · closed without merging ## Change - Lower the zero-selector form of `v_permlanex16_b32` to an opposite-row lane read within each 32-lane half. Require full guest EXEC and proven lane participation before emitting the read. - Check the flags and source mask before simulating the operation in the existing whole-wave reduction path. - Cover the lowering and refusal cases on CPU, and read back all 64 lane results on Wave32 hardware. ## Verification - The captured `CS_WaterTransmittanceOpticalDepthProcessing` compute shader emits WaveSize(32), passes the DXIL validator and creates a D3D12 compute PSO. The strict replay uses `VICTORY_WAVE_LOCAL=idiom`. - The synthetic GPU dispatch returned the expected values for all 64 lanes on an RTX 4080 SUPER. - The integrated diagnostic build created the compute PSO in the title and reached the first 3D scene. The run later hit the existing Windows commit exhaustion. - Targeted lowering and symbolic wave tests, Clippy, and the staged asset policy check passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:11 +00:00
github-bot closed this pull request 2026-11-26 03:41:11 +00:00
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 19:29 UTC · original

Merged on current main d510ee4 (+ #402 for SM 6.6 on Windows 10), RX 7900 XTX. The three new tests pass, and the hardware one fails without the fix. But main's emit::valu_tests::v_permlane16_and_x16_read_the_lanes_their_selectors_pick now fails, at translation:

lower: Unsupported { offset: 48, what: "unsupported opposite-row permutation controls" }

That test passes on main. It came in with 31714de, after this PR's base 2119b0e, along with main's general permlane lowering. The merge is textually clean, but the new opposite-row path now refuses controls that main translates. Since it fails at translation rather than on the GPU, it should fail on any host. Table of the run: #129 (#129).

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 19:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/340#issuecomment-7172370995) Merged on current `main` `d510ee4` (+ #402 for SM 6.6 on Windows 10), RX 7900 XTX. The three new tests pass, and the hardware one fails without the fix. But main's `emit::valu_tests::v_permlane16_and_x16_read_the_lanes_their_selectors_pick` now fails, at translation: ``` lower: Unsupported { offset: 48, what: "unsupported opposite-row permutation controls" } ``` That test passes on main. It came in with `31714de`, after this PR's base `2119b0e`, along with main's general permlane lowering. The merge is textually clean, but the new opposite-row path now refuses controls that main translates. Since it fails at translation rather than on the GPU, it should fail on any host. Table of the run: #129 (https://git.gtahub.st/github/fxceless--victory-fork/pulls/129).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.