Skip to content

Preserve opposite-row lane reads on Wave32 - #340

Closed
Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/wave32-opposite-row-permute
Closed

Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/wave32-opposite-row-permute

Conversation

@Kamiloj9

Copy link
Copy Markdown

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.

SaymonMaster14 added a commit to SaymonMaster14/victory-fork that referenced this pull request Nov 25, 2026
… it refused 30 more compute shaders next to fxceless#134's v_permlanex16; lower/tests.rs stays

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HAL9000RELOADED

Copy link
Copy Markdown

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 (comment)).

@Kamiloj9 Kamiloj9 closed this Nov 26, 2026
@Kamiloj9
Kamiloj9 deleted the codex/wave32-opposite-row-permute branch November 26, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants