Shaders: lower compute thread-group info and s_get_waveid_in_workgroup #551

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

@⁠kilvynsilveira-tech on GitHub · 2026-11-24 04:49 UTC · original
kilvynsilveira-tech:shader-group-info-coverage → main · +399 −4 · 3 files · 1 commits · open

Lower two workgroup wave-identity inputs the emitter previously refused:

  • Compute thread-group info SGPR (COMPUTE_PGM_RSRC2.TG_SIZE_EN): was "the thread-group info SGPR". Now packs the full hardware layout {first_wavefront, 14'b0, ordered_append_term[10:0], wave_count[5:0]} (LLVM AMDGPUUsage, Initial Kernel Execution State):
    • Bits 5:0: wave count in the group (threads.div_ceil(wave) & 0x3F, counting partial trailing waves).
    • Bits 11:6: wave index in the group (flattenedThreadIdInGroup >> log2(wave)), matching Mesa ACO's tg_size subgroup-id extraction (& 0xfc0 / s_bfe_u32 at offset 6, width 6) when GDS ordered append is disabled.
    • Bit 31: first_wavefront (1 on wave 0, 0 otherwise).
  • s_get_waveid_in_workgroup: was "a scalar memory read as data". Now writes the same wave index to its destination SGPR in compute and mesh stages (null destination is a no-op), and refuses cleanly outside compute and mesh (Ps / Vs).

Input::MergedWaveInfo now shares the same Lower::wave_id() helper.

(Note: pixel Input::SampleCoverage was dropped from this PR in favour of #1686 so the two PRs do not overlap.)

Tests (synthetic machine code only; cargo xtask policy passes)

  • emit::tests::group_info_and_waveid_in_workgroup_lower_and_validate (cross-platform + dxil.dll container/hash validation on Windows): compute in wave32 and wave64 ([96, 1, 1], joined across control flow, plus null destination), s_get_waveid_in_workgroup in HwStage::Ms, and clean refusals in HwStage::Ps and HwStage::Vs.
  • emit::valu_tests::compute_group_info_and_waveid_in_workgroup_match_the_group: 3D [8, 4, 3] (96-thread) compute dispatch in both wave32 (3 waves) and wave64 (2 waves, partial trailing wave), verifying all 32 bits of TG_SIZE (first_wavefront | wave_id << 6 | wave_count) and s_get_waveid_in_workgroup per thread on available SM 6.6 hardware and WARP backends.

Validation

  • cargo clippy --workspace --all-targets --locked -- -D warnings — clean
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — clean
  • cargo run -p xtask --locked -- policy — clean (191 files ok)
  • cargo test -p victory-shader --locked — new tests and non-SM 6.6 suite pass locally (dxil.dll validated; live SM 6.6 / WARP dispatch runs in CI and on SM 6.6 hosts; local GPU is RX 580)
**@⁠kilvynsilveira-tech** on GitHub · 2026-11-24 04:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/551) `kilvynsilveira-tech:shader-group-info-coverage` → `main` · +399 −4 · 3 files · 1 commits · open Lower two workgroup wave-identity inputs the emitter previously refused: - **Compute thread-group info SGPR** (`COMPUTE_PGM_RSRC2.TG_SIZE_EN`): was `"the thread-group info SGPR"`. Now packs the full hardware layout `{first_wavefront, 14'b0, ordered_append_term[10:0], wave_count[5:0]}` (LLVM AMDGPUUsage, *Initial Kernel Execution State*): - **Bits `5:0`**: wave count in the group (`threads.div_ceil(wave) & 0x3F`, counting partial trailing waves). - **Bits `11:6`**: wave index in the group (`flattenedThreadIdInGroup >> log2(wave)`), matching Mesa ACO's `tg_size` subgroup-id extraction (`& 0xfc0` / `s_bfe_u32` at offset 6, width 6) when GDS ordered append is disabled. - **Bit `31`**: `first_wavefront` (`1` on wave `0`, `0` otherwise). - **`s_get_waveid_in_workgroup`**: was `"a scalar memory read as data"`. Now writes the same wave index to its destination SGPR in compute and mesh stages (`null` destination is a no-op), and refuses cleanly outside compute and mesh (`Ps` / `Vs`). `Input::MergedWaveInfo` now shares the same `Lower::wave_id()` helper. *(Note: pixel `Input::SampleCoverage` was dropped from this PR in favour of #1686 so the two PRs do not overlap.)* ### Tests (synthetic machine code only; `cargo xtask policy` passes) - `emit::tests::group_info_and_waveid_in_workgroup_lower_and_validate` (cross-platform + `dxil.dll` container/hash validation on Windows): compute in `wave32` and `wave64` (`[96, 1, 1]`, joined across control flow, plus `null` destination), `s_get_waveid_in_workgroup` in `HwStage::Ms`, and clean refusals in `HwStage::Ps` and `HwStage::Vs`. - `emit::valu_tests::compute_group_info_and_waveid_in_workgroup_match_the_group`: 3D `[8, 4, 3]` (96-thread) compute dispatch in both `wave32` (3 waves) and `wave64` (2 waves, partial trailing wave), verifying all 32 bits of `TG_SIZE` (`first_wavefront | wave_id << 6 | wave_count`) and `s_get_waveid_in_workgroup` per thread on available SM 6.6 hardware and WARP backends. ### Validation - `cargo clippy --workspace --all-targets --locked -- -D warnings` — clean - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — clean - `cargo run -p xtask --locked -- policy` — clean (`191 files ok`) - `cargo test -p victory-shader --locked` — new tests and non-SM 6.6 suite pass locally (`dxil.dll` validated; live SM 6.6 / WARP dispatch runs in CI and on SM 6.6 hosts; local GPU is RX 580)
Model the full COMPUTE_PGM_RSRC2.TG_SIZE_EN layout ({first_wavefront, 14'b0, wave_id[10:0], wave_count[5:0]}), lower s_get_waveid_in_workgroup in compute and mesh stages, and share wave_id() with MergedWaveInfo. Drop SampleCoverage in favour of #1686.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:08:00 +00:00
Author
Owner

@⁠KoLolX3 on GitHub · 2026-11-24 05:33 UTC · original

Check on Linux, not Windows: pass. Head f96ce2927 merged onto main d2a4bae1f (clean merge).

  • Native tests of the seven crates that build on Linux (core, formats, game, loader, pe, pipeline, shader): PR 94 passed, 7 failed, main 92 passed, 7 failed.
  • Windows cross type-check of the whole workspace (cargo xwin check --workspace --target x86_64-pc-windows-msvc, covers victory-gpu, victory-hle and the app): PR ok, main ok.
  • Tests this PR adds: 2, of which 2 ran in the native run (the pass count rose by 2).
  • rustfmt: unformatted hunks, PR 168, main 168.
  • Failing on main here as well (not this PR): 7 tests in victory-loader and victory-pe that parse their own test binary as a PE image, which is an ELF file on Linux.
  • Not run: victory-gpu / victory-hle tests and the game itself.

On: AMD Ryzen 7 5700, 62 GB RAM, Artix Linux 7.3.4-artix1-2, rustc 1.98.1 (the repo's pinned toolchain), cargo-xwin 0.24.1. No game data. Automated check only: the code itself was not reviewed.

**@⁠KoLolX3** on GitHub · 2026-11-24 05:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7123055602) Check on Linux, not Windows: **pass**. Head `f96ce2927` merged onto `main` `d2a4bae1f` (clean merge). - Native tests of the seven crates that build on Linux (`core`, `formats`, `game`, `loader`, `pe`, `pipeline`, `shader`): PR `94 passed, 7 failed`, `main` `92 passed, 7 failed`. - Windows cross type-check of the whole workspace (`cargo xwin check --workspace --target x86_64-pc-windows-msvc`, covers `victory-gpu`, `victory-hle` and the app): PR ok, `main` ok. - Tests this PR adds: 2, of which 2 ran in the native run (the pass count rose by 2). - rustfmt: unformatted hunks, PR 168, `main` 168. - Failing on `main` here as well (not this PR): 7 tests in `victory-loader` and `victory-pe` that parse their own test binary as a PE image, which is an ELF file on Linux. - Not run: `victory-gpu` / `victory-hle` tests and the game itself. On: AMD Ryzen 7 5700, 62 GB RAM, Artix Linux 7.3.4-artix1-2, rustc 1.98.1 (the repo's pinned toolchain), cargo-xwin 0.24.1. No game data. Automated check only: the code itself was not reviewed.
Author
Owner

@⁠catminou4 on GitHub · 2026-11-24 12:36 UTC · original

Triage note: overlaps #521 (model the compute thread-group info SGPR's wave count), which merges cleanly with main. This PR (#551, compute group info + wave id in workgroup + more) is broader in scope but has mergeable=false against current main. If #521 lands first, this one needs a rebase and a scope check that the remaining pieces (wave id, group info beyond the wave count) are still distinct.

**@⁠catminou4** on GitHub · 2026-11-24 12:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7131670628) Triage note: overlaps **#521** (`model the compute thread-group info SGPR's wave count`), which merges cleanly with main. This PR (#551, compute group info + wave id in workgroup + more) is broader in scope but has `mergeable=false` against current main. If #521 lands first, this one needs a rebase and a scope check that the remaining pieces (wave id, group info beyond the wave count) are still distinct.
Author
Owner

@⁠kilvynsilveira-tech on GitHub · 2026-11-24 15:01 UTC · original

Rebased onto current \main\ (\ fe310e) and updated the new tests to pass \Some(&st)\ to
esource::track.

Regarding the overlap with #521:

  • #521 models only the wave count (bits 0-5) of \COMPUTE_PGM_RSRC2.TG_SIZE_EN\ and refuses reads above bit 5.
  • This PR (#551) models both the wave count (bits 0-5) and the wave index (bits 6-11), plus \s_get_waveid_in_workgroup\ and \SV_Coverage\ (\SPI_PS_INPUT_ADDR\ bit 14).

If #521 lands first, I'm happy to rebase again and keep only the distinct pieces.

Re-verified after rebasing:

  • \cargo clippy -p victory-shader --all-targets\ clean
  • \cargo xtask policy\ passed
  • \group_info_and_waveid_in_workgroup_lower_and_validate\ and \sample_coverage_input_lowers_and_validates\ pass (validated with \dxil.dll)
**@⁠kilvynsilveira-tech** on GitHub · 2026-11-24 15:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7135334620) Rebased onto current \main\ (\ fe310e\) and updated the new tests to pass \Some(&st)\ to \ esource::track\. Regarding the overlap with #521: - #521 models only the wave count (bits 0-5) of \COMPUTE_PGM_RSRC2.TG_SIZE_EN\ and refuses reads above bit 5. - This PR (#551) models both the wave count (bits 0-5) and the wave index (bits 6-11), plus \s_get_waveid_in_workgroup\ and \SV_Coverage\ (\SPI_PS_INPUT_ADDR\ bit 14). If #521 lands first, I'm happy to rebase again and keep only the distinct pieces. Re-verified after rebasing: - \cargo clippy -p victory-shader --all-targets\ clean - \cargo xtask policy\ passed - \group_info_and_waveid_in_workgroup_lower_and_validate\ and \sample_coverage_input_lowers_and_validates\ pass (validated with \dxil.dll\)
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-24 22:18 UTC · original

Overlap with #1686: this PR also lowers pixel sample coverage via dx.op.coverage; #1686 does that part alone with a coverage-mask readback test and is already rebased onto 70564ae. The compute group-info/wave-id lowering here is separate and may still be useful. Suggest splitting the coverage part out (or dropping it in favour of #1686) so the two do not compete.

**@⁠Calvix2k** on GitHub · 2026-11-24 22:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7146078853) Overlap with #1686: this PR also lowers pixel sample coverage via `dx.op.coverage`; #1686 does that part alone with a coverage-mask readback test and is already rebased onto `70564ae`. The compute group-info/wave-id lowering here is separate and may still be useful. Suggest splitting the coverage part out (or dropping it in favour of #1686) so the two do not compete.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:25 UTC · original · edited 2026-11-26 03:20 UTC

Automated triage for the maintainers.

Thanks for rebasing and for dropping the coverage part in favour of #1686. The new head merges cleanly and is now reviewed.

In crates/victory-shader/src/emit/lower.rs, Input::GroupInfo now builds the TG_SIZE SGPR as first_wavefront << 31 | wave_index << 6 | wave_count. That matches the public layout in LLVM AMDGPUUsage and the way Mesa ACO extracts the subgroup id (bits 6-11). s_get_waveid_in_workgroup returns the same wave index through the new wave_id() helper, which MergedWaveInfo now shares, and it is refused outside compute and mesh. The readback test in valu_tests.rs covers a partial wave64 wave and checks all 32 bits.

This also covers the wave-count part of #521, so only one of the two should land.

Verdict: merge candidate (a recommendation to look, not an approval). CI: passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7148489128) · edited 2026-11-26 03:20 UTC <!-- victory-triage v1 head=b97b7bb6f5ed7229944ebbee0f020049e4819986 verdict=merge-candidate at=2026-11-26T03:20:52Z --> Automated triage for the maintainers. Thanks for rebasing and for dropping the coverage part in favour of #1686. The new head merges cleanly and is now reviewed. In `crates/victory-shader/src/emit/lower.rs`, `Input::GroupInfo` now builds the `TG_SIZE` SGPR as `first_wavefront << 31 | wave_index << 6 | wave_count`. That matches the public layout in LLVM AMDGPUUsage and the way Mesa ACO extracts the subgroup id (bits 6-11). `s_get_waveid_in_workgroup` returns the same wave index through the new `wave_id()` helper, which `MergedWaveInfo` now shares, and it is refused outside compute and mesh. The readback test in `valu_tests.rs` covers a partial wave64 wave and checks all 32 bits. This also covers the wave-count part of #521, so only one of the two should land. **Verdict: merge candidate** (a recommendation to look, not an approval). CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 00:41 UTC · original

Triage is right: the branch is based on fe310e and crates/victory-shader/src/emit/lower.rs has moved since. I do not have push access to your fork, but the conflict is confined to the lower match arms for the group-info ops; a git rebase origin/main and keeping the new arms alongside the added ones resolves it. Happy to review the rebased head.

**@⁠Calvix2k** on GitHub · 2026-11-25 00:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7148779825) Triage is right: the branch is based on fe310e and crates/victory-shader/src/emit/lower.rs has moved since. I do not have push access to your fork, but the conflict is confined to the lower match arms for the group-info ops; a git rebase origin/main and keeping the new arms alongside the added ones resolves it. Happy to review the rebased head.
Author
Owner

@⁠kilvynsilveira-tech on GitHub · 2026-11-26 02:19 UTC · original

Rebased onto latest main (63bcca4 -> b97b7bb) and incorporated the review feedback and several improvements:

  1. Dropped SampleCoverage in favour of #1686 (thanks @⁠Calvix2k for the heads-up) so this PR stays focused on compute GroupInfo (TG_SIZE_EN) and s_get_waveid_in_workgroup.
  2. Completed the TG_SIZE_EN hardware field layout: in addition to the masked 6-bit wave count (threads.div_ceil(wave) & 0x3F, bits 5:0) and wave index (flattenedThreadIdInGroup >> log2(wave), bits 11:6), bit 31 (first_wavefront, w == 0) is now populated too ({first_wavefront, 14'b0, wave_id[10:0], wave_count[5:0]}), so full-width reads, first_wave checks, s_bfe_u32 / s_and_b32 extractions, and values carried across phis/copies all match the console register layout.
  3. s_get_waveid_in_workgroup polish: handles null destination without emitting dead instructions, and covers HwStage::Ms as well as Ps/Vs refusals.
  4. Expanded tests (kept cross-platform lowering tests in emit/mod.rs so emit/lower.rs stays below the 512 KiB xtask policy limit, and added emit::valu_tests::compute_group_info_and_waveid_in_workgroup_match_the_group to verify per-thread TG_SIZE and s_get_waveid_in_workgroup readback across a [8, 4, 3] 96-thread group in both wave32 and wave64 on SM 6.6 / WARP).

Verified locally:

  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean
  • cargo run -p xtask --locked -- policy: 191 files ok
  • dxil.dll container & hash validation passing on all emitted Cs (wave32/wave64) and Ms shaders.
**@⁠kilvynsilveira-tech** on GitHub · 2026-11-26 02:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#issuecomment-7180695363) Rebased onto latest `main` (`63bcca4` -> `b97b7bb`) and incorporated the review feedback and several improvements: 1. **Dropped `SampleCoverage` in favour of #1686** (thanks @⁠Calvix2k for the heads-up) so this PR stays focused on compute `GroupInfo` (`TG_SIZE_EN`) and `s_get_waveid_in_workgroup`. 2. **Completed the `TG_SIZE_EN` hardware field layout**: in addition to the masked 6-bit wave count (`threads.div_ceil(wave) & 0x3F`, bits `5:0`) and wave index (`flattenedThreadIdInGroup >> log2(wave)`, bits `11:6`), bit `31` (`first_wavefront`, `w == 0`) is now populated too (`{first_wavefront, 14'b0, wave_id[10:0], wave_count[5:0]}`), so full-width reads, `first_wave` checks, `s_bfe_u32` / `s_and_b32` extractions, and values carried across phis/copies all match the console register layout. 3. **`s_get_waveid_in_workgroup` polish**: handles `null` destination without emitting dead instructions, and covers `HwStage::Ms` as well as `Ps`/`Vs` refusals. 4. **Expanded tests** (kept cross-platform lowering tests in `emit/mod.rs` so `emit/lower.rs` stays below the 512 KiB `xtask policy` limit, and added `emit::valu_tests::compute_group_info_and_waveid_in_workgroup_match_the_group` to verify per-thread `TG_SIZE` and `s_get_waveid_in_workgroup` readback across a `[8, 4, 3]` 96-thread group in both `wave32` and `wave64` on SM 6.6 / WARP). Verified locally: - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: clean - `cargo run -p xtask --locked -- policy`: `191 files ok` - `dxil.dll` container & hash validation passing on all emitted `Cs` (`wave32`/`wave64`) and `Ms` shaders.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 17:05 UTC · original · requested changes

Verified b97b7bb6f5ed7229944ebbee0f020049e4819986 merged cleanly onto 63bcca43 on Windows 11 with an RTX 5090, WARP, dxil.dll, and VICTORY_D3D12_DEBUG=1 (xtask policy: 191 files ok; cargo clippy default & --all-features clean; emit::tests:: 18/18, emit::valu_tests 36/36, emit::census_tests 1/1 passed; emit/lower.rs = 522,146 B, 523,467 B combined with #2084).

Blocking issue: TG_SIZE_EN wave-ID bit position does not match the RDNA2 CS layout (crates/victory-shader/src/emit/lower.rs:1497-1513)

Input::GroupInfo currently packs the wave index into bits [16:6] (w << 6), citing LLVM AMDGPUUsage (Initial Kernel Execution State). However:

  • AMD RDNA2 ISA §3.12.2 defines COMPUTE_PGM_RSRC2.TG_SIZE_EN as:
    • bits [5:0]: wave_count
    • bits [17:6]: ordered_append_term (11/12-bit ordered-append counter — not wave ID)
    • bits [24:20]: wave ID within workgroup (first_wave in bit 31)
  • For a 96-thread Wave32 workgroup, wave 1 produces 0x0000_0043 in this PR versus 0x0010_0003 under the documented RDNA2 layout (with zero ordered-append term). Because emit/valu_tests.rs:2410-2418 asserts w << 6, the test mirrors the same assumption.

Please either verify and document if the console ABI places the wave ID at bit 6 on real RDNA2 hardware, or move the wave ID field to bits [24:20] and assert the full SGPR value against the ISA layout.

Additional notes

  • Please validate the compute thread-group dimensions before cs.threads.iter().product::<u32>() (lower.rs:602 / :1501-1505) so zero dimensions or overflowing products return a structured lowering error instead of panicking or truncating the 6-bit wave count (& 0x3F).
  • s_get_waveid_in_workgroup (lower.rs:4139-4152) accepts both compute and mesh stages (self.s.threads.is_some()), so updating its error text to mention both (and checking M0 destination rules) would keep diagnostics accurate.
**@⁠fuzeofficlal** on GitHub · 2026-11-26 17:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#pullrequestreview-6078040687) · **requested changes** Verified `b97b7bb6f5ed7229944ebbee0f020049e4819986` merged cleanly onto `63bcca43` on Windows 11 with an RTX 5090, WARP, `dxil.dll`, and `VICTORY_D3D12_DEBUG=1` (`xtask policy`: `191 files ok`; `cargo clippy` default & `--all-features` clean; `emit::tests::` `18/18`, `emit::valu_tests` `36/36`, `emit::census_tests` `1/1` passed; `emit/lower.rs` = `522,146` B, `523,467` B combined with `#2084`). ### Blocking issue: `TG_SIZE_EN` wave-ID bit position does not match the RDNA2 CS layout (`crates/victory-shader/src/emit/lower.rs:1497-1513`) `Input::GroupInfo` currently packs the wave index into bits `[16:6]` (`w << 6`), citing LLVM AMDGPUUsage (*Initial Kernel Execution State*). However: - AMD RDNA2 ISA §3.12.2 defines `COMPUTE_PGM_RSRC2.TG_SIZE_EN` as: - bits `[5:0]`: `wave_count` - bits `[17:6]`: `ordered_append_term` (11/12-bit ordered-append counter — **not** wave ID) - bits `[24:20]`: **wave ID within workgroup** (`first_wave` in bit `31`) - For a 96-thread Wave32 workgroup, wave 1 produces `0x0000_0043` in this PR versus `0x0010_0003` under the documented RDNA2 layout (with zero ordered-append term). Because `emit/valu_tests.rs:2410-2418` asserts `w << 6`, the test mirrors the same assumption. Please either verify and document if the console ABI places the wave ID at bit 6 on real RDNA2 hardware, or move the wave ID field to bits `[24:20]` and assert the full SGPR value against the ISA layout. ### Additional notes - Please validate the compute thread-group dimensions before `cs.threads.iter().product::<u32>()` (`lower.rs:602` / `:1501-1505`) so zero dimensions or overflowing products return a structured lowering error instead of panicking or truncating the 6-bit wave count (`& 0x3F`). - `s_get_waveid_in_workgroup` (`lower.rs:4139-4152`) accepts both compute and mesh stages (`self.s.threads.is_some()`), so updating its error text to mention both (and checking `M0` destination rules) would keep diagnostics accurate.
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 19:50 UTC · original · approved these changes

LGTM — verified on RTX 5090 and VICTORY_WARP=1 (Windows / D3D12) against origin/main (63bcca4).

  • Lowering compute thread-group info (tg_size) and s_get_waveid_in_workgroup validates cleanly with DXIL and produces matching wave/group IDs on both RTX 5090 and WARP.
  • cargo test -p victory-shader --lib group_info_and_waveid_in_workgroup -- --test-threads=1: 2 passed, 0 failed on RTX 5090 and 2 passed, 0 failed on VICTORY_WARP=1 (group_info_and_waveid_in_workgroup_lower_and_validate and compute_group_info_and_waveid_in_workgroup_match_the_group).
  • cargo clippy -p victory-shader --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 19:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/551#pullrequestreview-6079778680) · **approved these changes** LGTM — verified on RTX 5090 and `VICTORY_WARP=1` (Windows / D3D12) against `origin/main` (`63bcca4`). - Lowering compute thread-group info (`tg_size`) and `s_get_waveid_in_workgroup` validates cleanly with DXIL and produces matching wave/group IDs on both RTX 5090 and WARP. - `cargo test -p victory-shader --lib group_info_and_waveid_in_workgroup -- --test-threads=1`: 2 passed, 0 failed on RTX 5090 and 2 passed, 0 failed on `VICTORY_WARP=1` (`group_info_and_waveid_in_workgroup_lower_and_validate` and `compute_group_info_and_waveid_in_workgroup_match_the_group`). - `cargo clippy -p victory-shader --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-551'
git switch 'github-bot/gh-551'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-551'
git switch 'github-bot/gh-551'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-551'
git switch 'main'
git merge --squash 'github-bot/gh-551'
git switch 'main'
git merge --ff-only 'github-bot/gh-551'
git switch 'main'
git merge 'github-bot/gh-551'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!551
No description provided.