Recompiler: track SMEM register offsets as scalar reads #1530

Merged
oni-swr merged 1 commit from upstream-pr/1540 into main 2026-11-30 09:07:44 +00:00
oni-swr commented 2026-11-24 17:25:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-24T17:25:16Z.


SMEM's register offset has operand type OPR_SMEM_OFFSET, which sgpr_uses omitted. A register used only as SOFFSET was therefore absent from the read set; the per-lane lowering on gefydev's branch could reject such a load because its initial SGPR value was not loaded. Part of #1269.

What is in it

  • rdna2.rs: include SMEM register offsets in scalar reads; test s4, s7 and NULL offsets, preserving the destination write set.

Tested

  • RX 7800 XT, driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 Pro build 26200; Rust 1.100.0 MSVC; debug.
  • cargo test -p xcl --lib gpu::rdna2::tests::scalar_memory_register_offset_is_a_read -- --exact: on main 9e3831e with only the test added, 0 passed / 1 failed / 0 ignored. The fixed test passes in the full suite below.
  • cargo build --workspace: passed at a8683ef.
  • cargo test --workspace -- --test-threads=4 --nocapture: 777 passed / 0 failed / 41 ignored. One SKIPPED test (included in the harness's passed count): heap_window_out_of_memory_falls_back_to_the_switch_form, reason no heap windows; this is not coverage.
  • 60-second title regression runs below use the debug binary built separately from each commit.

Regression run

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: AMD Radeon RX 7800 XT
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 744 (PresentX 744)
presents per 2 s (last 3): 55 24 0
device removals: 0
crashes: 0
peak commit: 15435 MB
xcl-smoke v1
commit: a8683ef45d1a38e0200558e6666ec965476e5e6b
gpu: AMD Radeon RX 7800 XT
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 820 (PresentX 820)
presents per 2 s (last 3): 45 12 7
device removals: 0
crashes: 0
peak commit: 16226 MB

Not tested

  • NVIDIA, Wine, release builds. The smoke runs do not exercise the unmerged per-lane DXIL backend; they check the current runtime. No claim of title performance improvement.

AI use

  • T3 Code through Codex, gpt-6.1-sol: investigated the issue and coordination thread, wrote the fix and test, ran validation, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5477061188 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-24T17:25:16Z. --- SMEM's register offset has operand type `OPR_SMEM_OFFSET`, which `sgpr_uses` omitted. A register used only as `SOFFSET` was therefore absent from the read set; the per-lane lowering on gefydev's branch could reject such a load because its initial SGPR value was not loaded. Part of #1269. **What is in it** - `rdna2.rs`: include SMEM register offsets in scalar reads; test s4, s7 and NULL offsets, preserving the destination write set. **Tested** - RX 7800 XT, driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 Pro build 26200; Rust 1.100.0 MSVC; debug. - `cargo test -p xcl --lib gpu::rdna2::tests::scalar_memory_register_offset_is_a_read -- --exact`: on main 9e3831e with only the test added, 0 passed / 1 failed / 0 ignored. The fixed test passes in the full suite below. - `cargo build --workspace`: passed at a8683ef. - `cargo test --workspace -- --test-threads=4 --nocapture`: 777 passed / 0 failed / 41 ignored. One SKIPPED test (included in the harness's passed count): `heap_window_out_of_memory_falls_back_to_the_switch_form`, reason `no heap windows`; this is not coverage. - 60-second title regression runs below use the debug binary built separately from each commit. **Regression run** ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: AMD Radeon RX 7800 XT title: 2c508222 seconds: 60 exit: 0x0 frames shown: 744 (PresentX 744) presents per 2 s (last 3): 55 24 0 device removals: 0 crashes: 0 peak commit: 15435 MB ``` ``` xcl-smoke v1 commit: a8683ef45d1a38e0200558e6666ec965476e5e6b gpu: AMD Radeon RX 7800 XT title: 2c508222 seconds: 60 exit: 0x0 frames shown: 820 (PresentX 820) presents per 2 s (last 3): 45 12 7 device removals: 0 crashes: 0 peak commit: 16226 MB ``` **Not tested** - NVIDIA, Wine, release builds. The smoke runs do not exercise the unmerged per-lane DXIL backend; they check the current runtime. No claim of title performance improvement. **AI use** - T3 Code through Codex, gpt-6.1-sol: investigated the issue and coordination thread, wrote the fix and test, ran validation, and wrote this description.
upipibi commented 2026-11-24 19:07:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T18:13:27Z.


Read the diff against the ISA tables: the scope is right. In rdna2_spec.rs the only field typed OPR_SMEM_OFFSET is SMEM's SOFFSET (all the S_LOAD / S_BUFFER_LOAD / store / atomic forms). The 21-bit immediate OFFSET is not an operand there, so this can't make an immediate look like an SGPR read. SOFFSET 0 is s0, not NULL (0x7D), so a load with an unset SOFFSET now reads s0, which is right (the same distinction as #1456's test fix). M0 (124) as SOFFSET is a read too, as it should be. I haven't run it.

AI use: Claude Code (Claude Opus 5.5) read the change and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7140336494 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7140336494). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T18:13:27Z. --- Read the diff against the ISA tables: the scope is right. In `rdna2_spec.rs` the only field typed `OPR_SMEM_OFFSET` is SMEM's `SOFFSET` (all the `S_LOAD` / `S_BUFFER_LOAD` / store / atomic forms). The 21-bit immediate `OFFSET` is not an operand there, so this can't make an immediate look like an SGPR read. `SOFFSET` 0 is s0, not NULL (0x7D), so a load with an unset `SOFFSET` now reads s0, which is right (the same distinction as #1456's test fix). M0 (124) as `SOFFSET` is a read too, as it should be. I haven't run it. AI use: Claude Code (Claude Opus 5.5) read the change and wrote this.
nnonno91 commented 2026-11-24 19:07:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T18:13:36Z.


Independent NVIDIA and per-lane lowering test for a8683ef45d1a38e0200558e6666ec965476e5e6b.

Tested

  • Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, NVIDIA GeForce RTX 5090 (32.0.16.1742), Rust 1.100.0 MSVC, DXC 1.9.2609.5, debug. cargo build --workspace --locked passed. cargo test --locked -p xcl --lib -- --exact gpu::rdna2::tests::scalar_memory_register_offset_is_a_read --test-threads=1 passed.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 777 passed, 0 failed, and 41 ignored. Three reported GPU skips in that pass count: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64), plus heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). The bundled title passed.
  • In a separate worktree at gefydev/xcl:direct-on-1426 revision c391dbf9dedcd87e4e6968a70c0280d5d88aa7dd, I ran cargo test --locked -p xcl --test smem_offset_probe -- --exact register_offset_reaches_per_lane_dxil --nocapture --test-threads=1 with a temporary three-instruction shader before and after applying just the PR’s production change. Before, S_LOAD_DWORD listed s0 and s1 as reads and per-lane lowering refused with s4: a mask read as a number. After, it also listed s4, validated the directly generated DXIL, and executed it on the RTX 5090. Register offsets of 0, 4, and 12 bytes selected the expected three memory words across all 32 lanes each time. Both versions listed s16 as the destination.

Not tested

Retail titles, Wine, or release builds. The per-lane run used a synthetic kernel on the pinned experimental revision with the one-line fix applied locally.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary probe, ran the checks, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7140340031 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7140340031). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-24T18:13:36Z. --- Independent NVIDIA and per-lane lowering test for `a8683ef45d1a38e0200558e6666ec965476e5e6b`. **Tested** - Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, NVIDIA GeForce RTX 5090 (32.0.16.1742), Rust 1.100.0 MSVC, DXC 1.9.2609.5, debug. `cargo build --workspace --locked` passed. `cargo test --locked -p xcl --lib -- --exact gpu::rdna2::tests::scalar_memory_register_offset_is_a_read --test-threads=1` passed. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported 777 passed, 0 failed, and 41 ignored. Three reported GPU skips in that pass count: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64), plus `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). The bundled title passed. - In a separate worktree at `gefydev/xcl:direct-on-1426` revision `c391dbf9dedcd87e4e6968a70c0280d5d88aa7dd`, I ran `cargo test --locked -p xcl --test smem_offset_probe -- --exact register_offset_reaches_per_lane_dxil --nocapture --test-threads=1` with a temporary three-instruction shader before and after applying just the PR’s production change. Before, `S_LOAD_DWORD` listed `s0` and `s1` as reads and per-lane lowering refused with `s4: a mask read as a number`. After, it also listed `s4`, validated the directly generated DXIL, and executed it on the RTX 5090. Register offsets of 0, 4, and 12 bytes selected the expected three memory words across all 32 lanes each time. Both versions listed `s16` as the destination. **Not tested** Retail titles, Wine, or release builds. The per-lane run used a synthetic kernel on the pinned experimental revision with the one-line fix applied locally. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary probe, ran the checks, and drafted this report.
DavidM1911 commented 2026-11-24 21:08:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:12:57Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7141768038 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7141768038). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T19:12:57Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
vakaobr commented 2026-11-25 10:10:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-25T09:28:59Z.


Test report from a Mac (D3DMetal), #1540 at a8683ef merged into main c4d37be.

The per-lane form refuses every kernel whose s_load_dword names an SGPR as SOFFSET that the program didn't write first: s_load_dword s4, s[2:3], s0, 0x8 and the same with s1 both give s0 / s1: a mask read as a number on main. With the same register as an s_add_u32 source, or after an s_mov_b32 writes it, it's accepted, which fits your reading (the prologue never loads a register sgpr_uses doesn't list). In my differential harness that was 995 of 1000 generated programs refused on main.

Tested

  • MacBook Pro M5 Pro (20-core GPU, 32-lane waves), macOS 27.2.1, CrossOver 26.3 with D3DMetal 3.0, Rosetta 2, Rust 1.100.0 x86_64-pc-windows-gnu, debug, DXC 1.9.2609. Each test in its own process.
  • gpu::rdna2::tests::scalar_memory_register_offset_is_a_read: 1 passed.
  • 9 single-instruction kernels through lower_dxil::kernel_split (SOFFSET s0, s1, null, s0 after s_mov_b32, and s0 / s1 as ALU sources): refused 2 on main, all 9 accepted with this PR.
  • 1000 generated programs, HLSL path against #1426's per-instruction form: 0 differences with this PR, as on main.
  • 1000 generated programs without divergent ifs, HLSL path against the per-lane form: 996 identical and 0 refused with this PR (995 refused on main). The other 4 differ in the HLSL path only; the per-lane and per-instruction forms agree with each other there (details on #1269).

Not tested

  • Windows, the whole suite, a title; compute mode (lower_dxil::compute*), where the same sgpr_uses list may decide which user SGPRs are loaded.

AI use: Claude Code, Claude Opus 5.5 found the refusals with the harness, ran the tests above on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7158391021 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7158391021). Originally posted by [vakaobr](https://github.com/vakaobr) on 2026-11-25T09:28:59Z. --- Test report from a Mac (D3DMetal), #1540 at `a8683ef` merged into `main` `c4d37be`. The per-lane form refuses every kernel whose `s_load_dword` names an SGPR as `SOFFSET` that the program didn't write first: `s_load_dword s4, s[2:3], s0, 0x8` and the same with `s1` both give `s0` / `s1`: `a mask read as a number` on `main`. With the same register as an `s_add_u32` source, or after an `s_mov_b32` writes it, it's accepted, which fits your reading (the prologue never loads a register `sgpr_uses` doesn't list). In my differential harness that was 995 of 1000 generated programs refused on `main`. **Tested** - MacBook Pro M5 Pro (20-core GPU, 32-lane waves), macOS 27.2.1, CrossOver 26.3 with D3DMetal 3.0, Rosetta 2, Rust 1.100.0 `x86_64-pc-windows-gnu`, debug, DXC 1.9.2609. Each test in its own process. - `gpu::rdna2::tests::scalar_memory_register_offset_is_a_read`: 1 passed. - 9 single-instruction kernels through `lower_dxil::kernel_split` (`SOFFSET` `s0`, `s1`, null, `s0` after `s_mov_b32`, and `s0` / `s1` as ALU sources): refused 2 on `main`, all 9 accepted with this PR. - 1000 generated programs, HLSL path against #1426's per-instruction form: 0 differences with this PR, as on `main`. - 1000 generated programs without divergent `if`s, HLSL path against the per-lane form: 996 identical and 0 refused with this PR (995 refused on `main`). The other 4 differ in the HLSL path only; the per-lane and per-instruction forms agree with each other there (details on #1269). **Not tested** - Windows, the whole suite, a title; compute mode (`lower_dxil::compute*`), where the same `sgpr_uses` list may decide which user SGPRs are loaded. AI use: Claude Code, Claude Opus 5.5 found the refusals with the harness, ran the tests above on this machine and wrote this report.
throny commented 2026-11-25 11:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T10:28:35Z.


Test report for exact head a8683ef.

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on a8683ef as it is (its own base): 777 passed, 0 failed, 41 ignored. SKIPPED: 3 lines (no wave64 on this adapter, and the like).
  • scripts/smoke.ps1, the retail title, 60 s, release builds, main 568e7db first, then this head. Both runs started without the preload list newer builds leave behind (used-pipelines.txt in the DXIL cache), which makes builds on an older base run out of memory at start:

main:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1608 (PresentX 1608)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14538 MB

PR:

xcl-smoke v1
commit: a8683ef45d1a38e0200558e6666ec965476e5e6b
gpu: NVIDIA GeForce RTX 4080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14763 MB

Not tested: AMD, the head merged onto current main, a world load.

AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.

<!-- greyfinch-sync:ivall/xcl:comment:7159746424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7159746424). Originally posted by [throny](https://github.com/throny) on 2026-11-25T10:28:35Z. --- Test report for exact head `a8683ef`. **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `a8683ef` as it is (its own base): **777 passed, 0 failed, 41 ignored**. `SKIPPED`: 3 lines (no wave64 on this adapter, and the like). - `scripts/smoke.ps1`, the retail title, 60 s, release builds, `main` `568e7db` first, then this head. Both runs started without the preload list newer builds leave behind (`used-pipelines.txt` in the DXIL cache), which makes builds on an older base run out of memory at start: main: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1608 (PresentX 1608) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14538 MB ``` PR: ``` xcl-smoke v1 commit: a8683ef45d1a38e0200558e6666ec965476e5e6b gpu: NVIDIA GeForce RTX 4080 title: retail-title seconds: 60 exit: 0x0 frames shown: 1597 (PresentX 1597) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14763 MB ``` **Not tested:** AMD, the head merged onto current `main`, a world load. AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.
ClosetPie107 commented 2026-11-26 07:03:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-26T06:48:53Z.


AMD RDNA4 / Linux (Proton Experimental) test report on head a8683ef4 (merged cleanly onto main b49be183):

Hardware & environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton master ec207194 (3.2.0) + dxil-spirv b540c8a2 + relaxed-vtable patch (-Db_ndebug=true), DXVK v3.1.1-209, DXC 1.9.2609.5, Rust x86_64-pc-windows-gnu

Isolated unit tests (main b49be183 + #1540 a8683ef4, debug, --test-threads=1):

  • xcl.exe gpu::rdna2:: -- --test-threads=1: 19 passed, 0 failed, 0 ignored (0 skipped).

Combined 300 s retail sanity run (release, main b49be183 + #1540 + #1675 + #1844 + #1899 + #2123 + #2369 + #2422, retail 1.0.2.1 pressing A past menus):

  • Completed full 300 s (exit=0), 0 crashes, 0 device removals, 2,014 PresentX frames, 131,072 translated draws, 660,943 dispatches (44,546 chained split-compute dispatches), 102,631 Opus packets (0 errors).

Not tested

  • Native Windows, full workspace test suite, or #1540 alone in a retail run.

AI use

  • T3 Code / Antigravity (Gemini 4 Neon) merged #1540 onto main, ran the Proton unit tests and combined retail run on this machine, and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7184809053 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7184809053). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-26T06:48:53Z. --- AMD RDNA4 / Linux (Proton Experimental) test report on head `a8683ef4` (merged cleanly onto `main` `b49be183`): **Hardware & environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux - Proton Experimental (`experimental-11.0-20261112`), `vkd3d-proton` `master` `ec207194` (3.2.0) + `dxil-spirv` `b540c8a2` + relaxed-vtable patch (`-Db_ndebug=true`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, Rust `x86_64-pc-windows-gnu` **Isolated unit tests** (`main` `b49be183` + #1540 `a8683ef4`, debug, `--test-threads=1`): - `xcl.exe gpu::rdna2:: -- --test-threads=1`: **19 passed, 0 failed, 0 ignored** (0 skipped). **Combined 300 s retail sanity run** (release, `main` `b49be183` + #1540 + #1675 + #1844 + #1899 + #2123 + #2369 + #2422, retail 1.0.2.1 pressing `A` past menus): - Completed full **300 s (`exit=0`)**, **0 crashes**, **0 device removals**, `2,014` `PresentX` frames, `131,072` translated draws, `660,943` dispatches (`44,546` chained split-compute dispatches), `102,631` Opus packets (0 errors). **Not tested** - Native Windows, full workspace test suite, or #1540 alone in a retail run. **AI use** - T3 Code / Antigravity (Gemini 4 Neon) merged #1540 onto `main`, ran the Proton unit tests and combined retail run on this machine, and drafted this report.
Decodere commented 2026-11-27 12:12:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T12:12:09Z.


Independent desktop NVIDIA verification of PR #1540 at head a8683ef45d1a38e0200558e6666ec965476e5e6b (1 commit; exact parent & merge-base: 9e3831e1f570d3646e53ab753b19ec07eb8f1485, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted tests & build (a8683ef4)

Command Result
cargo test --release -p xcl --lib scalar_memory_register_offset_is_a_read -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 748 filtered out × 3 (0.00s, 0.00s, 0.00s, 0 skipped)
cargo test --release -p xcl --lib gpu::rdna2:: -- --nocapture (3 consecutive runs) 10 passed; 0 failed; 0 ignored; 739 filtered out × 3 (0.02s, 0.03s, 0.03s, 0 skipped; includes scalar_memory_register_offset_is_a_read and llvm_gfx10_corpus)
cargo build --release -p xcl Clean build (1m 07s, exit 0, 0 new warnings in rdna2.rs)

Paired quiet 60 s retail smoke (title: 29640639)

(Note: scripts/smoke.ps1 at 9e3831e1 predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)

Exact parent & merge-base (9e3831e1f570d3646e53ab753b19ec07eb8f1485, cached baseline on the same machine):

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1549 (PresentX 1549)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14715 MB

PR #1540 (a8683ef45d1a38e0200558e6666ec965476e5e6b):

xcl-smoke v1
commit: a8683ef45d1a38e0200558e6666ec965476e5e6b
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1576 (PresentX 1576)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14707 MB

Limits of coverage

  • scalar_memory_register_offset_is_a_read and all 10/10 gpu::rdna2:: unit tests (0 skipped) passed 3/3, directly verifying that SMEM register offsets are tracked as scalar reads.
  • The 60 s retail smoke confirms steady 60 Hz runtime non-regression (0 device removals, 0 crashes); single-run frame/commit delta vs. the cached parent reflects normal startup variance.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7217959079 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7217959079). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T12:12:09Z. --- Independent desktop NVIDIA verification of **PR #1540** at head `a8683ef45d1a38e0200558e6666ec965476e5e6b` (`1` commit; exact parent & merge-base: `9e3831e1f570d3646e53ab753b19ec07eb8f1485`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted tests & build (`a8683ef4`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib scalar_memory_register_offset_is_a_read -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 748 filtered out` × 3 (`0.00s`, `0.00s`, `0.00s`, `0` skipped) | | `cargo test --release -p xcl --lib gpu::rdna2:: -- --nocapture` (3 consecutive runs) | `10 passed; 0 failed; 0 ignored; 739 filtered out` × 3 (`0.02s`, `0.03s`, `0.03s`, `0` skipped; includes `scalar_memory_register_offset_is_a_read` and `llvm_gfx10_corpus`) | | `cargo build --release -p xcl` | Clean build (`1m 07s`, exit `0`, `0` new warnings in `rdna2.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) *(Note: `scripts/smoke.ps1` at `9e3831e1` predates `9683e7a6` and printed the local folder basename on `title:`; replaced below with the standard `9683e7a6` title hash `29640639`, with all measured fields verbatim.)* Exact parent & merge-base (`9e3831e1f570d3646e53ab753b19ec07eb8f1485`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1549 (PresentX 1549) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14715 MB ``` PR #1540 (`a8683ef45d1a38e0200558e6666ec965476e5e6b`): ``` xcl-smoke v1 commit: a8683ef45d1a38e0200558e6666ec965476e5e6b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1576 (PresentX 1576) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14707 MB ``` ### Limits of coverage - `scalar_memory_register_offset_is_a_read` and all `10/10` `gpu::rdna2::` unit tests (`0` skipped) passed `3/3`, directly verifying that SMEM register offsets are tracked as scalar reads. - The 60 s retail smoke confirms steady 60 Hz runtime non-regression (`0` device removals, `0` crashes); single-run frame/commit delta vs. the cached parent reflects normal startup variance. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
jsalzy commented 2026-11-30 03:05:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jsalzy on 2026-11-30T03:05:11Z.


merge-check claim
head: a8683ef45d

<!-- greyfinch-sync:ivall/xcl:comment:7267572942 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7267572942). Originally posted by [jsalzy](https://github.com/jsalzy) on 2026-11-30T03:05:11Z. --- merge-check claim head: a8683ef45d1a38e0200558e6666ec965476e5e6b
jsalzy commented 2026-11-30 03:12:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jsalzy on 2026-11-30T03:12:23Z.


merge-check
base: 07eec51eff
head: a8683ef45d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2826 passed, 0 failed, 51 ignored; SKIPPED: 28 (22 no wave64 on this GPU; 3 per-lane form refused (#1426 semantics); 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1); 1 driver cache cannot be disabled without Windows Developer Mode); failing: none. The PR's new test scalar_memory_register_offset_is_a_read passes.
review: no blocking finding; whole diff read (one line plus a test). In the ISA table OPR_SMEM_OFFSET is only the SOFFSET register field of the SMEM loads (the immediate OFFSET is not an operand), so sgpr_uses now reports that SGPR as a read; null (125) and codes above 127 stay skipped as before, and the size is one register. The users of sgpr_uses gain from it: for example the direct-DXIL kernel's touched-register set (dxil/kernel.rs), which decides which SGPRs the test kernel loads, so an SGPR read only as an SMEM offset is no longer left out; the per-lane lowering's read sets (recomp/lower.rs) and compact.rs see it too. Minor: the test checks sgpr_uses' output only, not a translation that reads an offset register. No other open PR changes this operand (checked #2134, #2000, #2365, #811, #2935, which touch sgpr_uses for other operands).
performance: none measurable: at most one more SGPR counted live for SMEM loads with a register offset.
verdict: safe to merge
hardware / tool and model: RTX 4070 SUPER 12 GB (621.24 / 32.0.16.2124), Ryzen 7 7800X3D, 32 GB, Windows 11 Pro 25H2 26200.9974, Rust 1.100.0, debug / Claude app (Claude Opus 5.5): merge, build and suite run on this PC with git and cargo only; diff review by Claude Opus 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7267681528 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7267681528). Originally posted by [jsalzy](https://github.com/jsalzy) on 2026-11-30T03:12:23Z. --- merge-check base: 07eec51eff01c95c8e0a324107a24cdd73c3f7a2 head: a8683ef45d1a38e0200558e6666ec965476e5e6b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2826 passed, 0 failed, 51 ignored; SKIPPED: 28 (22 no wave64 on this GPU; 3 per-lane form refused (#1426 semantics); 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1); 1 driver cache cannot be disabled without Windows Developer Mode); failing: none. The PR's new test scalar_memory_register_offset_is_a_read passes. review: no blocking finding; whole diff read (one line plus a test). In the ISA table OPR_SMEM_OFFSET is only the SOFFSET register field of the SMEM loads (the immediate OFFSET is not an operand), so sgpr_uses now reports that SGPR as a read; null (125) and codes above 127 stay skipped as before, and the size is one register. The users of sgpr_uses gain from it: for example the direct-DXIL kernel's touched-register set (dxil/kernel.rs), which decides which SGPRs the test kernel loads, so an SGPR read only as an SMEM offset is no longer left out; the per-lane lowering's read sets (recomp/lower.rs) and compact.rs see it too. Minor: the test checks sgpr_uses' output only, not a translation that reads an offset register. No other open PR changes this operand (checked #2134, #2000, #2365, #811, #2935, which touch sgpr_uses for other operands). performance: none measurable: at most one more SGPR counted live for SMEM loads with a register offset. verdict: safe to merge hardware / tool and model: RTX 4070 SUPER 12 GB (621.24 / 32.0.16.2124), Ryzen 7 7800X3D, 32 GB, Windows 11 Pro 25H2 26200.9974, Rust 1.100.0, debug / Claude app (Claude Opus 5.5): merge, build and suite run on this PC with git and cargo only; diff review by Claude Opus 5.5.
brainhay5 commented 2026-11-30 03:12:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T03:12:57Z.


merge-check claim
head: a8683ef45d

<!-- greyfinch-sync:ivall/xcl:comment:7267689940 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7267689940). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T03:12:57Z. --- merge-check claim head: a8683ef45d1a38e0200558e6666ec965476e5e6b
johnbf8x commented 2026-11-30 03:16:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by johnbf8x on 2026-11-30T03:16:17Z.


merge-check claim
head: a8683ef45d

<!-- greyfinch-sync:ivall/xcl:comment:7267741041 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7267741041). Originally posted by [johnbf8x](https://github.com/johnbf8x) on 2026-11-30T03:16:17Z. --- merge-check claim head: a8683ef45d1a38e0200558e6666ec965476e5e6b
brainhay5 commented 2026-11-30 03:19:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T03:19:02Z.


merge-check
base: 45ebed1005
head: a8683ef45d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2826 passed, 1 failed, 51 ignored; 32 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check: diff read for safety (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

<!-- greyfinch-sync:ivall/xcl:comment:7267783511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7267783511). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T03:19:02Z. --- merge-check base: 45ebed1005ac3260a034c296b226f7cfffab1719 head: a8683ef45d1a38e0200558e6666ec965476e5e6b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2826 passed, 1 failed, 51 ignored; 32 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check: diff read for safety (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
johnbf8x commented 2026-11-30 05:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by johnbf8x on 2026-11-30T05:07:44Z.


merge-check
base: b9d5b2527d
head: a8683ef45d
merge: clean (git merge --no-commit --no-ff onto origin/main in a detached worktree; the merged tree was tested uncommitted). Also tested the same way on f97120dc before main took the recompiler merges up to #2070; same results there
build: cargo build --workspace -> ok (the PR merged and main alike, each in its own target dir)
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> main and PR the same: 141 passed, 2 failed, 20 ignored outside the lib; the lib binary ends abnormally on both (0x80004005), so no lib total. SKIPPED: 25 on both (22 no wave64, 2 no heap windows, 1 no D3D12 debug layer). Failing: e2e test_title_draws_with_a_root_signature_under_the_debug_layer and test_title_runs_under_the_debug_layer_with_dred (no D3D12 debug layer on this PC), both fail on main too. The lib in parts: hle::d3d12x::list_x alone on 1 thread 113 passed on both; the rest on 4 threads before the process ends: PR 1774 ok, main 1772 ok, 1 failed on both: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 ("2D D16 resinfo clobbered v2/v3", left (0, 0), right (3735928559, 3405691582); it passed on f97120dc on both and fails on main b9d5b252 alone too, so it comes from the merges after f97120dc, not from this PR). Next to the change, on 1 thread: gpu::rdna2::tests::, gpu::recomp::lower_dxil::tests:: and gpu::recomp::tests:: PR 271 passed, main 270 passed, 0 failed, 19 ignored on both; the new scalar_memory_register_offset_is_a_read passes. Fails without the fix: the test alone applied to main b9d5b252 fails at SOFFSET 4 (left [0, 1], right [0, 1, 4]). On f97120dc the PR tree once failed gpu_two_pass_cache_e2e in the 4-thread suite (two_pass_count 1, not 0, after the 5 s late-release wait); that binary alone then passed 5 of 5 on the PR and 5 of 5 on main, so I take it as a timing flake under load
review: none blocking, after reading the whole diff (rdna2.rs, 13 lines). sgpr_uses now also lets OPR_SMEM_OFFSET operands through, so an SGPR used only as SMEM's SOFFSET is in the read set; NULL (125) still stays out and the write set is unchanged, as the test asserts for s4, s7 and NULL. The 8 recompiler merges after f97120dc change rdna2.rs (vgpr_uses for MIMG) and the sgpr_uses callers in recomp/lower.rs, but on b9d5b252 sgpr_uses still leaves SOFFSET out, so the fix is still needed. Only the read set grows; what a larger read set does in each caller (lower.rs, lane_masks.rs, dxil/kernel.rs, dxil/compact.rs) is covered here only by their unit tests. Not covered: gefydev's per-lane branch from #1269, wave64 (no wave64 on this GPU) and a title
performance: none expected: one more string compare per operand in sgpr_uses (reasoned, not measured)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3070 Ti 8 GB (driver 621.40), Intel Core i7-12700K, Windows 10 Pro 19045, rustc 1.100.0 / Claude Code, Claude Opus 5.5

<!-- greyfinch-sync:ivall/xcl:comment:7269379563 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1540#issuecomment-7269379563). Originally posted by [johnbf8x](https://github.com/johnbf8x) on 2026-11-30T05:07:44Z. --- merge-check base: b9d5b2527db18222c754f5e3c147de495494a4a5 head: a8683ef45d1a38e0200558e6666ec965476e5e6b merge: clean (git merge --no-commit --no-ff onto origin/main in a detached worktree; the merged tree was tested uncommitted). Also tested the same way on f97120dc before main took the recompiler merges up to #2070; same results there build: cargo build --workspace -> ok (the PR merged and main alike, each in its own target dir) tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> main and PR the same: 141 passed, 2 failed, 20 ignored outside the lib; the lib binary ends abnormally on both (0x80004005), so no lib total. SKIPPED: 25 on both (22 no wave64, 2 no heap windows, 1 no D3D12 debug layer). Failing: e2e test_title_draws_with_a_root_signature_under_the_debug_layer and test_title_runs_under_the_debug_layer_with_dred (no D3D12 debug layer on this PC), both fail on main too. The lib in parts: hle::d3d12x::list_x alone on 1 thread 113 passed on both; the rest on 4 threads before the process ends: PR 1774 ok, main 1772 ok, 1 failed on both: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 ("2D D16 resinfo clobbered v2/v3", left (0, 0), right (3735928559, 3405691582); it passed on f97120dc on both and fails on main b9d5b252 alone too, so it comes from the merges after f97120dc, not from this PR). Next to the change, on 1 thread: gpu::rdna2::tests::, gpu::recomp::lower_dxil::tests:: and gpu::recomp::tests:: PR 271 passed, main 270 passed, 0 failed, 19 ignored on both; the new scalar_memory_register_offset_is_a_read passes. Fails without the fix: the test alone applied to main b9d5b252 fails at SOFFSET 4 (left [0, 1], right [0, 1, 4]). On f97120dc the PR tree once failed gpu_two_pass_cache_e2e in the 4-thread suite (two_pass_count 1, not 0, after the 5 s late-release wait); that binary alone then passed 5 of 5 on the PR and 5 of 5 on main, so I take it as a timing flake under load review: none blocking, after reading the whole diff (rdna2.rs, 13 lines). sgpr_uses now also lets OPR_SMEM_OFFSET operands through, so an SGPR used only as SMEM's SOFFSET is in the read set; NULL (125) still stays out and the write set is unchanged, as the test asserts for s4, s7 and NULL. The 8 recompiler merges after f97120dc change rdna2.rs (vgpr_uses for MIMG) and the sgpr_uses callers in recomp/lower.rs, but on b9d5b252 sgpr_uses still leaves SOFFSET out, so the fix is still needed. Only the read set grows; what a larger read set does in each caller (lower.rs, lane_masks.rs, dxil/kernel.rs, dxil/compact.rs) is covered here only by their unit tests. Not covered: gefydev's per-lane branch from #1269, wave64 (no wave64 on this GPU) and a title performance: none expected: one more string compare per operand in sgpr_uses (reasoned, not measured) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3070 Ti 8 GB (driver 621.40), Intel Core i7-12700K, Windows 10 Pro 19045, rustc 1.100.0 / Claude Code, Claude Opus 5.5
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!1530
No description provided.