Repository navigation
Conversation
|
Tested
No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
GPU check of this PR on an RX 7800 XT (RDNA3, 64-lane pixel waves): a synthetic wave32 pixel program drawn through AI use: Claude Code (Claude Opus 5.5) wrote and ran the test. |
|
Independent check on an AMD RDNA4 Windows machine, and the reason the workspace was red for you: The What I ranMachine: Windows 11 build 26200, AMD Radeon RX 9060 XT (RDNA4, gfx1200), Adrenalin 26.10.1 / Windows driver
So the fix and its test are green on this card, and the workspace is only blocked by the base. A rebase onto Scope note, since #145 and #147 were opened 12 seconds apart with the same fix ( AI-assisted. |
…st-wave mask ops) into the integration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
Independent RDNA2 hardware validation — RX 6700 XTReproduced the host-wave mask issue using the public synthetic pixel shader test from #125. Hardware:
The tested local branch ( Four additional tests reported success but internally skipped comparisons because the console compiler was unavailable. This confirms the pixel-shader mask count and prefix behavior on RDNA2. Vertex shaders and other affected mask operations were not independently verified. No commercial game data was used. Raw logs and pixel readbacks are available if needed. AI use: OpenAI Codex assisted with compilation, testing and analysis on physical hardware. |
|
Tested this branch on an RX 6600 XT (RDNA 2), which runs pixel shaders in wave64, with hardware regression tests that check every pixel against wave32 semantics. Details and the full results: #599 (comment) With this change, A wave32 mask read should only use its own half of the ballot, as #434 does. With #434 + #599, all 11 tests pass on this GPU. |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
Fixes #131, #125.
What is in it
Under
MaskData::Host(pixel and vertex programs),s.wave_sizeisNoneandmask_ballottakes a ballot over the host wave, producing a(lo, hi)pair viawaveActiveBallot. Previously, the 32-bit mask-reading sites in wave32 console programs only readloand droppedhi, losing lanes 32-63 when a driver runs the stage 64-wide (e.g., AMD RDNA):s_bcnt1_i32_b32/s_ff1_i32_b32: factoredbcnt1_64andff1_64helpers (shared withs_bcnt1_i32_b64/s_ff1_i32_b64) and use both ballot halves when the operand is a tracked wave32 host mask.s_cmp_eq_u32/s_cmp_lg_u32: compare both(lo, hi)ballot halves when comparing two tracked host masks or comparing a tracked host mask against0.v_mbcnt_lo_u32_b32:-1(all-lanes mask) in a wave32 host-mask program, lower directly towaveGetLaneIndex() + src1instead of clamping to 32 atlane >= 32.laneacross bothloandhiusing a sharedbelow_maskhelper andbcnt1_64.#[cfg(test)] Module::uses_ofincrates/victory-shader/src/emit/bitcode.rsand synthetic wave32 pixel shader testhost_wave32_mask_ops_use_both_ballot_halvesincrates/victory-shader/src/emit/lower.rs(no game data).Tested
rustfmt --check --edition 2024 crates/victory-shader/src/emit/bitcode.rs crates/victory-shader/src/emit/lower.rs: passedcargo xtask policy:asset policy: 151 files okcargo clippy -p victory-shader --all-targets -- -D warnings: passed (0 warnings)cargo test -p victory-shader:70 passed; 0 failed(including GPU diff tests on RX 9060 XT + new synthetic test)cargo test --workspace --exclude victory-gpu --lib --tests: all passed (note:victory-gputest build onmain9aef3d9has a pre-existing duplicatemod testsinhost.rs:1974)AI use
AI-assisted (Antigravity / Gemini 3.1 Pro) on Windows 11, Intel i5-14600KF, AMD Radeon RX 9060 XT (Adrenalin 26.11.2). No game data was used.