Shaders: lower Wave32 compute branches that reuse lane masks as scalar data #2089

Open
rezioliver-collab wants to merge 11 commits from upstream-pr/2091 into main
rezioliver-collab commented 2026-11-25 04:37:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-25T04:37:19Z.


Review order: #3468 supplies the numeric descriptor word used by this lowering. Merge it first. Review the seven Wave32-only files here. GitHub’s Files changed tab compares against upstream main and includes both parts until the prerequisite lands.

The shader test commit is 8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af. The PR head a2fe470c has the same tree and retains the earlier review history.

What the shader change fixes

A scalar register can hold a 32-bit number on one edge and a lane mask on another. A later scalar read needs the full word. The compiler handles the joins it already supports on the normal path. When a supported mask/data case needs whole-wave control, the fallback follows the guest’s scalar branches for compute groups made up of complete Wave32 waves. Numeric descriptor reads in that path use #3468’s existing-width, 16-byte record.

Saved EXEC and a scalar write under empty EXEC

The expected values come from the guest instructions. S_AND_SAVEEXEC_B32 saves the old EXEC and intersects EXEC with its operand. Each enabled lane corresponds to one set bit. In the nested fixture only lane 2 survives in the first wave (mask 0x00000004), and no lanes survive in the second (mask 0x00000000). EXEC gates vector writes. A scalar move reached by the wave still changes the shared scalar from 11 to 37 in the second wave. After EXEC is restored, lanes can observe that 37. Predicating the scalar move on a nonempty EXEC would leave 11. AMD RDNA 2 ISA, §§3.3, 4.1 and the definition of S_AND_SAVEEXEC_B32

The fixture then computes saved_outer & ~inner_selection. With lane L numbered 0–31 in each wave, these are the four expected output dwords per lane.

Wave Saved outer Inner selection Remaining EXEC Expected output for lane L
0 0x80000005 0x80000001 0x00000004 [0xaaaaaaaa, 4, u32(L == 2), 37]
1 0x0001000a 0x0001000a 0x00000000 [0xaaaaaaaa, 0, 0, 37]

On Apple M1, all eight synthetic fixtures emitted parseable DXIL. We replayed the scalar-write-order fixture (128 threads) and the new nested saved-EXEC fixture (64 threads) on the CPU. All 768 output dwords matched expectations derived independently of the lowering. The old combined head rejected the new fixture at offset 0x88. On each split head the shader suite reported 175 passed and 3 ignored. The targeted Clippy checks and repository policy passed. The workspace formatting check also fails on the upstream base.

Windows hardware verification: upipibi tested 8bc4ccb4, whose files match PR head a2fe470c, on an RTX 3070 (driver 616.56) using the x64 Windows SDK validator. All eight Wave32 fixtures validated and matched actual GPU readback across 768 threads, including the new nested saved-EXEC case. The compare and saved-EXEC controls matched on hardware, and the DPP regression passed. WARP skipped only the saved-EXEC half of the compare control because Wave32 was unavailable. These are synthetic regression results. Independent Windows log.

Earlier hardware and translation results

On the earlier combined head 7a110d9, @upipibi reported 10/10 targeted tests on an RTX 3070: seven SDK-validated Wave32 fixtures with readback across 704 threads, plus two adjacent 16-byte D3D12 slots checked after image writes, clearing and buffer reuse. The older RTX 5080 integration with closed #2048 tested an 8-byte staging layout. The current descriptor PR uses four dwords per slot. RTX 3070 log · Historical RTX 5080 integration

Original translation and validation results on the 940d32f base

All four configurations used main at 940d32f, the same archive and the Windows x64 SDK validator (dxil.dll 1.8.2502.11). The last two columns cover all 25,889 matched entries.

Build Target 40 emitted Target 40 SDK accepted Archive emitted Archive SDK accepted
Main 0 0 25,591 23,918
Original Wave32 build 40 16 25,633 23,936
Main + Halfect’s #1065 0 0 25,591 24,653
Original Wave32 build + #1065, tested locally 40 40 25,633 24,695

The original Wave32 build gained 42 emissions (the target 40 plus two more programs) and 18 SDK passes over main, with zero losses in either set. The remaining 24 shaders in the target group use compute derivatives and pass with the validator 1.8 metadata supplied by Halfect’s separate #1065. That accounts for the 42 additional SDK passes when Wave32 is applied on top of #1065. The metadata commit has been removed from this branch. YaBulochka independently measured the standalone gain of 18 on AMD/Linux at 93685fe, before the descriptor layout revision. Independent archive run

Earlier full local Windows test suite

Six tests failed in the full local run. Five also failed in the unmodified-main suite. The sixth, a_page_list_filled_after_its_request_starts, failed intermittently on unmodified main and passed three isolated reruns of the PR test binary.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5485262608 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-25T04:37:19Z. --- **Review order:** #3468 supplies the numeric descriptor word used by this lowering. Merge it first. [Review the seven Wave32-only files here](https://github.com/talleyrand222/VIctory/compare/3c97979112cb81a3cf624e0231ad79212ea7813a...8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af). GitHub’s Files changed tab compares against upstream `main` and includes both parts until the prerequisite lands. The shader test commit is `8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af`. The PR head `a2fe470c` has the same tree and retains the earlier review history. ## What the shader change fixes A scalar register can hold a 32-bit number on one edge and a lane mask on another. A later scalar read needs the full word. The compiler handles the joins it already supports on the normal path. When a supported mask/data case needs whole-wave control, the fallback follows the guest’s scalar branches for compute groups made up of complete Wave32 waves. Numeric descriptor reads in that path use #3468’s existing-width, 16-byte record. ## Saved EXEC and a scalar write under empty EXEC The expected values come from the guest instructions. `S_AND_SAVEEXEC_B32` saves the old EXEC and intersects EXEC with its operand. Each enabled lane corresponds to one set bit. In the nested fixture only lane 2 survives in the first wave (mask `0x00000004`), and no lanes survive in the second (mask `0x00000000`). EXEC gates vector writes. A scalar move reached by the wave still changes the shared scalar from 11 to 37 in the second wave. After EXEC is restored, lanes can observe that 37. Predicating the scalar move on a nonempty EXEC would leave 11. [AMD RDNA 2 ISA, §§3.3, 4.1 and the definition of S_AND_SAVEEXEC_B32](https://docs.amd.com/v/u/en-US/rdna2-shader-instruction-set-architecture) The fixture then computes `saved_outer & ~inner_selection`. With lane L numbered 0–31 in each wave, these are the four expected output dwords per lane. | Wave | Saved outer | Inner selection | Remaining EXEC | Expected output for lane L | | --- | --- | --- | --- | --- | | 0 | `0x80000005` | `0x80000001` | `0x00000004` | `[0xaaaaaaaa, 4, u32(L == 2), 37]` | | 1 | `0x0001000a` | `0x0001000a` | `0x00000000` | `[0xaaaaaaaa, 0, 0, 37]` | On Apple M1, all eight synthetic fixtures emitted parseable DXIL. We replayed the scalar-write-order fixture (128 threads) and the new nested saved-EXEC fixture (64 threads) on the CPU. All 768 output dwords matched expectations derived independently of the lowering. The old combined head rejected the new fixture at offset `0x88`. On each split head the shader suite reported 175 passed and 3 ignored. The targeted Clippy checks and repository policy passed. The workspace formatting check also fails on the upstream base. **Windows hardware verification:** upipibi tested `8bc4ccb4`, whose files match PR head `a2fe470c`, on an RTX 3070 (driver 616.56) using the x64 Windows SDK validator. All eight Wave32 fixtures validated and matched actual GPU readback across 768 threads, including the new nested saved-EXEC case. The compare and saved-EXEC controls matched on hardware, and the DPP regression passed. WARP skipped only the saved-EXEC half of the compare control because Wave32 was unavailable. These are synthetic regression results. [Independent Windows log](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7209754442). ## Earlier hardware and translation results On the earlier combined head `7a110d9`, @upipibi reported 10/10 targeted tests on an RTX 3070: seven SDK-validated Wave32 fixtures with readback across 704 threads, plus two adjacent 16-byte D3D12 slots checked after image writes, clearing and buffer reuse. The older RTX 5080 integration with closed #2048 tested an 8-byte staging layout. The current descriptor PR uses four dwords per slot. [RTX 3070 log](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7208605836) · [Historical RTX 5080 integration](https://github.com/talleyrand222/VIctory/commit/fa89bb652278b700f190335523d759f9476e7ea6) <details> <summary>Original translation and validation results on the 940d32f base</summary> All four configurations used `main` at `940d32f`, the same archive and the Windows x64 SDK validator (`dxil.dll` 1.8.2502.11). The last two columns cover all 25,889 matched entries. | Build | Target 40 emitted | Target 40 SDK accepted | Archive emitted | Archive SDK accepted | | --- | ---: | ---: | ---: | ---: | | Main | 0 | 0 | 25,591 | 23,918 | | **Original Wave32 build** | **40** | **16** | **25,633** | **23,936** | | Main + Halfect’s #1065 | 0 | 0 | 25,591 | 24,653 | | Original Wave32 build + #1065, tested locally | 40 | 40 | 25,633 | 24,695 | The original Wave32 build gained **42 emissions** (the target 40 plus two more programs) and **18 SDK passes** over main, with zero losses in either set. The remaining 24 shaders in the target group use compute derivatives and pass with the validator 1.8 metadata supplied by Halfect’s separate #1065. That accounts for the **42 additional SDK passes** when Wave32 is applied on top of #1065. The metadata commit has been removed from this branch. YaBulochka independently measured the standalone gain of 18 on AMD/Linux at `93685fe`, before the descriptor layout revision. [Independent archive run](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7155076603) </details> <details> <summary>Earlier full local Windows test suite</summary> Six tests failed in the full local run. Five also failed in the unmodified-main suite. The sixth, `a_page_list_filled_after_its_request_starts`, failed intermittently on unmodified main and passed three isolated reruns of the PR test binary. </details> AI-assisted with OpenAI Codex.
DenRakEiw commented 2026-11-25 04:41:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T04:41:37Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with dxil.dll validator):

  • cargo test -p victory-shader --lib wave32 — passed on RTX 5090 hardware + WARP
  • cargo test -p victory-shader --lib emit::memory_tests:: — 3 passed, 0 failed
  • cargo test -p victory-gpu --lib descriptor_base_word_tracks_the_guest_view_address — passed
  • cargo clippy -p victory-shader -p victory-gpu --all-targets — 0 warnings
  • cargo xtask policy — ok (184 files ok)

Clean Wave32 compute branch scalar mask preservation and guest view base word tracking across victory-shader and victory-gpu. Looks great.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6051958286 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#pullrequestreview-6051958286). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T04:41:37Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with `dxil.dll` validator): - `cargo test -p victory-shader --lib wave32` — passed on RTX 5090 hardware + WARP - `cargo test -p victory-shader --lib emit::memory_tests::` — 3 passed, 0 failed - `cargo test -p victory-gpu --lib descriptor_base_word_tracks_the_guest_view_address` — passed - `cargo clippy -p victory-shader -p victory-gpu --all-targets` — 0 warnings - `cargo xtask policy` — ok (`184 files ok`) Clean Wave32 compute branch scalar mask preservation and guest view base word tracking across `victory-shader` and `victory-gpu`. Looks great. AI-assisted (Gemini 4 Neon).
jeremygold02 commented 2026-11-25 05:06:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:44:14Z.


Triage verdict — Review the Wave32 work independently of #1065 (00f14fa)

Evidence

  • @rezioliver-collab’s Wave32 work ends at 93685fe. The final commit has identical added and removed lines to @Halfect’s open #1065 across both changed files. The derivative metadata is already available as a separately reviewable change. Stack commits · #1065 patch
  • The Wave32 work expands each address side-table entry from two words to three. #2048 stages updates using two-word address records. If both proceed, allocation, staged publication, and shader reads need to move to the three-word layout together, including clearing the added word when a slot is reused. Address layout · #2048 staged record

Checks and limits

  • Compared the commit patches and the two side-table layouts. The hardware/WARP and descriptor checks in the existing review are the execution evidence for this head. I did not run the combined branches.

Next step

  • Preserve the Wave32 commits and credit, and land or rebase the derivative commit only once. When reconciling #2048, add a slot-reuse test that observes the new descriptor base word through the staged publication path.

This verification was AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153117303 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7153117303). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-25T04:44:14Z. --- **Triage verdict — Review the Wave32 work independently of #1065** (`00f14fa`) **Evidence** - @rezioliver-collab’s Wave32 work ends at `93685fe`. The final commit has identical added and removed lines to @Halfect’s open #1065 across both changed files. The derivative metadata is already available as a separately reviewable change. [Stack commits](https://github.com/Marvisak/VIctory/pull/2091/commits) · [#1065 patch](https://github.com/Marvisak/VIctory/pull/1065/files) - The Wave32 work expands each address side-table entry from two words to three. #2048 stages updates using two-word address records. If both proceed, allocation, staged publication, and shader reads need to move to the three-word layout together, including clearing the added word when a slot is reused. [Address layout](https://github.com/Marvisak/VIctory/blob/00f14fab140bced44933cf7b18b64e6ab7093908/crates/victory-gpu/src/descriptor/host.rs#L538-L565) · [#2048 staged record](https://github.com/Marvisak/VIctory/blob/da8574ba542debc39f456a19fce3f5626cdef593/crates/victory-gpu/src/descriptor/host.rs#L68-L80) **Checks and limits** - Compared the commit patches and the two side-table layouts. The hardware/WARP and descriptor checks in the existing review are the execution evidence for this head. I did not run the combined branches. **Next step** - Preserve the Wave32 commits and credit, and land or rebase the derivative commit only once. When reconciling #2048, add a slot-reuse test that observes the new descriptor base word through the staged publication path. This verification was AI-assisted.
catminou4 commented 2026-11-25 05:09:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T05:09:22Z.

Review: APPROVED


Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f69b, cargo test -p victory-shader --locked.

144 passed / 0 failed / 2 ignored. Scalar mask words preserved across Wave32 compute branches — mask-word liveness fix; mixed gpu+shader, gpu half Windows-only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6052154799 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#pullrequestreview-6052154799). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T05:09:22Z. **Review:** APPROVED --- Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f69b, `cargo test -p victory-shader --locked`. 144 passed / 0 failed / 2 ignored. Scalar mask words preserved across Wave32 compute branches — mask-word liveness fix; mixed gpu+shader, gpu half Windows-only.
YaBulochka commented 2026-11-25 07:03:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by YaBulochka on 2026-11-25T06:42:38Z.


AMD/Linux validation run of this stack, on the full retail dump. It is not a small win: +777 programs validate, and almost all of it comes from the last commit, not the scalar-mask ones.

Method: victory translate shaders.rpf --validate --list, retail 1.0.2.1, x86_64-pc-windows-gnu release under Wine, dxil.dll 1.9.2609.5. Same dump for every build.

Build validated vs 940d32f
940d32f (main) 23,918 -
93685fe (this stack without the last commit) 23,936 +18
pr2091 (all five commits) 24,695 +777

So of the +777, +759 is the "validator 1.8 for compute derivatives" commit alone, and the four scalar-mask/Wave32 commits give +18. Nothing is lost in either step (validated sets grow, no program disappears from the list).

What the 777 are: the whole RaytracingResolve family - standard 388, ped 114, prop 50, normal 32, rtdirectionalshadows 28, trees 26, weapon 22, trunk 12, indirect 11, sr 10 and the rest. On main they fail with

validator: Function: main: error: Entry function performs some operation that is
incompatible with the shader stage or other entry properties. See other errors for details.

which is the gradient-in-compute rejection the last commit describes; the validator gives no further detail in this path.

Two process notes, since the title only mentions scalar masks:

  • the behavioural weight of the PR is in its last commit; a reviewer skimming the title will not expect +759 validated programs, and it would be worth a line in the description (or splitting the validator bump out, if that is easier to review);
  • it needs dxil.dll 1.8+ at run time. With 1.9 here it is fine; on a host that ships 1.6/1.7 the derivative modules would be emitted and then rejected, so the version requirement is worth stating explicitly.

I did not check whether these 777 also compile in DXC or run; this is the DXIL validator count only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155076603 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7155076603). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-25T06:42:38Z. --- AMD/Linux validation run of this stack, on the full retail dump. It is not a small win: +777 programs validate, and almost all of it comes from the last commit, not the scalar-mask ones. Method: `victory translate shaders.rpf --validate --list`, retail 1.0.2.1, `x86_64-pc-windows-gnu` release under Wine, dxil.dll **1.9.2609.5**. Same dump for every build. | Build | validated | vs `940d32f` | |---|---:|---:| | `940d32f` (main) | 23,918 | - | | `93685fe` (this stack without the last commit) | 23,936 | +18 | | `pr2091` (all five commits) | **24,695** | **+777** | So of the +777, **+759 is the "validator 1.8 for compute derivatives" commit alone**, and the four scalar-mask/Wave32 commits give +18. Nothing is lost in either step (validated sets grow, no program disappears from the list). What the 777 are: the whole `RaytracingResolve` family - `standard` 388, `ped` 114, `prop` 50, `normal` 32, `rtdirectionalshadows` 28, `trees` 26, `weapon` 22, `trunk` 12, `indirect` 11, `sr` 10 and the rest. On main they fail with ``` validator: Function: main: error: Entry function performs some operation that is incompatible with the shader stage or other entry properties. See other errors for details. ``` which is the gradient-in-compute rejection the last commit describes; the validator gives no further detail in this path. Two process notes, since the title only mentions scalar masks: - the behavioural weight of the PR is in its last commit; a reviewer skimming the title will not expect +759 validated programs, and it would be worth a line in the description (or splitting the validator bump out, if that is easier to review); - it needs dxil.dll 1.8+ at run time. With 1.9 here it is fine; on a host that ships 1.6/1.7 the derivative modules would be emitted and then rejected, so the version requirement is worth stating explicitly. I did not check whether these 777 also compile in DXC or run; this is the DXIL validator count only.
Marvisak commented 2026-11-25 11:05:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:18:57Z.


Automated triage for the maintainers.

Needs work. Merging main fixed the conflicts; it merges cleanly and CI passes (check). The two earlier asks are still open:

  • Split the descriptor change. This PR still carries the view-address change: descriptor/host.rs::address_words/view_addresses publish a native base word with VIEW_NO_BUFFER_POINTER for non-buffer views, and resource.rs changes too. It is a separate change to runtime state and needs its own PR and evidence, e.g. the RDNA2 ISA descriptor layout for word 0 and a readback like the one you ran with #2048.
  • Evidence for the Wave32 lowering. The seven synthetic fixtures check that the RTX 5080 output matches what the fixtures expect, and Capi360's run shows the programs translate. Neither compares the whole-wave lowering in emit/lower/wave32.rs (explicit EXEC, scalar writes taking effect with EXEC == 0) with the console. A reference would do: an RDNA2 ISA citation for scalar writes under EXEC == 0, or expected values derived from that behaviour rather than from this lowering.

The translation numbers (40 targets emitted, 16 validated, all 40 with #1065) are useful context. They show the modules are accepted, not that they are right.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159526986 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7159526986). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T10:18:57Z. --- <!-- victory-triage v1 head=7a110d93c3613e4a916507315cb47b806321f89a verdict=needs-work at=2026-11-26T01:20:58Z --> Automated triage for the maintainers. **Needs work.** Merging `main` fixed the conflicts; it merges cleanly and CI passes (`check`). The two earlier asks are still open: - **Split the descriptor change.** This PR still carries the view-address change: `descriptor/host.rs::address_words`/`view_addresses` publish a native base word with `VIEW_NO_BUFFER_POINTER` for non-buffer views, and `resource.rs` changes too. It is a separate change to runtime state and needs its own PR and evidence, e.g. the RDNA2 ISA descriptor layout for word 0 and a readback like the one you ran with #2048. - **Evidence for the Wave32 lowering.** The seven synthetic fixtures check that the RTX 5080 output matches what the fixtures expect, and Capi360's run shows the programs translate. Neither compares the whole-wave lowering in `emit/lower/wave32.rs` (explicit `EXEC`, scalar writes taking effect with `EXEC == 0`) with the console. A reference would do: an RDNA2 ISA citation for scalar writes under `EXEC == 0`, or expected values derived from that behaviour rather than from this lowering. The translation numbers (40 targets emitted, 16 validated, all 40 with #1065) are useful context. They show the modules are accepted, not that they are right. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync changed title from [PR #2091] Shaders: preserve scalar mask words across Wave32 compute branches to [PR #2091] Shaders: lower Wave32 compute branches that reuse lane masks as scalar data 2026-11-25 14:05:42 +00:00
rezioliver-collab commented 2026-11-25 14:07:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-25T13:42:57Z.


Thanks for the review, @Marvisak. We removed Halfect’s validator commit so it can land through #1065. The updated PR explains why reusing a lane mask as scalar data blocked 40 Wave32 compute shaders. This branch now emits DXIL for all 40. The SDK validator accepts 16 on this branch and all 40 with #1065 applied.

We also tested this branch together with #2048. On an RTX 5080, we verified descriptor slot reuse and clearing with the two-dword layout. Tested merge with #2048

Ready for another review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164183150 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7164183150). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-25T13:42:57Z. --- Thanks for the review, @Marvisak. We removed Halfect’s validator commit so it can land through #1065. The updated PR explains why reusing a lane mask as scalar data blocked 40 Wave32 compute shaders. This branch now emits DXIL for all 40. The SDK validator accepts 16 on this branch and all 40 with #1065 applied. We also tested this branch together with #2048. On an RTX 5080, we verified descriptor slot reuse and clearing with the two-dword layout. [Tested merge with #2048](https://github.com/talleyrand222/VIctory/commit/fa89bb652278b700f190335523d759f9476e7ea6) Ready for another review.
Capi360 commented 2026-11-25 15:04:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Capi360 on 2026-11-25T15:02:09Z.


Offline follow-up on RTX 3060 Ti (8 GiB, NVIDIA 616.56), Ryzen 7 5700X3D, 32 GiB RAM, Windows 11 Pro build 26200.

I tested this PR together with #1065 on a code-only integration of 940d32f with the NVIDIA graphics compatibility changes. All five compute shaders that had produced the mixed mask/data join refusal during the preceding Series X run translated successfully. The seven synthetic emit::semantics_tests::wave32 tests passed.

The run produced nine intervals above 200 draws/frame (0.77 FPS average). The captures still did not show a usable scene. Windows dropped below 2 GiB of available commit and the monitor stopped the run, so this does not establish that the later GPU reset is fixed.

AI-assisted testing. Integration branch: https://github.com/Capi360/VIctory/tree/codex/rtx-3060-ti-wave32-data

<!-- greyfinch-sync:Marvisak/VIctory:comment:7166200910 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7166200910). Originally posted by [Capi360](https://github.com/Capi360) on 2026-11-25T15:02:09Z. --- Offline follow-up on RTX 3060 Ti (8 GiB, NVIDIA 616.56), Ryzen 7 5700X3D, 32 GiB RAM, Windows 11 Pro build 26200. I tested this PR together with #1065 on a code-only integration of `940d32f` with the NVIDIA graphics compatibility changes. All five compute shaders that had produced the mixed mask/data join refusal during the preceding Series X run translated successfully. The seven synthetic `emit::semantics_tests::wave32` tests passed. The run produced nine intervals above 200 draws/frame (0.77 FPS average). The captures still did not show a usable scene. Windows dropped below 2 GiB of available commit and the monitor stopped the run, so this does not establish that the later GPU reset is fixed. AI-assisted testing. Integration branch: https://github.com/Capi360/VIctory/tree/codex/rtx-3060-ti-wave32-data
rezioliver-collab commented 2026-11-25 19:06:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-25T18:47:39Z.


I’m on a Mac until Friday. Could someone with Windows and an RTX 5080 run the Wave32 and D3D12 checks on the updated PR head, 8bd4b17?

This head includes upstream main at 13f91ca and uses its 16-byte view-address records. On macOS arm64, 158 shader tests passed, two benchmarks were ignored, and the asset-policy check passed. All the fixtures below are synthetic.

Please run these with the RTX 5080 as the hardware adapter and a current x64 dxil.dll available for SDK validation.

cargo test -p victory-shader --lib --locked wave32_ -- --nocapture --test-threads=1
cargo test -p victory-shader --lib --locked title_memory_is_read_and_written_at_computed_addresses -- --nocapture --test-threads=1
cargo test -p victory-gpu --lib --locked a_reused_title_slot_publishes_the_native_base_word -- --nocapture --test-threads=1

Please reply with your NVIDIA driver version, the seven DXIL validated and readback matched results (704 threads total), and the D3D12 readback matched both 16-byte slots line. The last test reads two adjacent slots back from the GPU after an image write, a clear, and reuse as a buffer. If a test skips or fails, the skip message or first error would help too. Thanks!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171408105 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7171408105). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-25T18:47:39Z. --- I’m on a Mac until Friday. Could someone with Windows and an **RTX 5080** run the Wave32 and D3D12 checks on the updated PR head, `8bd4b17`? This head includes upstream `main` at `13f91ca` and uses its 16-byte view-address records. On macOS arm64, 158 shader tests passed, two benchmarks were ignored, and the asset-policy check passed. All the fixtures below are synthetic. Please run these with the RTX 5080 as the hardware adapter and a current x64 `dxil.dll` available for SDK validation. ```powershell cargo test -p victory-shader --lib --locked wave32_ -- --nocapture --test-threads=1 cargo test -p victory-shader --lib --locked title_memory_is_read_and_written_at_computed_addresses -- --nocapture --test-threads=1 cargo test -p victory-gpu --lib --locked a_reused_title_slot_publishes_the_native_base_word -- --nocapture --test-threads=1 ``` Please reply with your NVIDIA driver version, the seven `DXIL validated` and `readback matched` results (704 threads total), and the `D3D12 readback matched both 16-byte slots` line. The last test reads two adjacent slots back from the GPU after an image write, a clear, and reuse as a buffer. If a test skips or fails, the skip message or first error would help too. Thanks!
upipibi commented 2026-11-26 21:00:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-26T21:00:12Z.


Not the RTX 5080 you asked for, but the same Wave32 and D3D12 checks on an RTX 3070, on the current head.

RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.98.1. PR head 7a110d9 vs main 63bcca4, separate trees, --locked, --test-threads=1.

Test main PR
wave32_ (shader), 3 runs 1/1 pass (existing DPP test only; the 7 fixtures are new in the PR) 8/8 pass, 3/3
title_memory_is_read_and_written_at_computed_addresses, 3 runs 3/3 pass 3/3 pass
a_reused_title_slot_publishes_the_native_base_word (gpu) not on main (new) 3/3 pass
victory-gpu lib suite 229 pass, 2 fail 231 pass, 2 fail
victory-shader lib suite* 298 pass, 3 fail 305 pass, 3 fail

*Skipping heap_direct_texture_reads_mark_their_heap_index, which kills the process on main and PR (#2571). Same failures on both: dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views (#3178); the two a_heap_buffer_read_* stride tests (#1835); gathers_at_a_level_match_the_hardware (#2323). No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203286373 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7203286373). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T21:00:12Z. --- Not the RTX 5080 you asked for, but the same Wave32 and D3D12 checks on an RTX 3070, on the current head. RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.98.1. PR head 7a110d9 vs main 63bcca4, separate trees, `--locked`, `--test-threads=1`. | Test | main | PR | | --- | --- | --- | | `wave32_` (shader), 3 runs | 1/1 pass (existing DPP test only; the 7 fixtures are new in the PR) | 8/8 pass, 3/3 | | `title_memory_is_read_and_written_at_computed_addresses`, 3 runs | 3/3 pass | 3/3 pass | | `a_reused_title_slot_publishes_the_native_base_word` (gpu) | not on main (new) | 3/3 pass | | victory-gpu lib suite | 229 pass, 2 fail | 231 pass, 2 fail | | victory-shader lib suite* | 298 pass, 3 fail | 305 pass, 3 fail | *Skipping `heap_direct_texture_reads_mark_their_heap_index`, which kills the process on main and PR (#2571). Same failures on both: `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` (#3178); the two `a_heap_buffer_read_*` stride tests (#1835); `gathers_at_a_level_match_the_hardware` (#2323). No nvlddmkm resets. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
rezioliver-collab commented 2026-11-26 21:41:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-26T21:41:05Z.


Thanks, @upipibi, for running the checks on 7a110d9 and comparing
against 63bcca4. The RTX 3070 is fine for this Wave32 check; no need
to find a 5080.

Could you paste the relevant lines from one --nocapture run on the
PR head? I’m looking for the seven new Wave32 fixtures’ readback matched lines (especially the saved-EXEC case), any DXIL validated
lines, and D3D12 readback matched both 16-byte slots from the
descriptor test. Could you also confirm the D3D12 adapter was the RTX
3070 rather than WARP? The fixtures can report ok after an early
return if the required device or Wave32 support isn’t available, so
those lines help distinguish an actual GPU readback from a skip. No
need to rerun the full suites. Thanks!

On Thu, 26 Nov 2026 13:00:35 -0800, upipibi @.***> wrote:

upipibi left a comment (Marvisak/VIctory#2091)

Not the RTX 5080 you asked for, but the same Wave32 and D3D12 checks on an RTX 3070, on the current head.

RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.98.1. PR head 7a110d9 vs main 63bcca4, separate trees, --locked, --test-threads=1.

Test main PR
wave32_ (shader), 3 runs 1/1 pass (existing DPP test only; the 7 fixtures are new in the PR) 8/8 pass, 3/3
title_memory_is_read_and_written_at_computed_addresses, 3 runs 3/3 pass 3/3 pass
a_reused_title_slot_publishes_the_native_base_word (gpu) not on main (new) 3/3 pass
victory-gpu lib suite 229 pass, 2 fail 231 pass, 2 fail
victory-shader lib suite* 298 pass, 3 fail 305 pass, 3 fail

*Skipping heap_direct_texture_reads_mark_their_heap_index, which kills the process on main and PR (#2571). Same failures on both: dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views (#3178); the two a_heap_buffer_read_* stride tests (#1835); gathers_at_a_level_match_the_hardware (#2323). No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

--
Reply to this email directly or view it on GitHub:
https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7203286373
You are receiving this because you were mentioned.

Message ID: @.***>

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203961994 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7203961994). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-26T21:41:05Z. --- Thanks, @upipibi, for running the checks on `7a110d9` and comparing against `63bcca4`. The RTX 3070 is fine for this Wave32 check; no need to find a 5080. Could you paste the relevant lines from one `--nocapture` run on the PR head? I’m looking for the seven new Wave32 fixtures’ `readback matched` lines (especially the saved-EXEC case), any `DXIL validated` lines, and `D3D12 readback matched both 16-byte slots` from the descriptor test. Could you also confirm the D3D12 adapter was the RTX 3070 rather than WARP? The fixtures can report `ok` after an early return if the required device or Wave32 support isn’t available, so those lines help distinguish an actual GPU readback from a skip. No need to rerun the full suites. Thanks! On Thu, 26 Nov 2026 13:00:35 -0800, upipibi ***@***.***> wrote: > upipibi left a comment (Marvisak/VIctory#2091) > > Not the RTX 5080 you asked for, but the same Wave32 and D3D12 checks on an RTX 3070, on the current head. > > RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.98.1. PR head 7a110d9 vs main 63bcca4, separate trees, `--locked`, `--test-threads=1`. > > | Test | main | PR | > | --- | --- | --- | > | `wave32_` (shader), 3 runs | 1/1 pass (existing DPP test only; the 7 fixtures are new in the PR) | 8/8 pass, 3/3 | > | `title_memory_is_read_and_written_at_computed_addresses`, 3 runs | 3/3 pass | 3/3 pass | > | `a_reused_title_slot_publishes_the_native_base_word` (gpu) | not on main (new) | 3/3 pass | > | victory-gpu lib suite | 229 pass, 2 fail | 231 pass, 2 fail | > | victory-shader lib suite* | 298 pass, 3 fail | 305 pass, 3 fail | > > *Skipping `heap_direct_texture_reads_mark_their_heap_index`, which kills the process on main and PR (#2571). Same failures on both: `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` (#3178); the two `a_heap_buffer_read_*` stride tests (#1835); `gathers_at_a_level_match_the_hardware` (#2323). No nvlddmkm resets. > > AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted). > > > -- > Reply to this email directly or view it on GitHub: > https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7203286373 > You are receiving this because you were mentioned. > > Message ID: ***@***.***>
upipibi commented 2026-11-27 02:03:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-27T02:03:43Z.


@rezioliver-collab will do. I didn't keep the --nocapture output from that run, so I'll do one --nocapture run on 7a110d9 and paste the seven Wave32 fixtures' readback matched lines (saved-EXEC case included), any DXIL validated lines, the descriptor test's D3D12 readback matched both 16-byte slots, and the adapter line, so you can see it was the RTX 3070 and not WARP. The card is busy for a while; I'll post them as soon as it's free.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7207799085 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7207799085). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-27T02:03:43Z. --- @rezioliver-collab will do. I didn't keep the `--nocapture` output from that run, so I'll do one `--nocapture` run on `7a110d9` and paste the seven Wave32 fixtures' `readback matched` lines (saved-EXEC case included), any `DXIL validated` lines, the descriptor test's `D3D12 readback matched both 16-byte slots`, and the adapter line, so you can see it was the RTX 3070 and not WARP. The card is busy for a while; I'll post them as soon as it's free.
upipibi commented 2026-11-27 02:59:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-27T02:59:30Z.


@rezioliver-collab here is one --nocapture run on 7a110d9: RTX 3070, driver 616.56, Windows 11, rustc 1.98.1. I ran your three commands as written (--locked --nocapture --test-threads=1), all 10 tests passed, and these are their output lines:

test emit::semantics_tests::wave32_complete_mask_after_a_conditional_complement ... Wave32 conditional complement DXIL validated
Wave32 conditional complement readback matched on 128 threads
test emit::semantics_tests::wave32_descriptor_words_after_a_conditional_mask_write ... Wave32 descriptor words DXIL validated
Wave32 descriptor words readback matched on 64 threads
test emit::semantics_tests::wave32_forward_mask_join_uses_scalar_input ... Wave32 forward mask join DXIL validated
Wave32 forward mask join readback matched on 128 threads
test emit::semantics_tests::wave32_lane_reads_use_the_native_exec_word ... Wave32 lane reads DXIL validated
Wave32 lane reads readback matched on 128 threads
test emit::semantics_tests::wave32_mask_data_at_loop_entry ... Wave32 loop DXIL validated
Wave32 loop readback matched on 64 threads
test emit::semantics_tests::wave32_mask_join_reads_only_the_live_scalar_word ... Wave32 live scalar join DXIL validated
Wave32 live scalar join readback matched on 64 threads
test emit::semantics_tests::wave32_scalar_write_order_across_exec_branches ... Wave32 scalar write order DXIL validated
Wave32 scalar write order readback matched on 128 threads
test emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp ... ok
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 304 filtered out

test emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 311 filtered out

test descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word ... D3D12 readback matched both 16-byte slots after image, clear and buffer writes
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 233 filtered out

That is 704 threads over the seven fixtures, with no no SM 6.6 device or Wave32 unavailable lines (semantics_tests.rs:424, :428). The saved-EXEC case (EXEC = saved & ~selected, semantics_tests.rs:589) is in wave32_scalar_write_order_across_exec_branches, 128 threads.

Adapter: neither test prints one, so I checked which adapter each would take:

  • The shader fixtures use Host::new(false), which takes the first adapter that is not flagged software and has dedicated memory (emit/host.rs:137-146).
  • The victory-gpu test uses the default adapter: without diagnostics it calls D3D12CreateDevice(None, ...) (victory-gpu/src/host.rs:193).

DXGI's EnumAdapters1 on this machine lists adapters 0 and 1 as the NVIDIA GeForce RTX 3070 (8017 MiB dedicated, not software) and adapter 2 as Microsoft Basic Render Driver (software, 0 MiB). So both tests ran on the RTX 3070, not WARP. No driver resets.

AI-assisted (Claude Code, Claude Opus 5.5 ran the tests and checked the lines).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7208605836 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7208605836). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-27T02:59:30Z. --- @rezioliver-collab here is one `--nocapture` run on `7a110d9`: RTX 3070, driver 616.56, Windows 11, rustc 1.98.1. I ran your three commands as written (`--locked --nocapture --test-threads=1`), all 10 tests passed, and these are their output lines: ``` test emit::semantics_tests::wave32_complete_mask_after_a_conditional_complement ... Wave32 conditional complement DXIL validated Wave32 conditional complement readback matched on 128 threads test emit::semantics_tests::wave32_descriptor_words_after_a_conditional_mask_write ... Wave32 descriptor words DXIL validated Wave32 descriptor words readback matched on 64 threads test emit::semantics_tests::wave32_forward_mask_join_uses_scalar_input ... Wave32 forward mask join DXIL validated Wave32 forward mask join readback matched on 128 threads test emit::semantics_tests::wave32_lane_reads_use_the_native_exec_word ... Wave32 lane reads DXIL validated Wave32 lane reads readback matched on 128 threads test emit::semantics_tests::wave32_mask_data_at_loop_entry ... Wave32 loop DXIL validated Wave32 loop readback matched on 64 threads test emit::semantics_tests::wave32_mask_join_reads_only_the_live_scalar_word ... Wave32 live scalar join DXIL validated Wave32 live scalar join readback matched on 64 threads test emit::semantics_tests::wave32_scalar_write_order_across_exec_branches ... Wave32 scalar write order DXIL validated Wave32 scalar write order readback matched on 128 threads test emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 304 filtered out test emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 311 filtered out test descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word ... D3D12 readback matched both 16-byte slots after image, clear and buffer writes test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 233 filtered out ``` That is 704 threads over the seven fixtures, with no `no SM 6.6 device` or `Wave32 unavailable` lines (`semantics_tests.rs:424`, `:428`). The saved-EXEC case (`EXEC = saved & ~selected`, `semantics_tests.rs:589`) is in `wave32_scalar_write_order_across_exec_branches`, 128 threads. **Adapter:** neither test prints one, so I checked which adapter each would take: - The shader fixtures use `Host::new(false)`, which takes the first adapter that is not flagged software and has dedicated memory (`emit/host.rs:137-146`). - The victory-gpu test uses the default adapter: without `diagnostics` it calls `D3D12CreateDevice(None, ...)` (`victory-gpu/src/host.rs:193`). DXGI's `EnumAdapters1` on this machine lists adapters 0 and 1 as the NVIDIA GeForce RTX 3070 (8017 MiB dedicated, not software) and adapter 2 as Microsoft Basic Render Driver (software, 0 MiB). So both tests ran on the RTX 3070, not WARP. No driver resets. AI-assisted (Claude Code, Claude Opus 5.5 ran the tests and checked the lines).
rezioliver-collab commented 2026-11-27 04:05:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-27T04:05:51Z.


@upipibi, thanks for the RTX 3070 log on 7a110d9. That covered all seven earlier fixtures. Could you run these six targeted commands on the two split commits when the card is free? The new eighth fixture checks the nested saved-EXEC case.

From an existing VIctory clone in Windows x64 Developer PowerShell, create two worktrees so each result has an unambiguous SHA.

git fetch --no-tags https://github.com/talleyrand222/VIctory.git refs/heads/codex/2091-descriptor-record refs/heads/codex/2091-wave32-lowering
git worktree add --detach ../victory-2091-desc 3c97979112cb81a3cf624e0231ad79212ea7813a
git worktree add --detach ../victory-2091-wave 8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af

1. Descriptor / #3468 — 3c979791. The first test checks the guest address fields. The second reads back two adjacent 16-byte D3D12 records through image, clear and buffer writes. The third reads numeric words and pointers from a shader.

Push-Location ../victory-2091-desc
git rev-parse HEAD
cargo +1.98.1 test --locked -j 2 -p victory-gpu --lib descriptor::host::tests::descriptor_base_word_tracks_the_guest_view_address -- --exact --nocapture --test-threads=1
cargo +1.98.1 test --locked -j 2 -p victory-gpu --lib descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word -- --exact --nocapture --test-threads=1
cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses -- --exact --nocapture --test-threads=1
Pop-Location

Please include D3D12 readback matched both 16-byte slots after image, clear and buffer writes and hardware: view-address numeric words and pointer reads matched.

2. Wave32 / #2091 — 8bc4ccb4. This is the shader commit on top of #3468. Its tree is identical to PR head a2fe470c. Please use the x64 Windows SDK dxil.dll (VICTORY_DXIL can point to it).

Push-Location ../victory-2091-wave
git rev-parse HEAD
cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::semantics_tests::wave32_ -- --nocapture --test-threads=1
cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::synthetic_tests::a_compare_mask_joined_with_data_on_the_skip_edge_is_0_there -- --exact --nocapture --test-threads=1
cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp -- --exact --nocapture --test-threads=1
Pop-Location

For the eight fixtures, please paste each DXIL validated and readback matched on <N> threads line (768 threads total). The new pair should read Wave32 nested saved EXEC DXIL validated and Wave32 nested saved EXEC readback matched on 64 threads. For the compare control, please include hardware: compare readback matched on 32 lanes and hardware: saved EXEC readback matched on 32 lanes. The DPP test has an ordinary pass/fail result.

Please include the NVIDIA driver and the DXGI adapter selected by each path, as in your previous report. The shader harness picks the first hardware adapter with dedicated memory. The GPU test uses the default D3D12 device. If a fixture prints no SM 6.6 device or Wave32 unavailable, please paste that line even if Cargo reports ok. These targeted runs are all we need. Thanks!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7209516704 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7209516704). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-27T04:05:51Z. --- @upipibi, thanks for the [RTX 3070 log on `7a110d9`](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7208605836). That covered all seven earlier fixtures. Could you run these six targeted commands on the two split commits when the card is free? The new eighth fixture checks the nested saved-EXEC case. From an existing VIctory clone in Windows x64 Developer PowerShell, create two worktrees so each result has an unambiguous SHA. ```powershell git fetch --no-tags https://github.com/talleyrand222/VIctory.git refs/heads/codex/2091-descriptor-record refs/heads/codex/2091-wave32-lowering git worktree add --detach ../victory-2091-desc 3c97979112cb81a3cf624e0231ad79212ea7813a git worktree add --detach ../victory-2091-wave 8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af ``` **1. Descriptor / #3468 — `3c979791`.** The first test checks the guest address fields. The second reads back two adjacent 16-byte D3D12 records through image, clear and buffer writes. The third reads numeric words and pointers from a shader. ```powershell Push-Location ../victory-2091-desc git rev-parse HEAD cargo +1.98.1 test --locked -j 2 -p victory-gpu --lib descriptor::host::tests::descriptor_base_word_tracks_the_guest_view_address -- --exact --nocapture --test-threads=1 cargo +1.98.1 test --locked -j 2 -p victory-gpu --lib descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word -- --exact --nocapture --test-threads=1 cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses -- --exact --nocapture --test-threads=1 Pop-Location ``` Please include `D3D12 readback matched both 16-byte slots after image, clear and buffer writes` and `hardware: view-address numeric words and pointer reads matched`. **2. Wave32 / #2091 — `8bc4ccb4`.** This is the shader commit on top of #3468. Its tree is identical to PR head `a2fe470c`. Please use the x64 Windows SDK `dxil.dll` (`VICTORY_DXIL` can point to it). ```powershell Push-Location ../victory-2091-wave git rev-parse HEAD cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::semantics_tests::wave32_ -- --nocapture --test-threads=1 cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::synthetic_tests::a_compare_mask_joined_with_data_on_the_skip_edge_is_0_there -- --exact --nocapture --test-threads=1 cargo +1.98.1 test --locked -j 2 -p victory-shader --lib emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp -- --exact --nocapture --test-threads=1 Pop-Location ``` For the eight fixtures, please paste each `DXIL validated` and `readback matched on <N> threads` line (768 threads total). The new pair should read `Wave32 nested saved EXEC DXIL validated` and `Wave32 nested saved EXEC readback matched on 64 threads`. For the compare control, please include `hardware: compare readback matched on 32 lanes` and `hardware: saved EXEC readback matched on 32 lanes`. The DPP test has an ordinary pass/fail result. Please include the NVIDIA driver and the DXGI adapter selected by each path, as in your previous report. The shader harness picks the first hardware adapter with dedicated memory. The GPU test uses the default D3D12 device. If a fixture prints `no SM 6.6 device` or `Wave32 unavailable`, please paste that line even if Cargo reports `ok`. These targeted runs are all we need. Thanks!
upipibi commented 2026-11-27 04:23:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-27T04:23:06Z.


@rezioliver-collab here are your six commands on the two split commits. Each commit had its own worktree, on the RTX 3070 with driver 616.56, Windows 11, cargo +1.98.1, --locked, VICTORY_DXIL = the x64 Windows SDK dxil.dll (10.0.26100.0). All passed, with no driver resets.

3c97979112cb81a3cf624e0231ad79212ea7813a (#3468; its head e9f2a68 only adds an empty CI-retry commit, same tree)

test descriptor::host::tests::descriptor_base_word_tracks_the_guest_view_address ... ok
test descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word ... D3D12 readback matched both 16-byte slots after image, clear and buffer writes
test emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses ... hardware: view-address numeric words and pointer reads matched
warp: view-address numeric words and pointer reads matched

8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af (same tree as #2091 head a2fe470)

Wave32 conditional complement DXIL validated
Wave32 conditional complement readback matched on 128 threads
Wave32 descriptor words DXIL validated
Wave32 descriptor words readback matched on 64 threads
Wave32 forward mask join DXIL validated
Wave32 forward mask join readback matched on 128 threads
Wave32 lane reads DXIL validated
Wave32 lane reads readback matched on 128 threads
Wave32 loop DXIL validated
Wave32 loop readback matched on 64 threads
Wave32 live scalar join DXIL validated
Wave32 live scalar join readback matched on 64 threads
Wave32 nested saved EXEC DXIL validated
Wave32 nested saved EXEC readback matched on 64 threads
Wave32 scalar write order DXIL validated
Wave32 scalar write order readback matched on 128 threads
test result: ok. 8 passed; 0 failed

test emit::synthetic_tests::a_compare_mask_joined_with_data_on_the_skip_edge_is_0_there ... hardware: compare readback matched on 32 lanes
hardware: saved EXEC readback matched on 32 lanes
warp: compare readback matched on 32 lanes
warp: saved EXEC requires Wave32; skipped
test emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp ... ok

The eight fixtures add up to 768 threads. No fixture printed no SM 6.6 device or Wave32 unavailable. The only skip line is the WARP half of the compare control (saved EXEC requires Wave32), which you'd expect on WARP.

Adapters are the same as in my last report. The shader harness takes the first non-software adapter with dedicated memory. The victory-gpu test uses the default D3D12 device. On this machine, DXGI lists adapters 0 and 1 as the RTX 3070 and adapter 2 as Microsoft Basic Render Driver, so both paths ran on the 3070.

AI-assisted (Claude Code, Claude Opus 5.5 ran the tests and checked the lines).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7209754442 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7209754442). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-27T04:23:06Z. --- @rezioliver-collab here are your six commands on the two split commits. Each commit had its own worktree, on the RTX 3070 with driver 616.56, Windows 11, `cargo +1.98.1`, `--locked`, `VICTORY_DXIL` = the x64 Windows SDK `dxil.dll` (`10.0.26100.0`). All passed, with no driver resets. **`3c97979112cb81a3cf624e0231ad79212ea7813a`** (#3468; its head `e9f2a68` only adds an empty CI-retry commit, same tree) ``` test descriptor::host::tests::descriptor_base_word_tracks_the_guest_view_address ... ok test descriptor::host::tests::a_reused_title_slot_publishes_the_native_base_word ... D3D12 readback matched both 16-byte slots after image, clear and buffer writes test emit::memory_tests::title_memory_is_read_and_written_at_computed_addresses ... hardware: view-address numeric words and pointer reads matched warp: view-address numeric words and pointer reads matched ``` **`8bc4ccb4c9e9b3b356f3cd82c4a37cf0855923af`** (same tree as #2091 head `a2fe470`) ``` Wave32 conditional complement DXIL validated Wave32 conditional complement readback matched on 128 threads Wave32 descriptor words DXIL validated Wave32 descriptor words readback matched on 64 threads Wave32 forward mask join DXIL validated Wave32 forward mask join readback matched on 128 threads Wave32 lane reads DXIL validated Wave32 lane reads readback matched on 128 threads Wave32 loop DXIL validated Wave32 loop readback matched on 64 threads Wave32 live scalar join DXIL validated Wave32 live scalar join readback matched on 64 threads Wave32 nested saved EXEC DXIL validated Wave32 nested saved EXEC readback matched on 64 threads Wave32 scalar write order DXIL validated Wave32 scalar write order readback matched on 128 threads test result: ok. 8 passed; 0 failed test emit::synthetic_tests::a_compare_mask_joined_with_data_on_the_skip_edge_is_0_there ... hardware: compare readback matched on 32 lanes hardware: saved EXEC readback matched on 32 lanes warp: compare readback matched on 32 lanes warp: saved EXEC requires Wave32; skipped test emit::wave::tests::wave32_mov_b64_all_lanes_keeps_exec_masked_for_dpp ... ok ``` The eight fixtures add up to 768 threads. No fixture printed `no SM 6.6 device` or `Wave32 unavailable`. The only skip line is the WARP half of the compare control (`saved EXEC requires Wave32`), which you'd expect on WARP. Adapters are the same as in my last report. The shader harness takes the first non-software adapter with dedicated memory. The victory-gpu test uses the default D3D12 device. On this machine, DXGI lists adapters 0 and 1 as the RTX 3070 and adapter 2 as Microsoft Basic Render Driver, so both paths ran on the 3070. AI-assisted (Claude Code, Claude Opus 5.5 ran the tests and checked the lines).
pablogonz12 commented 2026-11-27 17:25:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pablogonz12 on 2026-11-27T17:25:31Z.


I checked two affected programs offline on an RX 9070 XT with RADV. Current main refused translation for both (0/2 pipelines); this PR head (a2fe470cb) translated and validated both and created both pipelines (2/2). Applying the stack to current main conflicted, so the PR-head comparison includes base differences and does not isolate this change. Not tested on NVIDIA hardware.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7224390253 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2091#issuecomment-7224390253). Originally posted by [pablogonz12](https://github.com/pablogonz12) on 2026-11-27T17:25:31Z. --- I checked two affected programs offline on an RX 9070 XT with RADV. Current main refused translation for both (0/2 pipelines); this PR head (`a2fe470cb`) translated and validated both and created both pipelines (2/2). Applying the stack to current main conflicted, so the PR-head comparison includes base differences and does not isolate this change. Not tested on NVIDIA hardware.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2091:upstream-pr/2091'
git switch 'upstream-pr/2091'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2091'
git switch 'upstream-pr/2091'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2091'
git switch 'upstream-pr/2091'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2091'
git switch 'main'
git merge --squash 'upstream-pr/2091'
git switch 'main'
git merge --ff-only 'upstream-pr/2091'
git switch 'main'
git merge 'upstream-pr/2091'
git push origin 'main'
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
Marvisak/VIctory!2089
No description provided.