D3D12.X: log once which form wave64 programs get, and why (#1407) #1400

Merged
tiagonogueiraa-bit merged 1 commit from upstream-pr/1410 into main 2026-12-02 17:39:12 +00:00
tiagonogueiraa-bit commented 2026-11-24 15:42:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonogueiraa-bit on 2026-11-24T15:42:15Z.


Which form wave64 programs get decides whether cross-lane results are right: compute / mesh / geometry split into 32-lane halves or native wave64, and VS / PS with or without the upper-lanes form. A wrong choice shows nothing else in the log. It was decided silently from the device's wave range, XCL_SPLIT_WAVE64=1, or an unknown range. Fixes #1407.

wave32_only_for_device and graphics_wave32_for_device now log one line the first time either runs, for example:

[SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32)

What is in it

  • crates/xcl/src/gpu/recomp/pso.rs:
    • log_wave_mode (once per process, std::sync::Once) and wave_mode_line, a pure function for the text.
    • Both *_for_device functions read the wave range once and log it.
    • Unit test wave_mode_line_names_the_form_and_why: 32–32, 32–64, 64–64, the XCL_SPLIT_WAVE64=1 override and an unknown range.

Tested

  • macOS, Rust stable:
    • cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvc: no errors (C code stubbed, nothing linked).
    • The unit test's assertions pass, compiled with rustc against copies of wave32_only, graphics_wave32 and wave_mode_line.
  • @MiharaxD, native Windows, RTX 3070 Ti (32-lane waves), on this head b63a67b (report):
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 752 passed, 0 failed, 41 ignored, with SKIPPED (no wave64) gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware. wave_mode_line_names_the_form_and_why passes.
    • In a 60 s retail run, the log has the line exactly once, at 2.6 s: [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32).

Regression run
By @MiharaxD: scripts/smoke.ps1 -Seconds 60, RTX 3070 Ti, start screen, no input, unedited, from the report.

main:

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1589 (PresentX 1589)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15376 MB

PR:

xcl-smoke v1
commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1602 (PresentX 1602)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15012 MB

Not tested

  • The log line on AMD / Intel and with native wave64, XCL_SPLIT_WAVE64=1 or an unknown range in a real run; the unit test covers those texts.
  • A retail title.

AI use

  • Claude Code with Claude Opus 5.5. It wrote the change, the test and this description, and ran the macOS checks.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5475404515 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-24T15:42:15Z. --- Which form wave64 programs get decides whether cross-lane results are right: compute / mesh / geometry split into 32-lane halves or native wave64, and VS / PS with or without the upper-lanes form. A wrong choice shows nothing else in the log. It was decided silently from the device's wave range, `XCL_SPLIT_WAVE64=1`, or an unknown range. Fixes #1407. `wave32_only_for_device` and `graphics_wave32_for_device` now log one line the first time either runs, for example: ``` [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32) ``` **What is in it** - `crates/xcl/src/gpu/recomp/pso.rs`: - `log_wave_mode` (once per process, `std::sync::Once`) and `wave_mode_line`, a pure function for the text. - Both `*_for_device` functions read the wave range once and log it. - Unit test `wave_mode_line_names_the_form_and_why`: 32–32, 32–64, 64–64, the `XCL_SPLIT_WAVE64=1` override and an unknown range. **Tested** - macOS, Rust stable: - `cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvc`: no errors (C code stubbed, nothing linked). - The unit test's assertions pass, compiled with `rustc` against copies of `wave32_only`, `graphics_wave32` and `wave_mode_line`. - @MiharaxD, native Windows, RTX 3070 Ti (32-lane waves), on this head `b63a67b` ([report](https://github.com/ivall/xcl/pull/1410#issuecomment-7136969496)): - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **752 passed, 0 failed, 41 ignored**, with SKIPPED (no wave64) `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. `wave_mode_line_names_the_form_and_why` passes. - In a 60 s retail run, the log has the line exactly once, at 2.6 s: `[SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32)`. **Regression run** By @MiharaxD: `scripts/smoke.ps1 -Seconds 60`, RTX 3070 Ti, start screen, no input, unedited, from [the report](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7141447356). main: ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1589 (PresentX 1589) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15376 MB ``` PR: ``` xcl-smoke v1 commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1602 (PresentX 1602) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15012 MB ``` **Not tested** - The log line on AMD / Intel and with native wave64, `XCL_SPLIT_WAVE64=1` or an unknown range in a real run; the unit test covers those texts. - A retail title. **AI use** - Claude Code with Claude Opus 5.5. It wrote the change, the test and this description, and ran the macOS checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MiharaxD commented 2026-11-24 16:07:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MiharaxD on 2026-11-24T16:00:26Z.


Windows run on a 32-lane NVIDIA card, head b63a67b (on main 930e8b4), which covers the "not run on Windows" and "the log line in a real run" lines.

Tested

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on b63a67b: 752 passed, 0 failed, 41 ignored (lib tests 708 / 0 / 21). wave_mode_line_names_the_form_and_why passes. The build's one warning (fetch_update deprecated, hle/xgameruntime/mod.rs:547) is not from this PR.
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • Retail GTA VI 1.0.2.1, the PR's smoke run below: the log has the line exactly once (9444 lines in all), at 2.6 s:
    [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32)
    
    That matches this card: 32-32 device waves, so split wave64 for both.

Regression run
scripts/smoke.ps1 -Game <GTA VI 1.0.2.1 folder> -Seconds 60 (release builds, start screen, no input):

main:

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 3070 Ti
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1575 (PresentX 1575)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15736 MB

this PR's head:

xcl-smoke v1
commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14
gpu: NVIDIA GeForce RTX 3070 Ti
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1580 (PresentX 1580)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15909 MB

Not tested

  • XCL_SPLIT_WAVE64=1 and an unknown wave range in a real run: only the unit test covers them.
  • AMD / Intel, native wave64 (the native wave64 and as they are forms).
  • Current main (037aecd): the PR is based on 930e8b4.

AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the log and wrote this report; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7136969496 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1410#issuecomment-7136969496). Originally posted by [MiharaxD](https://github.com/MiharaxD) on 2026-11-24T16:00:26Z. --- Windows run on a 32-lane NVIDIA card, head `b63a67b` (on `main` `930e8b4`), which covers the "not run on Windows" and "the log line in a real run" lines. **Tested** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on `b63a67b`: **752 passed, 0 failed, 41 ignored** (lib tests 708 / 0 / 21). `wave_mode_line_names_the_form_and_why` passes. The build's one warning (`fetch_update` deprecated, `hle/xgameruntime/mod.rs:547`) is not from this PR. - SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - Retail GTA VI 1.0.2.1, the PR's smoke run below: the log has the line exactly once (9444 lines in all), at 2.6 s: ``` [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32) ``` That matches this card: 32-32 device waves, so split wave64 for both. **Regression run** `scripts/smoke.ps1 -Game <GTA VI 1.0.2.1 folder> -Seconds 60` (release builds, start screen, no input): main: ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 3070 Ti title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1575 (PresentX 1575) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15736 MB ``` this PR's head: ``` xcl-smoke v1 commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14 gpu: NVIDIA GeForce RTX 3070 Ti title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1580 (PresentX 1580) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15909 MB ``` **Not tested** - `XCL_SPLIT_WAVE64=1` and an unknown wave range in a real run: only the unit test covers them. - AMD / Intel, native wave64 (the `native wave64` and `as they are` forms). - Current `main` (`037aecd`): the PR is based on `930e8b4`. **AI use:** Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the log and wrote this report; I checked it before posting.
tiagonogueiraa-bit commented 2026-11-24 16:07:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonogueiraa-bit on 2026-11-24T16:02:12Z.


Thank you, @MiharaxD! The suite and the log line from a real run are in Tested, and the PR is ready for review.

One small request: your smoke blocks' title: line is the game folder's name, which names the game, and the maintainer asks that it stay out of PRs. Blocks can't be edited by hand, so I linked your pair instead of pasting it. If you rerun with the folder renamed to something neutral (e.g. game), I'll paste both blocks as they are.

Written with Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7137016297 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1410#issuecomment-7137016297). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-24T16:02:12Z. --- Thank you, @MiharaxD! The suite and the log line from a real run are in **Tested**, and the PR is ready for review. One small request: your smoke blocks' `title:` line is the game folder's name, which names the game, and the maintainer asks that it stay out of PRs. Blocks can't be edited by hand, so I linked your pair instead of pasting it. If you rerun with the folder renamed to something neutral (e.g. `game`), I'll paste both blocks as they are. Written with Claude Code (Claude Opus 5.5).
DavidM1911 commented 2026-11-24 18:08:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T17:08:30Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7138746896 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7138746896). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T17:08:30Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
MiharaxD commented 2026-11-24 19:07:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MiharaxD on 2026-11-24T18:59:57Z.


Reposted: the earlier copy of this comment was deleted.

Windows run on a 32-lane NVIDIA card, head b63a67b (on main 930e8b4), which covers the "not run on Windows" and "the log line in a real run" lines.

Tested

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on b63a67b: 752 passed, 0 failed, 41 ignored (lib tests 708 / 0 / 21). wave_mode_line_names_the_form_and_why passes. The build's one warning (fetch_update deprecated, hle/xgameruntime/mod.rs:547) is not from this PR.
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • Retail title, the PR's smoke run below: the log has the line exactly once, at 2.7 s:
    [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32)
    
    That matches this card: 32-32 device waves, so split wave64 for both.

Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60 (release builds, start screen, no input; game folder renamed to game, so title: names no title). main is now 9e3831e; the PR is still on 930e8b4:

main:

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1589 (PresentX 1589)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15376 MB

this PR's head:

xcl-smoke v1
commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1602 (PresentX 1602)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15012 MB

Not tested

  • XCL_SPLIT_WAVE64=1 and an unknown wave range in a real run: only the unit test covers them.
  • AMD / Intel, native wave64 (the native wave64 and as they are forms).
  • This PR merged into current main: it is tested as pushed, on 930e8b4.

AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the log and wrote this report; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7141447356 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7141447356). Originally posted by [MiharaxD](https://github.com/MiharaxD) on 2026-11-24T18:59:57Z. --- *Reposted: the earlier copy of this comment was deleted.* Windows run on a 32-lane NVIDIA card, head `b63a67b` (on `main` `930e8b4`), which covers the "not run on Windows" and "the log line in a real run" lines. **Tested** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on `b63a67b`: **752 passed, 0 failed, 41 ignored** (lib tests 708 / 0 / 21). `wave_mode_line_names_the_form_and_why` passes. The build's one warning (`fetch_update` deprecated, `hle/xgameruntime/mod.rs:547`) is not from this PR. - SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - Retail title, the PR's smoke run below: the log has the line exactly once, at 2.7 s: ``` [SHADER] wave mode: wave64 compute / mesh / geometry split into 32-lane halves, wave64 VS / PS with the upper-lanes form (the driver may pick 32 lanes) (device waves 32-32) ``` That matches this card: 32-32 device waves, so split wave64 for both. **Regression run** `scripts/smoke.ps1 -Game <game folder> -Seconds 60` (release builds, start screen, no input; game folder renamed to `game`, so `title:` names no title). `main` is now `9e3831e`; the PR is still on `930e8b4`: main: ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1589 (PresentX 1589) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15376 MB ``` this PR's head: ``` xcl-smoke v1 commit: b63a67b175d83cc9f9b28cf0ed59555635ec7b14 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1602 (PresentX 1602) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15012 MB ``` **Not tested** - `XCL_SPLIT_WAVE64=1` and an unknown wave range in a real run: only the unit test covers them. - AMD / Intel, native wave64 (the `native wave64` and `as they are` forms). - This PR merged into current `main`: it is tested as pushed, on `930e8b4`. **AI use:** Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the log and wrote this report; I checked it before posting.
tiagonogueiraa-bit commented 2026-11-24 21:08:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonogueiraa-bit on 2026-11-24T19:22:00Z.


Thank you for the rerun with a neutral folder, @MiharaxD! Both blocks are under Regression run exactly as posted.

Written with Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7141991270 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7141991270). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-24T19:22:00Z. --- Thank you for the rerun with a neutral folder, @MiharaxD! Both blocks are under **Regression run** exactly as posted. Written with Claude Code (Claude Opus 5.5).
Mischief8713 commented 2026-11-24 21:09:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Mischief8713 on 2026-11-24T20:36:50Z.


GPU run of b63a67b on Windows (NVIDIA GTX 1660 Ti, Turing): 708 passed, 0 failed, 21 ignored

Tested

  • NVIDIA GeForce GTX 1660 Ti 6 GB (Turing, driver 32.0.16.2114), Ryzen 5 2600X, Windows 11 (10.0.26300), rustc 1.100.0, debug build
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4; build exit 0, test exit 0
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64)
  • The head does not contain current main (9039900). It was run as it is.
  • lib: 708 passed, 0 failed, 21 ignored.
  • gpu::recomp::pso::shader_cache_tests::wave_mode_line_names_the_form_and_why passed.

Not tested

  • No retail title and no scripts/smoke.ps1 run, so no regression run
  • The [SHADER] wave mode: line in a real title's log, since that needs a title
  • AMD GPUs; only Turing was run here

AI use

  • Claude Code with Claude Sonnet 5.5 ran the commands and wrote this report. I checked the output.
<!-- greyfinch-sync:ivall/xcl:comment:7143816712 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7143816712). Originally posted by [Mischief8713](https://github.com/Mischief8713) on 2026-11-24T20:36:50Z. --- **GPU run of `b63a67b` on Windows (NVIDIA GTX 1660 Ti, Turing): 708 passed, 0 failed, 21 ignored** **Tested** - NVIDIA GeForce GTX 1660 Ti 6 GB (Turing, driver 32.0.16.2114), Ryzen 5 2600X, Windows 11 (10.0.26300), rustc 1.100.0, debug build - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`; build exit 0, test exit 0 - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64) - The head does not contain current `main` (`9039900`). It was run as it is. - lib: 708 passed, 0 failed, 21 ignored. - `gpu::recomp::pso::shader_cache_tests::wave_mode_line_names_the_form_and_why` passed. **Not tested** - No retail title and no `scripts/smoke.ps1` run, so no regression run - The `[SHADER] wave mode:` line in a real title's log, since that needs a title - AMD GPUs; only Turing was run here **AI use** - Claude Code with Claude Sonnet 5.5 ran the commands and wrote this report. I checked the output.
github-actions[bot] commented 2026-11-28 08:00:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:08Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7236296811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7236296811). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:00:08Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 05:39:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:39:26Z.


Triage (#1607) – head b63a67b

#1696 also logs the wave mode for #1407, but once at device init in real.rs as raw booleans (compute_wave32/graphics_wave32/split_forced) and bundled with an unrelated XUserCloseHandle change. This PR was opened first, logs which form each class gets and why, and has a test of the line.
No problems found in the diff: wave_mode_line matches the decisions of wave32_only_for_device / graphics_wave32_for_device, including the unknown-range default.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301999532 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7301999532). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:39:26Z. --- **Triage (#1607)** – head b63a67b #1696 also logs the wave mode for #1407, but once at device init in real.rs as raw booleans (compute_wave32/graphics_wave32/split_forced) and bundled with an unrelated XUserCloseHandle change. This PR was opened first, logs which form each class gets and why, and has a test of the line. No problems found in the diff: wave_mode_line matches the decisions of wave32_only_for_device / graphics_wave32_for_device, including the unknown-range default. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
BBareth commented 2026-12-01 07:30:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:30:34Z.


merge-check claim
head: b63a67b175

<!-- greyfinch-sync:ivall/xcl:comment:7304140752 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7304140752). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:30:34Z. --- merge-check claim head: b63a67b175d83cc9f9b28cf0ed59555635ec7b14
BBareth commented 2026-12-01 07:47:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:47:12Z.


merge-check
base: 493dbd3dd0
head: b63a67b175
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test wave_mode_line_names_the_form_and_why ran and passed.
review: no blocking finding; one file (+47/-2), every line read. wave32_only_for_device and graphics_wave32_for_device log one [SHADER] wave mode: ... line per process (a Once) with the form wave64 programs get and the reason (device wave range, unknown, or XCL_SPLIT_WAVE64=1); their results are computed as before. The line reflects the first device asked; a second device with another range would not be logged. Not tested here: a retail title run to read the line in its log.
performance: none: one log line per process.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7304477926 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7304477926). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:47:12Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: b63a67b175d83cc9f9b28cf0ed59555635ec7b14 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test `wave_mode_line_names_the_form_and_why` ran and passed. review: no blocking finding; one file (+47/-2), every line read. `wave32_only_for_device` and `graphics_wave32_for_device` log one `[SHADER] wave mode: ...` line per process (a `Once`) with the form wave64 programs get and the reason (device wave range, unknown, or `XCL_SPLIT_WAVE64=1`); their results are computed as before. The line reflects the first device asked; a second device with another range would not be logged. Not tested here: a retail title run to read the line in its log. performance: none: one log line per process. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
skypinglost commented 2026-12-01 23:38:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by skypinglost on 2026-12-01T23:38:26Z.


merge-check
base: 1c8b551475
head: b63a67b175
merge: clean
build: cargo +1.98.1 build --workspace -> ok
tests: cargo +1.98.1 test --workspace --no-fail-fast -- --test-threads=4 -> 2909 passed, 1 failed, 51 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache); failing: gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (fails identically on pure base 1c8b551475 with "DXIL not compiled yet", pre-existing and unrelated to this PR). The new test gpu::recomp::pso::shader_cache_tests::wave_mode_line_names_the_form_and_why passed.
review: no blocking findings; read the entire diff (1 file, +47/-2 in crates/xcl/src/gpu/recomp/pso.rs) and the merged context. wave32_only_for_device and graphics_wave32_for_device log one [SHADER] wave mode: ... line per process via std::sync::Once; wave_mode_line matches wave32_only and graphics_wave32 across known ranges, unknown range, and XCL_SPLIT_WAVE64=1, while keeping both return values unchanged. Non-blocking notes: (1) when XCL_SPLIT_WAVE64=1 is set, wave_range(device) is now queried before the short-circuit check even though the forced branch does not print the range; (2) Once logs only the first device queried in a process. Duplicate check: #1696 is closed, no competing open duplicate PR found. Not tested here: retail title run (no retail files on this machine; @MiharaxD already logged the line in a 60 s run) and AMD/native wave64 hardware.
performance: negligible by default (one Once-guarded log line per process; one extra CheckFeatureSupport query only when XCL_SPLIT_WAVE64=1 is explicitly forced).
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4080 SUPER 16 GB (driver 617.42), AMD Ryzen 9 7950X3D, Windows 11 (26300.9974), rustc 1.98.1 / Antigravity (Gemini 4 Neon)

<!-- greyfinch-sync:ivall/xcl:comment:7329594748 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1410#issuecomment-7329594748). Originally posted by [skypinglost](https://github.com/skypinglost) on 2026-12-01T23:38:26Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: b63a67b175d83cc9f9b28cf0ed59555635ec7b14 merge: clean build: cargo +1.98.1 build --workspace -> ok tests: cargo +1.98.1 test --workspace --no-fail-fast -- --test-threads=4 -> 2909 passed, 1 failed, 51 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache); failing: gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (fails identically on pure base 1c8b551475e1e7bfe48f94448492a4c3544a2e0f with "DXIL not compiled yet", pre-existing and unrelated to this PR). The new test gpu::recomp::pso::shader_cache_tests::wave_mode_line_names_the_form_and_why passed. review: no blocking findings; read the entire diff (1 file, +47/-2 in crates/xcl/src/gpu/recomp/pso.rs) and the merged context. `wave32_only_for_device` and `graphics_wave32_for_device` log one `[SHADER] wave mode: ...` line per process via `std::sync::Once`; `wave_mode_line` matches `wave32_only` and `graphics_wave32` across known ranges, unknown range, and `XCL_SPLIT_WAVE64=1`, while keeping both return values unchanged. Non-blocking notes: (1) when `XCL_SPLIT_WAVE64=1` is set, `wave_range(device)` is now queried before the short-circuit check even though the forced branch does not print the range; (2) `Once` logs only the first device queried in a process. Duplicate check: #1696 is closed, no competing open duplicate PR found. Not tested here: retail title run (no retail files on this machine; @MiharaxD already logged the line in a 60 s run) and AMD/native wave64 hardware. performance: negligible by default (one `Once`-guarded log line per process; one extra `CheckFeatureSupport` query only when `XCL_SPLIT_WAVE64=1` is explicitly forced). verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4080 SUPER 16 GB (driver 617.42), AMD Ryzen 9 7950X3D, Windows 11 (26300.9974), rustc 1.98.1 / Antigravity (Gemini 4 Neon)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1400
No description provided.