Recompiler: a 2-bit SNORM store component rounds a half away from zero #2041

Merged
upipibi merged 2 commits from upstream-pr/2051 into main 2026-11-29 13:59:30 +00:00
upipibi commented 2026-11-25 02:02:01 +00:00 (Migrated from github.com)

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


fmt_encode rounded every SNORM component to nearest even. So 0.5 and −0.5 stored 0 in the 2-bit W of 2_10_10_10_SNORM, where RDNA2 stores 1 and −1. Storing x = w = 0.5, y = 0.25, z = −0.75 gave 0x28120100 instead of 0x68120100.

Source for the rule: boykopovar/AnyPS5#25877 ran a store sweep of tbuffer_store_format_xyzw in 75 formats on gfx1036. Only this 2-bit component differed from nearest-even rounding. 8-, 10- and 16-bit SNORM components and every UNORM width round to nearest even on the hardware too, so they stay as they are. These formats are common for packed normals and tangents, where the 2-bit component carries the handedness sign.

What is in it

  • recomp/emit.rs: the SNORM arm of fmt_encode uses sign(s) · floor(|s| + 0.5) when the component is 2 bits wide, and round(s) otherwise.
  • dxil/lower_mem.rs: the same in Lw::fmt_encode.
  • recomp/tests.rs: gpu_buffer_store_two_bit_snorm_rounds_half_away. It stores eight W values (±0.5, ±1, 0.49, −0.75, 0.4999999, 0.5000001) with x = 0.5, y = 0.25, z = −0.75, and compares the packed words.
  • 98e83c0: the 2-bit magnitude (at most 1) is compared with 0.5 directly. floor(|x| + 0.5) rounded 0.49999997 + 0.5 to exactly 1.0 in f32, so 0x3effffff / 0xbeffffff stored ±1 (found by nnonno91). Exactly ±0.5 still stores ±1; other SNORM widths unchanged.

Tested

  • AMD, run by oni-swr (comment, thanks) at the exact head d25e85f, as-is: Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Windows 11, debug, DXC 1.9.0.5512. gpu_buffer_store_two_bit_snorm_rounds_half_away passes; cargo test --workspace --no-fail-fast -- --test-threads=4: 1242 passed, 2 failed, 46 ignored. The 2 failures are not this PR's: fuzz_validate_and_gpu_1 fails the same way on main 1a0bbe3 there, and gpu_image_get_resinfo_past_last_level comes from this head's base, which predates main's fix ea088a5.
  • At d25e85f1 (rebased onto main 426a5a74, the first main with green CI after 5478c4a7, whose two failing tests main fixed in 0d13b071), RTX 3070 (616.56): gpu_ suite (--skip gpu_sparse_vram) 144 passed, 0 failed with XCL_DIRECT_DXIL=0 and with =1. main 426a5a74 gives 143 passed on both.
  • At 98e83c0, RTX 3070 (616.56): the test, extended with 0x3effffff / 0xbeffffff (W = 0) and 0x3f000000 / 0xbf000000 (W = ±1), fails at 1e29ff4 and passes after the fix with XCL_DIRECT_DXIL=0 and 1. gpu_ suite: 133 passed with 0; with 1, 132 passed and 1 failed: gpu_image_get_resinfo_1d_array, which fails on main too (#2046).
  • On an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on main 5ce558f:
  • new test: main fails on both paths (w = 0.5: 0x28120100, want 0x68120100). 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 5ce558f (#2046 fixes it).
  • dxil:: and buffer_format units: 138 passed.
  • Merges cleanly with #2043, which changes the integer and float arms of the same function.

Regression run
Pair for the current head d25e85f against main 1a0bbe3, run by thehollowedone (comment, thanks): RTX 3080 Ti (621.35), stock scripts/smoke.ps1, clean release builds, 60 s offline. Pasted unedited.

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14333 MB
xcl-smoke v1
commit: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1644 (PresentX 1644)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14348 MB

Earlier: The earlier pair, comment, was for 98e83c0, before the rebase onto main 5478c4a7..

A second pair, by ThiagoAlexsander on an RTX 5080 (comment, thanks): main 426a5a7 1529 frames shown, this head d25e85f 1599, 0 crashes and 0 device removals on both.

Not tested

  • Titles. On AMD, only the runs above.

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:5483688974 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T02:02:01Z. --- `fmt_encode` rounded every SNORM component to nearest even. So 0.5 and −0.5 stored 0 in the 2-bit W of `2_10_10_10_SNORM`, where RDNA2 stores 1 and −1. Storing x = w = 0.5, y = 0.25, z = −0.75 gave `0x28120100` instead of `0x68120100`. Source for the rule: boykopovar/AnyPS5#25877 ran a store sweep of `tbuffer_store_format_xyzw` in 75 formats on gfx1036. Only this 2-bit component differed from nearest-even rounding. 8-, 10- and 16-bit SNORM components and every UNORM width round to nearest even on the hardware too, so they stay as they are. These formats are common for packed normals and tangents, where the 2-bit component carries the handedness sign. **What is in it** - `recomp/emit.rs`: the SNORM arm of `fmt_encode` uses `sign(s) · floor(|s| + 0.5)` when the component is 2 bits wide, and `round(s)` otherwise. - `dxil/lower_mem.rs`: the same in `Lw::fmt_encode`. - `recomp/tests.rs`: `gpu_buffer_store_two_bit_snorm_rounds_half_away`. It stores eight W values (±0.5, ±1, 0.49, −0.75, 0.4999999, 0.5000001) with x = 0.5, y = 0.25, z = −0.75, and compares the packed words. - `98e83c0`: the 2-bit magnitude (at most 1) is compared with 0.5 directly. `floor(|x| + 0.5)` rounded 0.49999997 + 0.5 to exactly 1.0 in f32, so `0x3effffff` / `0xbeffffff` stored ±1 (found by nnonno91). Exactly ±0.5 still stores ±1; other SNORM widths unchanged. **Tested** - AMD, run by oni-swr ([comment](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7162284499), thanks) at the exact head `d25e85f`, as-is: Radeon RX 7800 XT (RDNA3, driver 32.0.31035.1003), Windows 11, debug, DXC 1.9.0.5512. `gpu_buffer_store_two_bit_snorm_rounds_half_away` passes; `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1242 passed, 2 failed, 46 ignored. The 2 failures are not this PR's: `fuzz_validate_and_gpu_1` fails the same way on `main` `1a0bbe3` there, and `gpu_image_get_resinfo_past_last_level` comes from this head's base, which predates `main`'s fix `ea088a5`. - At `d25e85f1` (rebased onto `main` `426a5a74`, the first `main` with green CI after `5478c4a7`, whose two failing tests main fixed in `0d13b071`), RTX 3070 (616.56): `gpu_` suite (`--skip gpu_sparse_vram`) 144 passed, 0 failed with `XCL_DIRECT_DXIL=0` and with `=1`. `main` `426a5a74` gives 143 passed on both. - At `98e83c0`, RTX 3070 (616.56): the test, extended with `0x3effffff` / `0xbeffffff` (W = 0) and `0x3f000000` / `0xbf000000` (W = ±1), fails at `1e29ff4` and passes after the fix with `XCL_DIRECT_DXIL=0` and `1`. `gpu_` suite: 133 passed with `0`; with `1`, 132 passed and 1 failed: `gpu_image_get_resinfo_1d_array`, which fails on `main` too (#2046). - On an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on `main` `5ce558f`: - new test: `main` fails on both paths (`w = 0.5: 0x28120100, want 0x68120100`). 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` `5ce558f` (#2046 fixes it). - `dxil::` and `buffer_format` units: 138 passed. - Merges cleanly with #2043, which changes the integer and float arms of the same function. **Regression run** Pair for the current head `d25e85f` against `main` `1a0bbe3`, run by thehollowedone ([comment](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7162916485), thanks): RTX 3080 Ti (621.35), stock `scripts/smoke.ps1`, clean release builds, 60 s offline. Pasted unedited. ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1638 (PresentX 1638) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14333 MB ``` ``` xcl-smoke v1 commit: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1644 (PresentX 1644) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14348 MB ``` Earlier: The earlier pair, [comment](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7158770547), was for `98e83c0`, before the rebase onto `main` `5478c4a7`.. A second pair, by ThiagoAlexsander on an RTX 5080 ([comment](https://github.com/xcl-dev/xcl/issues/1607#issuecomment-7162807523), thanks): `main` `426a5a7` 1529 frames shown, this head `d25e85f` 1599, 0 crashes and 0 device removals on both. **Not tested** - Titles. On AMD, only the runs above. **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)
nnonno91 commented 2026-11-25 02:09:08 +00:00 (Migrated from github.com)

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


Independent AMD check on 1b617e31db8414bd1ae0d23d4376f4108a6429bd. The existing regression test passed through both backends. The closest representable inputs with magnitude below 0.5 exposed a new boundary failure on both.

Tested

  • AMD Radeon(TM) Graphics (driver 32.0.21042.62, native wave64), Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized test profile.
  • Ran cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away -- --exact --nocapture --test-threads=1 with XCL_ADAPTER=AMD Radeon, XCL_REQUIRE_GPU=wave64 and XCL_DIRECT_DXIL=0 and 1 in separate runs. The original test passed on the head (1 passed, 0 failed per backend).
  • In a temporary copy of the fixture, I used f32::from_bits(0x3eff_ffff) and f32::from_bits(0xbeff_ffff) as the last two W inputs and printed all readbacks before asserting. Both should store W = 0 (packed 0x28120100). The head stored W = +1 and −1 (packed 0x68120100 and 0xe8120100) on both backends. On the exact parent c00f3fcfce59bb4dfd3a1f96bbc84c60e765b538, both of these inputs stored W = 0, and the exact ±0.5 cases also stored W = 0. The adapted test failed once per backend on each revision at the respective boundary. All runs had 0 ignored and no skips.
  • In a separate CPU arithmetic check, rounding 0.4999999701976776 + 0.5 to binary32 gave exactly 1.0. That matches the below-half values crossing the threshold with floor(abs(s) + 0.5).

Not tested

Retail smoke, the full workspace suite, and other GPUs.

AI use

OpenAI Codex (GPT-6.2 Sol) adapted and ran the test, verified the logs, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7150327516 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7150327516). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T02:06:36Z. --- Independent AMD check on `1b617e31db8414bd1ae0d23d4376f4108a6429bd`. The existing regression test passed through both backends. The closest representable inputs with magnitude below 0.5 exposed a new boundary failure on both. **Tested** - AMD Radeon(TM) Graphics (driver 32.0.21042.62, native wave64), Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized test profile. - Ran `cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away -- --exact --nocapture --test-threads=1` with `XCL_ADAPTER=AMD Radeon`, `XCL_REQUIRE_GPU=wave64` and `XCL_DIRECT_DXIL=0` and `1` in separate runs. The original test passed on the head (1 passed, 0 failed per backend). - In a temporary copy of the fixture, I used `f32::from_bits(0x3eff_ffff)` and `f32::from_bits(0xbeff_ffff)` as the last two W inputs and printed all readbacks before asserting. Both should store W = 0 (packed `0x28120100`). The head stored W = +1 and −1 (packed `0x68120100` and `0xe8120100`) on both backends. On the exact parent `c00f3fcfce59bb4dfd3a1f96bbc84c60e765b538`, both of these inputs stored W = 0, and the exact ±0.5 cases also stored W = 0. The adapted test failed once per backend on each revision at the respective boundary. All runs had 0 ignored and no skips. - In a separate CPU arithmetic check, rounding `0.4999999701976776 + 0.5` to binary32 gave exactly `1.0`. That matches the below-half values crossing the threshold with `floor(abs(s) + 0.5)`. **Not tested** Retail smoke, the full workspace suite, and other GPUs. **AI use** OpenAI Codex (GPT-6.2 Sol) adapted and ran the test, verified the logs, and wrote this report.
JoaoPauluu commented 2026-11-25 03:05:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T02:20:26Z.


A run with vkd3d-proton as the host D3D12 (DXIL → SPIR-V through dxil-spirv, then the NVIDIA Vulkan driver), so the DXIL goes through a different compiler than the native-Windows runs here: this PR's 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. 1e29ff4 as it is (merge base with main 5ce558f), no uncommitted changes. The lib test binary runs under Wine, one test per process.
    • gpu_buffer_store_two_bit_snorm_rounds_half_away: 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:7150597337 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7150597337). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T02:20:26Z. --- A run with vkd3d-proton as the host D3D12 (DXIL → SPIR-V through dxil-spirv, then the NVIDIA Vulkan driver), so the DXIL goes through a different compiler than the native-Windows runs here: this PR's 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`. `1e29ff4` as it is (merge base with `main` `5ce558f`), no uncommitted changes. The lib test binary runs under Wine, one test per process. - `gpu_buffer_store_two_bit_snorm_rounds_half_away`: 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.
JJAutoCompare commented 2026-11-25 03:05:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T02:22:18Z.


Arc A770 verification of PR #2051 at 1e29ff44c7fa0afea70f24ff4c46c0e3311817c5.

Tested

  • Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974, Rust 1.100.0 x86_64-pc-windows-msvc, DXC and DXIL 1.9.2609.5.
  • From the clean checkout at that SHA, prebuilt outside the Arc mutex with cargo test --locked -p xcl --lib --no-run --message-format=json. Used the unoptimized test profile, two Cargo jobs, CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0, CARGO_PROFILE_TEST_DEBUG=0, and CARGO_TARGET_DIR=L:/XclTooling/pr1512-tiling-edges-fddfa267/target. Both TEMP and TMP pointed to L:/XclTooling/pr2051.
  • Ran the Cargo-emitted binary once per backend with XCL_ADAPTER=A770 and XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. The working directory was crates/xcl. Each backend ran in a separate child PowerShell with -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned to load the local mutex wrapper.
$env:PR2051_TEST_EXE = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
    & $env:PR2051_TEST_EXE 'gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away' --exact --nocapture --test-threads=1
}
Backend XCL_DIRECT_DXIL Passed Failed Ignored Skipped Filtered out
HLSL + DXC 0 1 0 0 0 1119
Direct DXIL 1 1 0 0 0 1119

Both runs acquired and released the Arc lock. Readback assertions matched these 32-bit words on both backends, with X = 0.5, Y = 0.25 and Z = −0.75.

W input Packed word
+0.5 0x68120100
−0.5 0xE8120100
+0.49 0x28120100
−0.75 0xE8120100
+1.0 0x68120100
−1.0 0xE8120100
+0.4999999 0x28120100
+0.5000001 0x68120100

Not tested

The immediate binary32 neighbors of the half ties, including 0x3effffff and 0xbeffffff from the earlier AMD report, are outside this fixture. This run also leaves other GPUs, the full workspace suite, and retail smoke untested. Earlier AMD report

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7150636747 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7150636747). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T02:22:18Z. --- Arc A770 verification of PR #2051 at `1e29ff44c7fa0afea70f24ff4c46c0e3311817c5`. **Tested** - Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974, Rust 1.100.0 x86_64-pc-windows-msvc, DXC and DXIL 1.9.2609.5. - From the clean checkout at that SHA, prebuilt outside the Arc mutex with `cargo test --locked -p xcl --lib --no-run --message-format=json`. Used the unoptimized test profile, two Cargo jobs, `CARGO_INCREMENTAL=0`, `CARGO_PROFILE_DEV_DEBUG=0`, `CARGO_PROFILE_TEST_DEBUG=0`, and `CARGO_TARGET_DIR=L:/XclTooling/pr1512-tiling-edges-fddfa267/target`. Both `TEMP` and `TMP` pointed to `L:/XclTooling/pr2051`. - Ran the Cargo-emitted binary once per backend with `XCL_ADAPTER=A770` and `XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64`. The working directory was `crates/xcl`. Each backend ran in a separate child PowerShell with `-NoProfile -NonInteractive -ExecutionPolicy RemoteSigned` to load the local mutex wrapper. ```powershell $env:PR2051_TEST_EXE = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & $env:PR2051_TEST_EXE 'gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away' --exact --nocapture --test-threads=1 } ``` | Backend | `XCL_DIRECT_DXIL` | Passed | Failed | Ignored | Skipped | Filtered out | | --- | --- | ---: | ---: | ---: | ---: | ---: | | HLSL + DXC | `0` | 1 | 0 | 0 | 0 | 1119 | | Direct DXIL | `1` | 1 | 0 | 0 | 0 | 1119 | Both runs acquired and released the Arc lock. Readback assertions matched these 32-bit words on both backends, with X = 0.5, Y = 0.25 and Z = −0.75. | W input | Packed word | | --- | --- | | +0.5 | `0x68120100` | | −0.5 | `0xE8120100` | | +0.49 | `0x28120100` | | −0.75 | `0xE8120100` | | +1.0 | `0x68120100` | | −1.0 | `0xE8120100` | | +0.4999999 | `0x28120100` | | +0.5000001 | `0x68120100` | **Not tested** The immediate binary32 neighbors of the half ties, including `0x3effffff` and `0xbeffffff` from the earlier AMD report, are outside this fixture. This run also leaves other GPUs, the full workspace suite, and retail smoke untested. [Earlier AMD report](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7150327516) **AI use** T3 Code / Codex (gpt-6.2-sol) ran the checked-in test, verified the logs, and wrote this report.
DavidM1911 commented 2026-11-25 05:08:24 +00:00 (Migrated from github.com)

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


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:7153080772 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7153080772). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:41:48Z. --- 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!
upipibi commented 2026-11-25 07:05:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T06:26:16Z.


Thanks nnonno91, that's a real bug. In f32, 0.49999997 + 0.5 rounds to exactly 1.0, so floor(|x| + 0.5) stored ±1 for 0x3effffff / 0xbeffffff. The 2-bit magnitude is at most 1, so 98e83c0 compares it with 0.5 directly on both paths; exactly ±0.5 still stores ±1. The test now also covers 0x3effffff and 0xbeffffff (W = 0) and 0x3f000000 and 0xbf000000 (W = ±1). On an RTX 3070 (616.56), the extended test fails at 1e29ff4 and passes after the fix with XCL_DIRECT_DXIL=0 and 1. The gpu_ suite passes on both paths, apart from gpu_image_get_resinfo_1d_array with direct DXIL, which also fails on main.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ivall/xcl:comment:7154789592 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7154789592). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T06:26:16Z. --- Thanks nnonno91, that's a real bug. In f32, 0.49999997 + 0.5 rounds to exactly 1.0, so `floor(|x| + 0.5)` stored ±1 for `0x3effffff` / `0xbeffffff`. The 2-bit magnitude is at most 1, so `98e83c0` compares it with 0.5 directly on both paths; exactly ±0.5 still stores ±1. The test now also covers `0x3effffff` and `0xbeffffff` (W = 0) and `0x3f000000` and `0xbf000000` (W = ±1). On an RTX 3070 (616.56), the extended test fails at `1e29ff4` and passes after the fix with `XCL_DIRECT_DXIL=0` and `1`. The `gpu_` suite passes on both paths, apart from `gpu_image_get_resinfo_1d_array` with direct DXIL, which also fails on `main`. AI-assisted (Claude Code).
Toons29 commented 2026-11-25 10:10:37 +00:00 (Migrated from github.com)

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


Regression run of 98e83c04 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: 98e83c045293843b6bc0695f053cb6bcfdff479d
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1629 (PresentX 1629)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14629 MB

Against the limits in CONTRIBUTING.md: 104 % 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:7158770547 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7158770547). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T09:45:57Z. --- Regression run of `98e83c04` 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: 98e83c045293843b6bc0695f053cb6bcfdff479d gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1629 (PresentX 1629) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14629 MB ``` Against the limits in CONTRIBUTING.md: 104 % 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:25 +00:00 (Migrated from github.com)

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


98e83c0 now conflicts in crates/xcl/src/gpu/recomp/tests.rs after #2054 merged on main.

Please rebase onto main; once rebased and CI is green, an exact-head AMD GPU test rerun (the earlier AMD run predated 98e83c0) will unblock merge.

<!-- greyfinch-sync:ivall/xcl:comment:7160168047 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7160168047). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:47:03Z. --- `98e83c0` now conflicts in `crates/xcl/src/gpu/recomp/tests.rs` after #2054 merged on `main`. Please rebase onto `main`; once rebased and CI is green, an exact-head AMD GPU test rerun (the earlier AMD run predated `98e83c0`) will unblock merge.
oni-swr commented 2026-11-25 13:05:05 +00:00 (Migrated from github.com)

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


AMD synthetic GPU run of d25e85f1b183f8290dd1c9b6f5f9ecf79805873d (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 build --workspace, then cargo test -p xcl --lib gpu_buffer_store_two_bit_snorm -- --nocapture: gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away ... ok (1 passed, 0 failed, 0 ignored).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1242 passed, 2 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 2 failures are not in this PR's area:
    • 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.
    • gpu::recomp::tests::gpu_image_get_resinfo_past_last_level (2D mip 0x1: [4, 2, 0, 1], RDNA2 gives [0, 0, 0, 1]). This head does not contain main's commit ea088a5 ("image_get_resinfo past the last level gives 0 sizes on AMD too"), so it is probably fixed by rebasing. I did not run the merged tree.

Not tested

  • Retail title / scripts/smoke.ps1 regression run, NVIDIA, Intel, Wine/vkd3d.
  • The PR merged with current main.

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

<!-- greyfinch-sync:ivall/xcl:comment:7162284499 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7162284499). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T12:22:24Z. --- AMD synthetic GPU run of `d25e85f1b183f8290dd1c9b6f5f9ecf79805873d` (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 build --workspace`, then `cargo test -p xcl --lib gpu_buffer_store_two_bit_snorm -- --nocapture`: `gpu::recomp::tests::gpu_buffer_store_two_bit_snorm_rounds_half_away ... ok` (1 passed, 0 failed, 0 ignored). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1242 passed, 2 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 2 failures are not in this PR's area: - `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. - `gpu::recomp::tests::gpu_image_get_resinfo_past_last_level` (`2D mip 0x1: [4, 2, 0, 1], RDNA2 gives [0, 0, 0, 1]`). This head does not contain `main`'s commit ea088a5 ("image_get_resinfo past the last level gives 0 sizes on AMD too"), so it is probably fixed by rebasing. I did not run the merged tree. **Not tested** - Retail title / `scripts/smoke.ps1` regression run, NVIDIA, Intel, Wine/vkd3d. - The PR merged with current `main`. **AI use** Claude Code, Claude Sonnet 5.5 ran the tests, checked the diff, and wrote this report.
thehollowedone commented 2026-11-25 13:05:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T12:49:52Z.


Here is the requested scripts/smoke.ps1 pair from clean release builds of main 1a0bbe3 and PR head d25e85f.

RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC. The 60 s offline runs used separate copies of the same starting profile and DXIL seed, no input, PSO preload off, a 16 GiB job commit cap, and a 12 GiB system commit floor.

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14333 MB
xcl-smoke v1
commit: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1644 (PresentX 1644)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14348 MB

On the exact head, cargo test --offline --locked -p xcl --lib gpu_buffer_store_two_bit_snorm -- --nocapture --test-threads=1 reported 1 passed, 0 failed, 0 ignored, and no runtime skip notices in each of XCL_DIRECT_DXIL=0 and =1. The fixture checks the two-bit SNORM component at both half-way values and immediately below them.

The smoke pair covers startup. AMD hardware, Wine, and world load were outside this test.

AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162916485 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7162916485). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T12:49:52Z. --- Here is the requested `scripts/smoke.ps1` pair from clean release builds of [main 1a0bbe3](https://github.com/xcl-dev/xcl/commit/1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6) and [PR head d25e85f](https://github.com/xcl-dev/xcl/commit/d25e85f1b183f8290dd1c9b6f5f9ecf79805873d). RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC. The 60 s offline runs used separate copies of the same starting profile and DXIL seed, no input, PSO preload off, a 16 GiB job commit cap, and a 12 GiB system commit floor. ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1638 (PresentX 1638) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14333 MB ``` ``` xcl-smoke v1 commit: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1644 (PresentX 1644) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14348 MB ``` On the exact head, `cargo test --offline --locked -p xcl --lib gpu_buffer_store_two_bit_snorm -- --nocapture --test-threads=1` reported 1 passed, 0 failed, 0 ignored, and no runtime skip notices in each of `XCL_DIRECT_DXIL=0` and `=1`. The fixture checks the two-bit SNORM component at both half-way values and immediately below them. The smoke pair covers startup. AMD hardware, Wine, and world load were outside this test. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
DavidM1911 commented 2026-11-26 08:04:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:13:52Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7185234675 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7185234675). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:13:52Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Decodere commented 2026-11-27 04:45:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T04:45:25Z.


Independent desktop NVIDIA verification of PR #2051 at head d25e85f1b183f8290dd1c9b6f5f9ecf79805873d (2 commits: fc5a8efabeaccb628dc5f35cee006a1f6f88e858 -> d25e85f1b183f8290dd1c9b6f5f9ecf79805873d; exact parent & merge-base: 426a5a745db4d5e4b037449ede0b70cb342f5192, 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 release tests & build (d25e85f1)

Command Result
cargo test --release -p xcl --lib gpu_buffer_store_two_bit_snorm_rounds_half_away -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1200 filtered out × 3 (0.27s, 0.22s, 0.23s, 0 skipped; live RTX 4060 execution)
cargo test --release -p xcl --lib gpu_fmt_encode -- --nocapture (3 consecutive runs) 2 passed; 0 failed; 0 ignored; 1199 filtered out × 3 (1.44s, 0.61s, 0.61s, 0 skipped; live RTX 4060 execution of gpu_fmt_encode_int_sat_and_f16_rtz and gpu_fmt_encode_direct_dxil_int_sat_and_f16_rtz)
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) 147 passed; 0 failed; 3 ignored; 1051 filtered out × 3 (3.15s, 3.11s, 3.22s, 0 skipped)
cargo build --release -p xcl Clean build (1m 04s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (426a5a745db4d5e4b037449ede0b70cb342f5192, same machine):

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

PR #2051 (d25e85f1b183f8290dd1c9b6f5f9ecf79805873d):

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

Runtime log observations (xcl.log)

  • 9204 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 449 hits, 11 misses, 11 compilations, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19543 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14443 MB committed by the process; video memory 6115 MB local, 4653 MB non-local.

Limits of coverage

  • Both HLSL and direct-DXIL 2-bit SNORM store rounding (half-away-from-zero and < 0.5 -> 0) were directly verified on the live RTX 4060 via gpu_buffer_store_two_bit_snorm_rounds_half_away (3/3), gpu_fmt_encode (2/2 × 3), and gpu::dxil:: (147/147 × 3).
  • The 60 s retail smoke confirms zero runtime or shader-compilation regression (11 recompiled shaders, 0 failures; single-run frame/commit delta vs. parent reflects normal startup variance, not this PR); visual pixel-diff inspection of any retail 2_10_10_10_SNORM output was not performed.

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

<!-- greyfinch-sync:ivall/xcl:comment:7210069361 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7210069361). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T04:45:25Z. --- Independent desktop NVIDIA verification of **PR #2051** at head `d25e85f1b183f8290dd1c9b6f5f9ecf79805873d` (`2` commits: `fc5a8efabeaccb628dc5f35cee006a1f6f88e858` -> `d25e85f1b183f8290dd1c9b6f5f9ecf79805873d`; exact parent & merge-base: `426a5a745db4d5e4b037449ede0b70cb342f5192`, 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 release tests & build (`d25e85f1`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib gpu_buffer_store_two_bit_snorm_rounds_half_away -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1200 filtered out` × 3 (`0.27s`, `0.22s`, `0.23s`, `0` skipped; live RTX 4060 execution) | | `cargo test --release -p xcl --lib gpu_fmt_encode -- --nocapture` (3 consecutive runs) | `2 passed; 0 failed; 0 ignored; 1199 filtered out` × 3 (`1.44s`, `0.61s`, `0.61s`, `0` skipped; live RTX 4060 execution of `gpu_fmt_encode_int_sat_and_f16_rtz` and `gpu_fmt_encode_direct_dxil_int_sat_and_f16_rtz`) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4` (3 consecutive runs) | `147 passed; 0 failed; 3 ignored; 1051 filtered out` × 3 (`3.15s`, `3.11s`, `3.22s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 04s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`426a5a745db4d5e4b037449ede0b70cb342f5192`, same machine): ``` xcl-smoke v1 commit: 426a5a745db4d5e4b037449ede0b70cb342f5192 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1591 (PresentX 1591) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14477 MB ``` PR #2051 (`d25e85f1b183f8290dd1c9b6f5f9ecf79805873d`): ``` xcl-smoke v1 commit: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1592 (PresentX 1593) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14443 MB ``` ### Runtime log observations (`xcl.log`) - `9204` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `449` hits, `11` misses, `11` compilations, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19543 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14443 MB committed by the process; video memory 6115 MB local, 4653 MB non-local`. ### Limits of coverage - Both HLSL and direct-DXIL 2-bit SNORM store rounding (half-away-from-zero and `< 0.5` -> `0`) were directly verified on the live RTX 4060 via `gpu_buffer_store_two_bit_snorm_rounds_half_away` (`3/3`), `gpu_fmt_encode` (`2/2` × 3), and `gpu::dxil::` (`147/147` × 3). - The 60 s retail smoke confirms zero runtime or shader-compilation regression (`11` recompiled shaders, `0` failures; single-run frame/commit delta vs. parent reflects normal startup variance, not this PR); visual pixel-diff inspection of any retail `2_10_10_10_SNORM` output was not performed. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-28 10:53:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T10:53:52Z.


merge-check
base: e429936c10
head: d25e85f1b1
merge: clean
build: cargo build --offline --locked -j 4 --workspace -> ok
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> 2126 passed, 10 failed, 48 ignored; 25 GPU skip notices. Failing: dispatch_chain_oversized_loop_matches_whole, dispatch_chain_wave32_live_loops, dispatch_chain_wave64_live_loops_and_exchange, gpu_heap_flat_reads_match_guarded_and_root_output, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, test_title_draws_with_a_root_signature_under_the_debug_layer, test_title_runs_and_game_folder_is_untouched, test_title_runs_under_the_debug_layer_with_dred. All ten fail by the same names on the exact base (2125 passed, 10 failed, 48 ignored; 25 skip notices).
review: none. Read the complete three-file diff in the merged tree. The 2-bit SNORM branch selects ±1 at and above the half threshold and zero immediately below it; other widths retain nearest-even rounding. The new packed-word regression passed on the RTX 3080 Ti through HLSL and direct DXIL (1 passed, 0 failed, 0 ignored, 0 skips each).
performance: Adds comparisons and a select to SNORM store encoding; no CPU-side memory growth. Frame-time cost was not measured. The change affects shader execution only where this format-store path runs.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti driver 621.35, DXC 1.8.2502.11; Codex (GPT-6.2 Sol) reviewed the merged diff and ran the build and tests.

<!-- greyfinch-sync:ivall/xcl:comment:7238193101 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7238193101). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T10:53:52Z. --- merge-check base: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd head: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d merge: clean build: cargo build --offline --locked -j 4 --workspace -> ok tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> 2126 passed, 10 failed, 48 ignored; 25 GPU skip notices. Failing: dispatch_chain_oversized_loop_matches_whole, dispatch_chain_wave32_live_loops, dispatch_chain_wave64_live_loops_and_exchange, gpu_heap_flat_reads_match_guarded_and_root_output, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, test_title_draws_with_a_root_signature_under_the_debug_layer, test_title_runs_and_game_folder_is_untouched, test_title_runs_under_the_debug_layer_with_dred. All ten fail by the same names on the exact base (2125 passed, 10 failed, 48 ignored; 25 skip notices). review: none. Read the complete three-file diff in the merged tree. The 2-bit SNORM branch selects ±1 at and above the half threshold and zero immediately below it; other widths retain nearest-even rounding. The new packed-word regression passed on the RTX 3080 Ti through HLSL and direct DXIL (1 passed, 0 failed, 0 ignored, 0 skips each). performance: Adds comparisons and a select to SNORM store encoding; no CPU-side memory growth. Frame-time cost was not measured. The change affects shader execution only where this format-store path runs. verdict: safe to merge hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti driver 621.35, DXC 1.8.2502.11; Codex (GPT-6.2 Sol) reviewed the merged diff and ran the build and tests.
throny commented 2026-11-28 13:22:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:22:59Z.


merge-check claim
head: d25e85f1b1

<!-- greyfinch-sync:ivall/xcl:comment:7239896089 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7239896089). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:22:59Z. --- merge-check claim head: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d
throny commented 2026-11-28 13:38:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:38:32Z.


merge-check
base: e429936c
head: d25e85f1b1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored.
review: no blocker. For a 2-bit SNORM component the value is clamped to [-1, 1], magnitudes of 0.5 and above store plus or minus 1 (also past 1), anything below stores 0, NaN and negative zero store 0, and the value just under 0.5 stores 0; the HLSL path and the direct-DXIL path agree, and other widths still round to nearest even. The test's expected words check out by hand. Not verified here: that the hardware stores plus or minus 1 for exactly 0.5; the source is the sweep the PR cites, and there is an AMD run of this head in the thread.
performance: a few selects per SNORM component store. emit.rs is 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:7240080274 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2051#issuecomment-7240080274). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:38:32Z. --- merge-check base: e429936c head: d25e85f1b183f8290dd1c9b6f5f9ecf79805873d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored. review: no blocker. For a 2-bit SNORM component the value is clamped to [-1, 1], magnitudes of 0.5 and above store plus or minus 1 (also past 1), anything below stores 0, NaN and negative zero store 0, and the value just under 0.5 stores 0; the HLSL path and the direct-DXIL path agree, and other widths still round to nearest even. The test's expected words check out by hand. Not verified here: that the hardware stores plus or minus 1 for exactly 0.5; the source is the sweep the PR cites, and there is an AMD run of this head in the thread. performance: a few selects per SNORM component store. emit.rs is 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).
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!2041
No description provided.