Recompiler: a V# with ADD_TID_ENABLE indexes buffers by lane #2056

Merged
upipibi merged 1 commit from upstream-pr/2066 into main 2026-11-30 03:13:29 +00:00
upipibi commented 2026-11-25 02:36:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T02:36:42Z.


Both paths ignored ADD_TID_ENABLE (V# word 3 bit 23). Every lane of a buffer access without IDXEN used index 0, so a 64-lane buffer_load_dword through such a V# read element 0 in every lane. RDNA2 takes the lane as the index when IDXEN is clear, and ignores ADD_TID when IDXEN is set.

Source for the rule: boykopovar/AnyPS5#21970 measured it on gfx1036 with their hardware oracle (compute), and boykopovar/AnyPS5#24781 applies the same rule to graphics stages.

What is in it

  • recomp/emit.rs and dxil/lower_mem.rs: when IDXEN is clear, the MUBUF index is select(V# word 3 bit 23, lane, 0) instead of 0. This applies at all five sites: loads and stores, sub-dword D16, and atomics. The atomic sites now read V# word 3.
  • recomp/tests.rs: gpu_buffer_add_tid_indexes_by_lane uses a stride-4 V# with ADD_TID, and each lane should read its own dword. The test sits next to the other buffer tests rather than at the end of the file.

Tested

  • AMD, run by oni-swr (comment, thanks) at the exact head b81d47c, as-is: Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Windows 11, debug, DXC 1.9.0.5512. gpu_buffer_add_tid_indexes_by_lane passes; cargo test --workspace --no-fail-fast -- --test-threads=4: 1146 passed, 1 failed, 46 ignored. The failure, fuzz_validate_and_gpu_1 (seed 722), fails the same way on main 1a0bbe3 on that machine.
  • On an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on main 5ce558f:
  • new test: main fails on both paths (every lane reads 0xA000). This branch passes with XCL_DIRECT_DXIL=0 and 1.
  • gpu_ tests (--skip gpu_sparse_vram): 133 passed with XCL_DIRECT_DXIL=0; with 1, 132 passed and 1 failed, gpu_image_get_resinfo_1d_array, which also fails on main (#2046 fixes it).
  • dxil:: and buffer_format units: 138 passed.
  • Merges cleanly with #2027, #2046, #2051, #2054 and #2058.

Regression run
Run by Toons29 on an AMD Radeon RX 9070 (comment), main and this head, pasted unedited:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: b81d47c33ef0529b6707496ce44de3b43a1d1850
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1567 (PresentX 1567)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14627 MB

Not tested

  • Titles. On AMD, only oni-swr's run above.
  • Not covered: swizzled buffers. With the V#'s swizzle bit set (word 1 bit 31, stride not 0), this PR still computes a linear stride * lane address after the new index (recomp/emit.rs:2089, :2099, :4117, :4124, :4174, :4184; dxil/lower_mem.rs:1179-1181, :1840-1842). boykopovar/AnyPS5#21970 measured on gfx1036 (compute, through HIP; the PR is open) that the swizzle does apply with ADD_TID: step = 8 << INDEX_STRIDE, addr = ((idx/step)*stride + (off&~3))*step + (idx%step)*4 + (off&3). This doesn't make anything worse, because main has no buffer swizzle on either path (with IDXEN either). The test here uses stride 4 with the bit clear, where both rules give 4l, so it can't tell them apart. Swizzle is a separate change: #2325, stacked on this one.

AI use

  • AI-assisted (Claude Code, Claude Opus 5.5): wrote the change, the tests and this description, and ran the tests above. Synthetic tests only; no game files.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5484078329 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T02:36:42Z. --- Both paths ignored `ADD_TID_ENABLE` (V# word 3 bit 23). Every lane of a buffer access without `IDXEN` used index 0, so a 64-lane `buffer_load_dword` through such a V# read element 0 in every lane. RDNA2 takes the lane as the index when `IDXEN` is clear, and ignores `ADD_TID` when `IDXEN` is set. Source for the rule: boykopovar/AnyPS5#21970 measured it on gfx1036 with their hardware oracle (compute), and boykopovar/AnyPS5#24781 applies the same rule to graphics stages. **What is in it** - `recomp/emit.rs` and `dxil/lower_mem.rs`: when `IDXEN` is clear, the MUBUF index is `select(V# word 3 bit 23, lane, 0)` instead of 0. This applies at all five sites: loads and stores, sub-dword D16, and atomics. The atomic sites now read V# word 3. - `recomp/tests.rs`: `gpu_buffer_add_tid_indexes_by_lane` uses a stride-4 V# with `ADD_TID`, and each lane should read its own dword. The test sits next to the other buffer tests rather than at the end of the file. **Tested** - AMD, run by oni-swr ([comment](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7162105587), thanks) at the exact head `b81d47c`, as-is: Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Windows 11, debug, DXC 1.9.0.5512. `gpu_buffer_add_tid_indexes_by_lane` passes; `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1146 passed, 1 failed, 46 ignored. The failure, `fuzz_validate_and_gpu_1` (seed 722), fails the same way on `main` `1a0bbe3` on that machine. - On an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on `main` `5ce558f`: - new test: `main` fails on both paths (every lane reads `0xA000`). This branch passes with `XCL_DIRECT_DXIL=0` and `1`. - `gpu_` tests (`--skip gpu_sparse_vram`): 133 passed with `XCL_DIRECT_DXIL=0`; with `1`, 132 passed and 1 failed, `gpu_image_get_resinfo_1d_array`, which also fails on `main` (#2046 fixes it). - `dxil::` and `buffer_format` units: 138 passed. - Merges cleanly with #2027, #2046, #2051, #2054 and #2058. **Regression run** Run by Toons29 on an AMD Radeon RX 9070 ([comment](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7158643538)), `main` and this head, pasted unedited: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: b81d47c33ef0529b6707496ce44de3b43a1d1850 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1567 (PresentX 1567) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14627 MB ``` **Not tested** - Titles. On AMD, only oni-swr's run above. - **Not covered: swizzled buffers.** With the V#'s swizzle bit set (word 1 bit 31, stride not 0), this PR still computes a linear `stride * lane` address after the new index (`recomp/emit.rs:2089`, `:2099`, `:4117`, `:4124`, `:4174`, `:4184`; `dxil/lower_mem.rs:1179-1181`, `:1840-1842`). boykopovar/AnyPS5#21970 measured on gfx1036 (compute, through HIP; the PR is open) that the swizzle does apply with ADD_TID: `step = 8 << INDEX_STRIDE`, `addr = ((idx/step)*stride + (off&~3))*step + (idx%step)*4 + (off&3)`. This doesn't make anything worse, because `main` has no buffer swizzle on either path (with `IDXEN` either). The test here uses stride 4 with the bit clear, where both rules give `4l`, so it can't tell them apart. Swizzle is a separate change: #2325, stacked on this one. **AI use** - AI-assisted (Claude Code, Claude Opus 5.5): wrote the change, the tests and this description, and ran the tests above. Synthetic tests only; no game files. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
JJAutoCompare commented 2026-11-25 03:05:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:00:50Z.


Tested

I ran the checked-in stride-4 gpu_buffer_add_tid_indexes_by_lane fixture on an Intel Arc A770 at clean PR head b81d47c33ef0529b6707496ce44de3b43a1d1850. GitHub showed this exact open head before and after execution. The post-run conversation showed no separate verification report. PR #2066

  • Intel Arc A770, driver 32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974.
  • Rust and Cargo 1.100.0, toolchain stable-x86_64-pc-windows-msvc. Unoptimized Cargo test profile with debug info and incremental compilation disabled. DXC/DXIL 1.9.2609.5.
  • Built the XCL library test executable outside the Arc lock. Used the same executable for both runs.
$env:CARGO_TARGET_DIR = 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target'
$env:CARGO_INCREMENTAL = '0'
$env:CARGO_PROFILE_DEV_DEBUG = '0'
$env:CARGO_PROFILE_TEST_DEBUG = '0'
$env:TEMP = 'L:\XclTooling\pr2066\run-b81d47c-20261125T025448907Z\temp'
$env:TMP = $env:TEMP
& 'C:/Users/ljensen/.cargo/bin/cargo.exe' +stable-x86_64-pc-windows-msvc test --locked -p xcl --lib -j 2 --no-run --message-format=json

The following ran once with XCL_DIRECT_DXIL=0 for HLSL/DXC and once with XCL_DIRECT_DXIL=1 for direct DXIL. The test runner uses direct DXIL without a fallback in the second mode.

$env:XCL_ADAPTER = 'A770'
$env:XCL_DXC_DIR = 'C:/Users/ljensen/AppData/Local/XclTooling/dxc-1.9.2609/bin/x64'
$env:XCL_REQUIRE_GPU = 'wave64'
$child = @"
& 'L:/XclTooling/Invoke-ArcTest.ps1' -WaitMinutes 30 -Test { & 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target\debug\build\xcl/97fdf2b9ff8e1482\out\xcl-97fdf2b9ff8e1482.exe' gpu::recomp::tests::gpu_buffer_add_tid_indexes_by_lane --exact --nocapture --test-threads=1 }; exit `$LASTEXITCODE
"@
& 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe' -NoProfile -ExecutionPolicy RemoteSigned -Command $child
Backend Passed Failed Ignored Skipped Filtered out Lanes matching expected
HLSL/DXC 1 0 0 0 1119 64/64
Direct DXIL 1 0 0 0 1119 64/64

The fixture's exact vector assertion passed on both backends. For each lane from 0 through 63, the readback equaled 0xA000 + lane, so the two backend outputs matched on all 64 lanes. Both runs exited 0 and released the Arc lock. The initial shell attempts were blocked before test execution by Windows PowerShell's default policy. The successful commands used process-scoped RemoteSigned.

Not tested

Other descriptor or address combinations, writes, atomics, other GPU adapters, the full workspace suite, and retail-title smoke runs.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixture, verified the logs, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7151502782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7151502782). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:00:50Z. --- **Tested** I ran the checked-in stride-4 `gpu_buffer_add_tid_indexes_by_lane` fixture on an Intel Arc A770 at clean PR head `b81d47c33ef0529b6707496ce44de3b43a1d1850`. GitHub showed this exact open head before and after execution. The post-run conversation showed no separate verification report. [PR #2066](https://github.com/xcl-dev/xcl/pull/2066) - Intel Arc A770, driver 32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974. - Rust and Cargo 1.100.0, toolchain `stable-x86_64-pc-windows-msvc`. Unoptimized Cargo test profile with debug info and incremental compilation disabled. DXC/DXIL 1.9.2609.5. - Built the XCL library test executable outside the Arc lock. Used the same executable for both runs. ```powershell $env:CARGO_TARGET_DIR = 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target' $env:CARGO_INCREMENTAL = '0' $env:CARGO_PROFILE_DEV_DEBUG = '0' $env:CARGO_PROFILE_TEST_DEBUG = '0' $env:TEMP = 'L:\XclTooling\pr2066\run-b81d47c-20261125T025448907Z\temp' $env:TMP = $env:TEMP & 'C:/Users/ljensen/.cargo/bin/cargo.exe' +stable-x86_64-pc-windows-msvc test --locked -p xcl --lib -j 2 --no-run --message-format=json ``` The following ran once with `XCL_DIRECT_DXIL=0` for HLSL/DXC and once with `XCL_DIRECT_DXIL=1` for direct DXIL. The test runner uses direct DXIL without a fallback in the second mode. ```powershell $env:XCL_ADAPTER = 'A770' $env:XCL_DXC_DIR = 'C:/Users/ljensen/AppData/Local/XclTooling/dxc-1.9.2609/bin/x64' $env:XCL_REQUIRE_GPU = 'wave64' $child = @" & 'L:/XclTooling/Invoke-ArcTest.ps1' -WaitMinutes 30 -Test { & 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target\debug\build\xcl/97fdf2b9ff8e1482\out\xcl-97fdf2b9ff8e1482.exe' gpu::recomp::tests::gpu_buffer_add_tid_indexes_by_lane --exact --nocapture --test-threads=1 }; exit `$LASTEXITCODE "@ & 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe' -NoProfile -ExecutionPolicy RemoteSigned -Command $child ``` | Backend | Passed | Failed | Ignored | Skipped | Filtered out | Lanes matching expected | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | HLSL/DXC | 1 | 0 | 0 | 0 | 1119 | 64/64 | | Direct DXIL | 1 | 0 | 0 | 0 | 1119 | 64/64 | The fixture's exact vector assertion passed on both backends. For each lane from 0 through 63, the readback equaled `0xA000 + lane`, so the two backend outputs matched on all 64 lanes. Both runs exited 0 and released the Arc lock. The initial shell attempts were blocked before test execution by Windows PowerShell's default policy. The successful commands used process-scoped `RemoteSigned`. **Not tested** Other descriptor or address combinations, writes, atomics, other GPU adapters, the full workspace suite, and retail-title smoke runs. **AI use** T3 Code / Codex (`gpt-6.2-sol`) ran the checked-in fixture, verified the logs, and wrote this report.
JoaoPauluu commented 2026-11-25 04:10:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T03:14:19Z.


A run with vkd3d-proton as the host D3D12. The DXIL goes through dxil-spirv and then the NVIDIA Vulkan driver, a different compiler from a native-Windows run: this PR's new test passes.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. b81d47c as it is (merge base with main 5ce558f), no uncommitted changes. The lib test binary runs under Wine, one test per process.
    • gpu_buffer_add_tid_indexes_by_lane: ok, not skipped

Not tested

  • the whole suite on this head, a retail title, native Windows, AMD.

AI use

  • Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7151723857 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7151723857). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T03:14:19Z. --- A run with vkd3d-proton as the host D3D12. The DXIL goes through dxil-spirv and then the NVIDIA Vulkan driver, a different compiler from a native-Windows run: this PR's new test passes. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `b81d47c` as it is (merge base with `main` `5ce558f`), no uncommitted changes. The lib test binary runs under Wine, one test per process. - `gpu_buffer_add_tid_indexes_by_lane`: ok, not skipped **Not tested** - the whole suite on this head, a retail title, native Windows, AMD. **AI use** - Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
DavidM1911 commented 2026-11-25 05:08:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:55:19Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7153284709 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7153284709). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:55:19Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Toons29 commented 2026-11-25 10:10:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T09:40:15Z.


Regression run of b81d47c3 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 568e7db7, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: b81d47c33ef0529b6707496ce44de3b43a1d1850
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1567 (PresentX 1567)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14627 MB

Against the limits in CONTRIBUTING.md: 100 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.

<!-- greyfinch-sync:ivall/xcl:comment:7158643538 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7158643538). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T09:40:15Z. --- Regression run of `b81d47c3` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: b81d47c33ef0529b6707496ce44de3b43a1d1850 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1567 (PresentX 1567) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14627 MB ``` Against the limits in CONTRIBUTING.md: 100 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; a script posted this right after the run, with both blocks exactly as printed.
raylitebull commented 2026-11-25 11:09:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:46:50Z.


Code review on b81d47c looks solid, CI is green, and it has Arc A770, vkd3d-proton, RTX 3060 Ti, and RX 9070 smoke coverage.

Only missing piece before merge is an AMD synthetic GPU test run (gpu_buffer_add_tid_indexes_by_lane) on b81d47c.

<!-- greyfinch-sync:ivall/xcl:comment:7160162932 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7160162932). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:46:50Z. --- Code review on `b81d47c` looks solid, CI is green, and it has Arc A770, vkd3d-proton, RTX 3060 Ti, and RX 9070 smoke coverage. Only missing piece before merge is an AMD synthetic GPU test run (`gpu_buffer_add_tid_indexes_by_lane`) on `b81d47c`.
oni-swr commented 2026-11-25 13:05:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T12:14:26Z.


AMD synthetic GPU run of b81d47c33ef0529b6707496ce44de3b43a1d1850 (exact PR head, tested as-is, not merged onto main; the diff touches the recompiler and its test only). Synthetic Cargo tests only: no retail title, no smoke.ps1.

Tested

  • AMD Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 Pro 26200, rustc 1.100.0 (2026-11-09), debug build, DXC 1.9.0.5512. Clean target dir; Compiling xcl v0.1.0 came from the PR checkout.
  • cargo test -p xcl --lib gpu_buffer_add_tid -- --nocapture: gpu::recomp::tests::gpu_buffer_add_tid_indexes_by_lane ... ok (1 passed, 0 failed, 0 ignored).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1146 passed, 1 failed, 46 ignored, 7 distinct SKIPPED lines. These are not coverage: f16/f32 per-lane form refused (6, wave32 and wave64) and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • The 1 failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722: res[30] = 0x1, CPU 0x7fffffff). It fails the same way on main 1a0bbe3 on this machine (cargo test -p xcl --lib fuzz_validate_and_gpu_1: 0 passed, 1 failed), so the PR did not cause it. I did not look into it further.
  • With --workspace and no prior cargo build --workspace, e2e failed 2 of 3 because xcl_testtitle.exe was not built yet. After cargo build --workspace, e2e gave 3 passed, 0 failed.

Not tested

  • Retail title / scripts/smoke.ps1 regression run, NVIDIA, Intel, Wine/vkd3d.
  • Whether the PR merged with newer main still passes.

AI use
Claude Code, Claude Sonnet 5.5 ran the tests, checked the diff, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162105587 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7162105587). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T12:14:26Z. --- AMD synthetic GPU run of `b81d47c33ef0529b6707496ce44de3b43a1d1850` (exact PR head, tested as-is, not merged onto `main`; the diff touches the recompiler and its test only). Synthetic Cargo tests only: no retail title, no `smoke.ps1`. **Tested** - AMD Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 Pro 26200, rustc 1.100.0 (2026-11-09), debug build, DXC 1.9.0.5512. Clean target dir; `Compiling xcl v0.1.0` came from the PR checkout. - `cargo test -p xcl --lib gpu_buffer_add_tid -- --nocapture`: `gpu::recomp::tests::gpu_buffer_add_tid_indexes_by_lane ... ok` (1 passed, 0 failed, 0 ignored). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1146 passed, 1 failed, 46 ignored**, 7 distinct `SKIPPED` lines. These are not coverage: f16/f32 per-lane form refused (6, wave32 and wave64) and `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - The 1 failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (`seed 722: res[30] = 0x1, CPU 0x7fffffff`). It fails the same way on `main` `1a0bbe3` on this machine (`cargo test -p xcl --lib fuzz_validate_and_gpu_1`: 0 passed, 1 failed), so the PR did not cause it. I did not look into it further. - With `--workspace` and no prior `cargo build --workspace`, `e2e` failed 2 of 3 because `xcl_testtitle.exe` was not built yet. After `cargo build --workspace`, `e2e` gave 3 passed, 0 failed. **Not tested** - Retail title / `scripts/smoke.ps1` regression run, NVIDIA, Intel, Wine/vkd3d. - Whether the PR merged with newer `main` still passes. **AI use** Claude Code, Claude Sonnet 5.5 ran the tests, checked the diff, and wrote this report.
throny commented 2026-11-29 01:09:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T01:09:14Z.


merge-check claim
head: b81d47c33e

<!-- greyfinch-sync:ivall/xcl:comment:7248595726 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7248595726). Originally posted by [throny](https://github.com/throny) on 2026-11-29T01:09:14Z. --- merge-check claim head: b81d47c33ef0529b6707496ce44de3b43a1d1850
throny commented 2026-11-29 01:21:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T01:21:37Z.


merge-check
base: fa204595
head: b81d47c33e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2609 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at fa204595: 2608 passed, 0 failed, 49 ignored.
review: no blocking finding; all hunks read. The lane that is added is the console lane in every mode: on the HLSL path also when a wave32 program runs on wider hardware and in split wave64 on a 32-lane GPU, and on the direct path it is the same value its flat forms already use. The existing bound check on the record index now covers the lane index too. Unchanged from main and worth a follow-up: when the index register is enabled together with the lane, the lane is still not added (the instruction set adds both), and swizzled buffer descriptors are not handled. The new test covers loads, not stores or atomics.
performance: about four more ALU operations per buffer access of this kind. It changes a translator source: every tester re-translates all shaders once.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7248731019 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7248731019). Originally posted by [throny](https://github.com/throny) on 2026-11-29T01:21:37Z. --- merge-check base: fa204595 head: b81d47c33ef0529b6707496ce44de3b43a1d1850 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2609 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at fa204595: 2608 passed, 0 failed, 49 ignored. review: no blocking finding; all hunks read. The lane that is added is the console lane in every mode: on the HLSL path also when a wave32 program runs on wider hardware and in split wave64 on a 32-lane GPU, and on the direct path it is the same value its flat forms already use. The existing bound check on the record index now covers the lane index too. Unchanged from main and worth a follow-up: when the index register is enabled together with the lane, the lane is still not added (the instruction set adds both), and swizzled buffer descriptors are not handled. The new test covers loads, not stores or atomics. performance: about four more ALU operations per buffer access of this kind. It changes a translator source: every tester re-translates all shaders once. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
saintwolf commented 2026-11-30 02:24:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T02:24:16Z.


merge-check claim
head: b81d47c33e

<!-- greyfinch-sync:ivall/xcl:comment:7266975596 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7266975596). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T02:24:16Z. --- merge-check claim head: b81d47c33ef0529b6707496ce44de3b43a1d1850
relativespace2K commented 2026-11-30 02:26:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by relativespace2K on 2026-11-30T02:26:27Z.


merge-check
base: 53e85fb1
head: b81d47c33e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --test gpu_two_pass_cache_e2e, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new GPU test passed here and is not among the SKIPPED lines, so it really ran on the RX 6800 XT. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused.
review: no blocking finding; four translation sites (two in gpu/dxil/lower_mem.rs, three in gpu/recomp/emit.rs), every hunk read. The rule is the same everywhere and matches the cited AnyPS5 notes: with IDXEN clear, V# word 3 bit 23 makes the lane the buffer index, otherwise the index stays 0, and the lane counts instead of the index rather than on top of it. The GPU test builds a descriptor with stride 4 and bit 23 set and asserts lane l reads element l for all 64 lanes, which is the observable half of the change. One case is not covered, and I could not settle it from the diff: when IDXEN and ADD_TID_ENABLE are both set the code keeps index = vaddr and adds nothing for the lane; if the hardware adds the lane there too, that combination is still open. Worth a follow-up only if a title is seen using both together. No duplicate: the AnyPS5 references (#21970, #24781) are the source, and no other PR carries this.
performance: three integer ops per buffer access in the translated shader, at translation time; a select per access at run time, which a wave of 64 lanes pays once per access and not per draw.
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash. Two full runs of the suite aborted in -p xcl --lib with 0xc0000005 (STATUS_ACCESS_VIOLATION) before that target printed a result, which is the intermittent abort under parallel scheduling (#1978); the lib target passed twice on its own (2651 passed, 4 failed, 29 ignored) and the third full run was clean, which is where the numbers above come from.

<!-- greyfinch-sync:ivall/xcl:comment:7267007418 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7267007418). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-11-30T02:26:27Z. --- merge-check base: 53e85fb1 head: b81d47c33ef0529b6707496ce44de3b43a1d1850 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in `--test gpu_two_pass_cache_e2e`, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new GPU test passed here and is not among the SKIPPED lines, so it really ran on the RX 6800 XT. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused. review: no blocking finding; four translation sites (two in `gpu/dxil/lower_mem.rs`, three in `gpu/recomp/emit.rs`), every hunk read. The rule is the same everywhere and matches the cited AnyPS5 notes: with `IDXEN` clear, V# word 3 bit 23 makes the lane the buffer index, otherwise the index stays 0, and the lane counts *instead of* the index rather than on top of it. The GPU test builds a descriptor with stride 4 and bit 23 set and asserts lane l reads element l for all 64 lanes, which is the observable half of the change. One case is not covered, and I could not settle it from the diff: when `IDXEN` and `ADD_TID_ENABLE` are both set the code keeps `index = vaddr` and adds nothing for the lane; if the hardware adds the lane there too, that combination is still open. Worth a follow-up only if a title is seen using both together. No duplicate: the AnyPS5 references (#21970, #24781) are the source, and no other PR carries this. performance: three integer ops per buffer access in the translated shader, at translation time; a `select` per access at run time, which a wave of 64 lanes pays once per access and not per draw. verdict: safe to merge hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash. Two full runs of the suite aborted in `-p xcl --lib` with `0xc0000005` (`STATUS_ACCESS_VIOLATION`) before that target printed a result, which is the intermittent abort under parallel scheduling (#1978); the lib target passed twice on its own (2651 passed, 4 failed, 29 ignored) and the third full run was clean, which is where the numbers above come from.
saintwolf commented 2026-11-30 02:30:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T02:30:21Z.


merge-check
base: 53e85fb124
head: b81d47c33e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2792 passed, 3 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone), two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --lib and --test gpu_two_pass_cache_e2e under --test-threads=4; passed when run alone on base 53e85fb1)
review: none (read the full +53/-5 diff in crates/xcl/src/gpu/{dxil/lower_mem,recomp/emit,recomp/tests}.rs: when IDXEN is clear, selects lane vs 0 using V# word 3 bit 23 (ADD_TID_ENABLE) across all five MUBUF load/store/D16/atomic sites on both HLSL and direct-DXIL paths; gpu_buffer_add_tid_indexes_by_lane passed on RTX 4070 SUPER; no duplicates found; not tested: stores/atomics with ADD_TID_ENABLE, swizzled buffers (#2325), or retail smoke on this machine)
performance: adds ~4 ALU ops (shift/and/select) per non-IDXEN MUBUF access and changes translator sources so shader caches re-translate once
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)

<!-- greyfinch-sync:ivall/xcl:comment:7267064818 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2066#issuecomment-7267064818). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T02:30:21Z. --- merge-check base: 53e85fb124eae624641e9884517e4f3c4a7d8794 head: b81d47c33ef0529b6707496ce44de3b43a1d1850 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2792 passed, 3 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone), two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --lib and --test gpu_two_pass_cache_e2e under --test-threads=4; passed when run alone on base 53e85fb1) review: none (read the full +53/-5 diff in crates/xcl/src/gpu/{dxil/lower_mem,recomp/emit,recomp/tests}.rs: when IDXEN is clear, selects lane vs 0 using V# word 3 bit 23 (ADD_TID_ENABLE) across all five MUBUF load/store/D16/atomic sites on both HLSL and direct-DXIL paths; gpu_buffer_add_tid_indexes_by_lane passed on RTX 4070 SUPER; no duplicates found; not tested: stores/atomics with ADD_TID_ENABLE, swizzled buffers (#2325), or retail smoke on this machine) performance: adds ~4 ALU ops (shift/and/select) per non-IDXEN MUBUF access and changes translator sources so shader caches re-translate once verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
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!2056
No description provided.