Shaders: include v_readfirstlane_b32 in wave64 exchange and check implicit reads in lane_uniform #354

Open
github-bot wants to merge 1 commit from github-bot/gh-354 into main AGit
Owner

@⁠AscilCH on GitHub · 2026-11-24 23:49 UTC · original
AscilCH:fix/shader-wave64-readfirstlane-and-uniform → main · +297 −18 · 2 files · 1 commits · open

Problem

Two wave64-on-wave32 soundness bugs in crates/victory-shader/src/emit/lower.rs:

  1. Missing exchange for v_readfirstlane_b32 (Lower::new): console_lanes, crosses, and VICTORY_WAVE_WHY checked v_readlane_b32 and v_writelane_b32 but omitted v_readfirstlane_b32. On 32-lane hosts, a console wave64 compute shader using v_readfirstlane_b32 without another full-wave crossing op did not set up exchange LDS, so lanes 32..63 executed WaveReadLaneFirst on their own 32-lane half instead of across all 64 lanes.
  2. Implicit reads ignored in lane_uniform: lane_uniform only checked v.src and ignored implicit reads in inst.reads (e.g., accumulator VGPRs in v_fmac_*/v_mac_*/v_dot*c_*, preserved 16-bit destination halves, and implicit VCC in VOP2 v_cndmask_b32/v_add_co_ci_u32/v_div_fmas_f32) as well as movrel*. Whenever explicit sources were uniform, the per-lane result was falsely added to self.uniform, causing v_readfirstlane_b32 to skip exchange_halves.

Fix

  • Add non-waterfall v_readfirstlane_b32 to console_lanes, crosses, and VICTORY_WAVE_WHY (leaving waterfall descriptor reads unaffected since those lower per-lane).
  • Check every (reg, val) in inst.reads inside lane_uniform (and exclude movrel*) so implicit VGPR and VCC dependencies are properly tracked.
  • Add tests wave64_readfirstlane_exchanges_across_halves_on_32_lane_host and wave64_implicit_reads_are_not_marked_lane_uniform in emit::wave64_tests (asserting wave_size == Some(32) and half_exchanges > 0 for standalone v_readfirstlane_b32, v_fmac_f32, and VOP2 v_cndmask_b32, half_exchanges == 0 for truly uniform v_mov_b32, validated by dxil.dll, and executed on 32-lane hardware when supported).

Verification

  • cargo test -p victory-shader --locked wave64: 9 passed, 0 failed (dxil.dll validation + wave_size / half_exchanges assertions; note Intel UHD adapter 0 skips [WaveSize(32)] compute execution as with the existing wave64_tests)
  • cargo test -p victory-shader --locked waterfall: 21 passed, 0 failed (verified waterfall wave64 unaffected)
  • cargo xtask policy: 169 files ok
  • cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean
  • cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings: clean

(AI-assisted; synthetic tests only, no game data.)

**@⁠AscilCH** on GitHub · 2026-11-24 23:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/354) `AscilCH:fix/shader-wave64-readfirstlane-and-uniform` → `main` · +297 −18 · 2 files · 1 commits · open ## Problem Two wave64-on-wave32 soundness bugs in `crates/victory-shader/src/emit/lower.rs`: 1. **Missing `exchange` for `v_readfirstlane_b32` (`Lower::new`)**: `console_lanes`, `crosses`, and `VICTORY_WAVE_WHY` checked `v_readlane_b32` and `v_writelane_b32` but omitted `v_readfirstlane_b32`. On 32-lane hosts, a console wave64 compute shader using `v_readfirstlane_b32` without another full-wave crossing op did not set up `exchange` LDS, so lanes 32..63 executed `WaveReadLaneFirst` on their own 32-lane half instead of across all 64 lanes. 2. **Implicit reads ignored in `lane_uniform`**: `lane_uniform` only checked `v.src` and ignored implicit reads in `inst.reads` (e.g., accumulator VGPRs in `v_fmac_*`/`v_mac_*`/`v_dot*c_*`, preserved 16-bit destination halves, and implicit `VCC` in VOP2 `v_cndmask_b32`/`v_add_co_ci_u32`/`v_div_fmas_f32`) as well as `movrel*`. Whenever explicit sources were uniform, the per-lane result was falsely added to `self.uniform`, causing `v_readfirstlane_b32` to skip `exchange_halves`. ## Fix - Add non-waterfall `v_readfirstlane_b32` to `console_lanes`, `crosses`, and `VICTORY_WAVE_WHY` (leaving waterfall descriptor reads unaffected since those lower per-lane). - Check every `(reg, val)` in `inst.reads` inside `lane_uniform` (and exclude `movrel*`) so implicit VGPR and `VCC` dependencies are properly tracked. - Add tests `wave64_readfirstlane_exchanges_across_halves_on_32_lane_host` and `wave64_implicit_reads_are_not_marked_lane_uniform` in `emit::wave64_tests` (asserting `wave_size == Some(32)` and `half_exchanges` > 0 for standalone `v_readfirstlane_b32`, `v_fmac_f32`, and VOP2 `v_cndmask_b32`, `half_exchanges == 0` for truly uniform `v_mov_b32`, validated by `dxil.dll`, and executed on 32-lane hardware when supported). ## Verification - `cargo test -p victory-shader --locked wave64`: 9 passed, 0 failed (`dxil.dll` validation + `wave_size` / `half_exchanges` assertions; note Intel UHD adapter 0 skips `[WaveSize(32)]` compute execution as with the existing `wave64_tests`) - `cargo test -p victory-shader --locked waterfall`: 21 passed, 0 failed (verified waterfall wave64 unaffected) - `cargo xtask policy`: 169 files ok - `cargo clippy -p victory-shader --all-targets --locked -- -D warnings`: clean - `cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings`: clean *(AI-assisted; synthetic tests only, no game data.)*
Fix two wave64-on-wave32 soundness bugs in `crates/victory-shader/src/emit/lower.rs`:

1. `v_readfirstlane_b32` (when not a per-lane waterfall descriptor read)
   was omitted from `console_lanes`, `crosses`, and `VICTORY_WAVE_WHY` in
   `Lower::new`. A console wave64 compute shader whose cross-lane reads
   only used `v_readfirstlane_b32` (or paired it with half-local ops such
   as `ds_swizzle`/DPP) did not allocate half-wave `exchange` LDS, causing
   lanes 32..63 on 32-lane hosts to read lane 32's half instead of the
   64-lane wave's first active lane.
2. `lane_uniform` only inspected explicit `v.src` operands and ignored
   implicit register reads in `inst.reads` (such as the accumulator VGPR
   of `v_fmac_*`/`v_mac_*`/`v_dot*c_*`, preserved destination halves on
   16-bit writes, and implicit `VCC` on VOP2 `v_cndmask_b32`/`v_add_co_ci_u32`/
   `v_div_fmas_f32`), and did not exclude `movrel*`. A per-lane accumulator
   or `VCC`-selected VGPR whose explicit sources were uniform was falsely
   marked uniform, causing `v_readfirstlane_b32` to skip half-wave exchange.
   Inspect all `inst.reads` entries directly and exclude `movrel*`.

Add `wave64_readfirstlane_exchanges_across_halves_on_32_lane_host` and
`wave64_implicit_reads_are_not_marked_lane_uniform` in `emit::wave64_tests`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:30 +00:00
Author
Owner

@⁠m335671 on GitHub · 2026-11-25 17:53 UTC · original

Offline check on a 32-lane card. On current main, this PR makes the driver refuse 10 compute pipelines that it creates without it, and it adds none.

Tested

  • RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Windows 11 Pro 26300, release build.
  • main 3973179, then main with this PR's head 6273077 merged in. The merge was clean.
  • VICTORY_HOST_MAX_WAVE=32 victory translate --list --pipelines over the title's whole shader pack, compared program by program by hash.
pipelines created
main 3973179 25,608
main + this PR 25,598

Each of the 10 goes from pipeline created to pipeline: The parameter is incorrect.:

  • meshlet_culling:CS_BatchCullPreSkinnedMeshlets, with its _Prev, _ParaboloidShadows and _ParaboloidShadows_Prev variants (0452fc2d2e2fc4c3 and 3 others)
  • subsurfacescatter:CS_SSSPrefilterFull / Half, each with its _MaterialTiles variant (41f021c4e168e70b, 7e96471a390eb947 and 2 others)
  • vfx_proj_decal_hit_detection:CS_ComputeHitDetectionResults and CS_ComputeHitDetectionSkinnedResults

None of the programs that main refuses comes up with it.

My guess, which I haven't checked: these programs already pass through v_readfirstlane_b32 and now take the half exchange as well, and the form the driver gets is no longer one it accepts. That would fit "the fix is right, but it needs a fallback when the exchange form can't be created". The pre-skinned meshlet culling is the one that matters most: if its dispatches are dropped, skinned meshes may not be culled or drawn.

Not tested: in the title (offline the result is already worse on this card), other GPUs, and the PR on its own base (2119b0e).

AI use: Claude Code (Claude Opus 5.5) built and ran the check on my machine, compared the listings and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-25 17:53 UTC · [original](https://github.com/fxceless/victory-fork/pull/354#issuecomment-7170136065) Offline check on a 32-lane card. On current `main`, this PR makes the driver refuse **10 compute pipelines that it creates without it**, and it adds none. **Tested** - RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Windows 11 Pro 26300, release build. - `main` `3973179`, then `main` with this PR's head `6273077` merged in. The merge was clean. - `VICTORY_HOST_MAX_WAVE=32 victory translate --list --pipelines` over the title's whole shader pack, compared program by program by hash. | | pipelines created | |---|---| | `main` `3973179` | 25,608 | | `main` + this PR | 25,598 | Each of the 10 goes from `pipeline created` to `pipeline: The parameter is incorrect.`: - `meshlet_culling:CS_BatchCullPreSkinnedMeshlets`, with its `_Prev`, `_ParaboloidShadows` and `_ParaboloidShadows_Prev` variants (`0452fc2d2e2fc4c3` and 3 others) - `subsurfacescatter:CS_SSSPrefilterFull` / `Half`, each with its `_MaterialTiles` variant (`41f021c4e168e70b`, `7e96471a390eb947` and 2 others) - `vfx_proj_decal_hit_detection:CS_ComputeHitDetectionResults` and `CS_ComputeHitDetectionSkinnedResults` None of the programs that `main` refuses comes up with it. My guess, which I haven't checked: these programs already pass through `v_readfirstlane_b32` and now take the half exchange as well, and the form the driver gets is no longer one it accepts. That would fit "the fix is right, but it needs a fallback when the exchange form can't be created". The pre-skinned meshlet culling is the one that matters most: if its dispatches are dropped, skinned meshes may not be culled or drawn. **Not tested:** in the title (offline the result is already worse on this card), other GPUs, and the PR on its own base (`2119b0e`). AI use: Claude Code (Claude Opus 5.5) built and ran the check on my machine, compared the listings and wrote this comment.
Author
Owner

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

RX 7900 XTX (RDNA3), Windows 10 + #402 for SM 6.6, main d510ee4: both new tests pass on the card with this PR. No other test changed. Run table: #129 (#129).

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 19:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/354#issuecomment-7172380351) RX 7900 XTX (RDNA3), Windows 10 + #402 for SM 6.6, main `d510ee4`: both new tests pass on the card with this PR. No other test changed. Run table: #129 (https://git.gtahub.st/github/fxceless--victory-fork/pulls/129).
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-26 16:48 UTC · original · edited 2026-11-26 17:56 UTC

There is one more ordinary two-result case worth covering in the uniformity analysis here: v_swap_b32. AscilCH's implicit-read work in #354 is what led me to check it. The destination's old value is an actual input to the value written back to the source, not merely an inactive-lane preservation dependency. AMD's RDNA 2 ISA, section 12.8, V_SWAP_B32 defines the exchange of both operands.

I tested the actual ir::build -> structure -> all_lane_blocks -> lane_uniform path with this entirely synthetic, unguarded sequence and its reverse register order:

v_mov_b32 v5, v0
v_mov_b32 v6, 42
v_swap_b32 v5, v6
s_endpgm

Here v0 is a varying input. The fixture also runs both input orders and both same-kind controls. Its independent CPU oracle swaps two initialized values for each of 64 lanes and checks which output is constant across the lanes. A 1 below means the output is proved uniform, in encoded destination/source order. These are analysis results, not GPU readbacks.

Destination/source Old input uniformity Expected output proof Main before #354 head Main with correction
v5/v6 01 10 11 11 10
v5/v6 10 01 00 00 01
v6/v5 01 10 00 11 10
v6/v5 10 01 00 00 01

All four controls (both varying or both uniform, in both register orders) agree with the oracle in all three builds. The two focused tests on each uncorrected revision return 1 pass / 1 intended assertion failure; on the corrected receiver both pass. The existing native library suite gives 171 passed / 3 ignored before and after, with identical named outcomes. The historical #354 head gives 170 passed / 2 ignored. All builds completed successfully.

Exact tested revisions: main 93db653ada3ee0b94b2334243d7af81c3d12f27a and #354 head 6273077e2b8d3583f681aeafbce1ce83040f936d. These are separate source snapshots, not a causal whole-PR A/B. The controlled correction is on the first revision, with the same test-only fixture and lockfile before/after. Native x86_64 Linux, Rust 1.98.1, independent Cargo targets, locked/offline builds. No game, display, or GPU access.

Strict Clippy for the corrected non-test library also exits 0. Strict native --lib --tests lint exits 101 on both the receiver and its corrected version, with the same four unused-import/variable/mutability diagnostics in the unchanged emit/mod.rs. I left those unrelated Windows-gated test warnings outside this correction.

The narrow correction I tested is to retain the existing VALU and guard eligibility checks, handle this instruction before the generic alike classification, and propagate each old SSA input only to the output it supplies. With v borrowed from the existing Fields::Valu match:

if name == "v_swap_b32" {
    if let (Some(&Operand::Vector { reg: src, .. }), Some(Operand::Vector { reg: dst, .. })) =
        (v.src.first(), v.dst)
    {
        for (out, input) in [(Reg::V(dst), Reg::V(src)), (Reg::V(src), Reg::V(dst))] {
            if inst.read(input).is_some_and(|x| same.contains(&x)) {
                same.extend(inst.write(out));
            }
        }
    }
    continue;
}

For #354 this needs to be before the generic implicit-read/overwritten-destination filtering. Simply requiring both old values to be uniform would avoid the false positive but still miss the uniform output of a mixed swap. The tested main's ascending-register read selection also makes the two register orders differ. The per-result rule handles both tested orders while retaining the existing guard eligibility checks. This matters because v_readfirstlane_b32 can consume this proof when deciding whether the two host halves need to exchange values.

Main advanced to e4245f3c1b0490250d9cf0946a2113000be98687 while closing this comparison. I checked that the text of lane_uniform is unchanged and that the correction applies cleanly there, but its surrounding translator has changed and that newer revision has not been built or executed in this comparison. This is only a small proven analysis correction; I have not established a connection to the ten pipeline refusals reported above, the two water programs, driver execution, lighting, or title frame time.


Update: actual RTX 4060 / Proton readbacks on main e4245f3

The CPU analysis above now has a physical execution counterpart on e4245f3c1b0490250d9cf0946a2113000be98687. I used the same narrow per-result correction, not the whole historical #354 change, in a detached copy of that revision. Both arms have identical synthetic test code, registration and Cargo.lock. The production difference is confined to the swap uniformity analysis described above.

The new ordinary_swaps_preserve_console_first_lane_values test exercises both encoded register orders, all four combinations of varying/uniform inputs, and a console-wide lane read to retain the wave64-on-wave32 path. It compares both exchanged values and both subsequent first-lane broadcasts against an independent per-lane arithmetic oracle. Each dispatch writes 256 words into its own bounded output resource. All eight shaders in each arm passed the DXIL validator, created a compute PSO, completed their fence, returned the complete readback, and passed the device-status check.

Case Wrong words before Wrong words after Emitted barriers before / after Emitted LDS stores before / after
v5/v6, input 01 32 0 3 / 5 2 / 3
v5/v6, input 10 0 0 7 / 5 4 / 3
v6/v5, input 01 0 0 7 / 5 4 / 3
v6/v5, input 10 0 0 7 / 5 4 / 3

In the failing baseline case, the first-lane value should be 1063 across all 64 lanes. Lanes 32–63 instead return 1095. The corrected shader returns 1063 throughout. The other three mixed cases already returned correct data, but emitted an unnecessary exchange. All four same-kind controls keep their exact correct outputs and barrier counts. Across eight cases per arm: 32/2048 incorrect output words before, 0/2048 after. The focused test has one intended baseline assertion failure (Windows child exit 101) and one corrected pass (child exit 0). Both native Linux library suites report 175 passed, 0 failed, 3 ignored, with identical named outcomes.

Conditions: NVIDIA GeForce RTX 4060, driver 620.73.04, 8188 MiB VRAM, SM 6.6, wave lanes 32..32; GE-Proton 11-14 / Wine 11.0 Staging, vkd3d-proton build 71cae091b06571e. Separate locked/offline Rust 1.98.1 and LLVM MinGW builds, fresh matching copies of the same game-free prefix, initially empty private driver caches, VICTORY_SHADER_OPT=63, VICTORY_GROUP_SYNC=2. A private virtual display was used only for device initialization. The host-memory guard remained at 512 MiB and neither arm had a guard stop, host OOM kill, or monitored kernel GPU fault.

This confirms an actual arithmetic correctness improvement on the newer receiver, as well as removing needless synchronization in the other mixed cases. The emitted instruction counts are not timing measurements. There is still no measured connection to the title's water or lighting problems, the ten reported pipeline refusals, game frame time, or AMD/native Windows behavior. No game launch, captures, extracted shader code, or game data were involved. The full corrected test patch is kept isolated from installed main; the source-file-size policy discussion in #1342 is an independent existing integration issue, not something I have bypassed.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol Max).

**@⁠ArturoWolff** on GitHub · 2026-11-26 16:48 UTC · [original](https://github.com/fxceless/victory-fork/pull/354#issuecomment-7198118574) · edited 2026-11-26 17:56 UTC There is one more ordinary two-result case worth covering in the uniformity analysis here: `v_swap_b32`. AscilCH's implicit-read work in #354 is what led me to check it. The destination's old value is an actual input to the value written back to the source, not merely an inactive-lane preservation dependency. AMD's [RDNA 2 ISA, section 12.8, V_SWAP_B32](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf) defines the exchange of both operands. I tested the actual `ir::build` -> `structure` -> `all_lane_blocks` -> `lane_uniform` path with this entirely synthetic, unguarded sequence and its reverse register order: ```asm v_mov_b32 v5, v0 v_mov_b32 v6, 42 v_swap_b32 v5, v6 s_endpgm ``` Here `v0` is a varying input. The fixture also runs both input orders and both same-kind controls. Its independent CPU oracle swaps two initialized values for each of 64 lanes and checks which output is constant across the lanes. A `1` below means the output is proved uniform, in encoded destination/source order. These are analysis results, **not GPU readbacks**. | Destination/source | Old input uniformity | Expected output proof | Main before | #354 head | Main with correction | |---|---|---|---|---|---| | v5/v6 | 01 | 10 | 11 | 11 | 10 | | v5/v6 | 10 | 01 | 00 | 00 | 01 | | v6/v5 | 01 | 10 | 00 | 11 | 10 | | v6/v5 | 10 | 01 | 00 | 00 | 01 | All four controls (both varying or both uniform, in both register orders) agree with the oracle in all three builds. The two focused tests on each uncorrected revision return 1 pass / 1 intended assertion failure; on the corrected receiver both pass. The existing native library suite gives 171 passed / 3 ignored before and after, with identical named outcomes. The historical #354 head gives 170 passed / 2 ignored. All builds completed successfully. Exact tested revisions: main `93db653ada3ee0b94b2334243d7af81c3d12f27a` and #354 head `6273077e2b8d3583f681aeafbce1ce83040f936d`. These are separate source snapshots, not a causal whole-PR A/B. The controlled correction is on the first revision, with the same test-only fixture and lockfile before/after. Native x86_64 Linux, Rust 1.98.1, independent Cargo targets, locked/offline builds. No game, display, or GPU access. Strict Clippy for the corrected non-test library also exits 0. Strict native `--lib --tests` lint exits 101 on both the receiver and its corrected version, with the same four unused-import/variable/mutability diagnostics in the unchanged `emit/mod.rs`. I left those unrelated Windows-gated test warnings outside this correction. The narrow correction I tested is to retain the existing VALU and guard eligibility checks, handle this instruction before the generic `alike` classification, and propagate each old SSA input only to the output it supplies. With `v` borrowed from the existing `Fields::Valu` match: ```rust if name == "v_swap_b32" { if let (Some(&Operand::Vector { reg: src, .. }), Some(Operand::Vector { reg: dst, .. })) = (v.src.first(), v.dst) { for (out, input) in [(Reg::V(dst), Reg::V(src)), (Reg::V(src), Reg::V(dst))] { if inst.read(input).is_some_and(|x| same.contains(&x)) { same.extend(inst.write(out)); } } } continue; } ``` For #354 this needs to be before the generic implicit-read/overwritten-destination filtering. Simply requiring both old values to be uniform would avoid the false positive but still miss the uniform output of a mixed swap. The tested main's ascending-register read selection also makes the two register orders differ. The per-result rule handles both tested orders while retaining the existing guard eligibility checks. This matters because `v_readfirstlane_b32` can consume this proof when deciding whether the two host halves need to exchange values. Main advanced to `e4245f3c1b0490250d9cf0946a2113000be98687` while closing this comparison. I checked that the text of `lane_uniform` is unchanged and that the correction applies cleanly there, but its surrounding translator has changed and that newer revision has not been built or executed in this comparison. This is only a small proven analysis correction; I have not established a connection to the ten pipeline refusals reported above, the two water programs, driver execution, lighting, or title frame time. --- **Update: actual RTX 4060 / Proton readbacks on main `e4245f3`** The CPU analysis above now has a physical execution counterpart on `e4245f3c1b0490250d9cf0946a2113000be98687`. I used the same narrow per-result correction, not the whole historical #354 change, in a detached copy of that revision. Both arms have identical synthetic test code, registration and Cargo.lock. The production difference is confined to the swap uniformity analysis described above. The new `ordinary_swaps_preserve_console_first_lane_values` test exercises both encoded register orders, all four combinations of varying/uniform inputs, and a console-wide lane read to retain the wave64-on-wave32 path. It compares both exchanged values and both subsequent first-lane broadcasts against an independent per-lane arithmetic oracle. Each dispatch writes 256 words into its own bounded output resource. All eight shaders in each arm passed the DXIL validator, created a compute PSO, completed their fence, returned the complete readback, and passed the device-status check. | Case | Wrong words before | Wrong words after | Emitted barriers before / after | Emitted LDS stores before / after | |---|---:|---:|---:|---:| | v5/v6, input 01 | 32 | 0 | 3 / 5 | 2 / 3 | | v5/v6, input 10 | 0 | 0 | 7 / 5 | 4 / 3 | | v6/v5, input 01 | 0 | 0 | 7 / 5 | 4 / 3 | | v6/v5, input 10 | 0 | 0 | 7 / 5 | 4 / 3 | In the failing baseline case, the first-lane value should be 1063 across all 64 lanes. Lanes 32–63 instead return 1095. The corrected shader returns 1063 throughout. The other three mixed cases already returned correct data, but emitted an unnecessary exchange. All four same-kind controls keep their exact correct outputs and barrier counts. Across eight cases per arm: 32/2048 incorrect output words before, 0/2048 after. The focused test has one intended baseline assertion failure (Windows child exit 101) and one corrected pass (child exit 0). Both native Linux library suites report 175 passed, 0 failed, 3 ignored, with identical named outcomes. Conditions: NVIDIA GeForce RTX 4060, driver 620.73.04, 8188 MiB VRAM, SM 6.6, wave lanes 32..32; GE-Proton 11-14 / Wine 11.0 Staging, vkd3d-proton build `71cae091b06571e`. Separate locked/offline Rust 1.98.1 and LLVM MinGW builds, fresh matching copies of the same game-free prefix, initially empty private driver caches, `VICTORY_SHADER_OPT=63`, `VICTORY_GROUP_SYNC=2`. A private virtual display was used only for device initialization. The host-memory guard remained at 512 MiB and neither arm had a guard stop, host OOM kill, or monitored kernel GPU fault. This confirms an actual arithmetic correctness improvement on the newer receiver, as well as removing needless synchronization in the other mixed cases. The emitted instruction counts are not timing measurements. There is still no measured connection to the title's water or lighting problems, the ten reported pipeline refusals, game frame time, or AMD/native Windows behavior. No game launch, captures, extracted shader code, or game data were involved. The full corrected test patch is kept isolated from installed main; the source-file-size policy discussion in #1342 is an independent existing integration issue, not something I have bypassed. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol Max).
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/src/emit/wave64_tests.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/354/head:github-bot/gh-354'
git switch 'github-bot/gh-354'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-354'
git switch 'github-bot/gh-354'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-354'
git switch 'github-bot/gh-354'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-354'
git switch 'main'
git merge --squash 'github-bot/gh-354'
git switch 'main'
git merge --ff-only 'github-bot/gh-354'
git switch 'main'
git merge 'github-bot/gh-354'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.