Recompiler: write all bytes of unaligned multi-dword formatted buffer stores #309

Open
Michael-Glaser wants to merge 1 commit from upstream-pr/312 into main
Michael-Glaser commented 2026-11-23 23:07:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Michael-Glaser on 2026-11-23T23:07:13Z.


st_bytes in PRELUDE_MEM only wrote r.x on its unaligned / non-multiple-of-4 fallback path, dropping bytes 4..15 of 8-, 12-, and 16-byte formatted buffer stores.

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs: loop over all 4 dwords of r in st_bytes's fallback path.
  • crates/xcl/src/gpu/recomp/tests.rs: HLSL emission test + GPU test for 8-, 12-, and 16-byte unaligned formatted stores.

Tested

  • Cross-checked on macOS (aarch64-apple-darwin, Rust 1.100.0): cargo check --offline --target x86_64-pc-windows-msvc --workspace --tests (0 errors, 0 new warnings).
  • Community Windows runs by @regiumlepidi (RTX 5070 Ti + RDNA2 iGPU, 668 passed, 0 failed, 41 ignored) and @nullmarsh (RX 9060 XT RDNA4, 668 passed, 0 failed, 41 ignored, 0 SKIPPED GPU tests), both confirming the new tests fail without the emit.rs fix; plus @DavidM1911 (RTX 3060 Ti, merged with main).

Regression run
Retail 60 s smoke run contributed by @CuteBooty (RTX 3070 8 GB, NVIDIA 621.24, Ryzen 5 3600, Windows 11 Pro 26200, Rust 1.100.0 MSVC, release build):

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 3070
title: game
seconds: 60
exit: 0x0
frames shown: 1446 (PresentX 1446)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19285 MB

this PR:

xcl-smoke v1
commit: b8424b2cf36680f1b83579da9fbcdc96aa17befa
gpu: NVIDIA GeForce RTX 3070
title: game
seconds: 60
exit: 0x0
frames shown: 1482 (PresentX 1482)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19370 MB

Not tested

  • Not built or executed locally on Windows; the 60 s retail smoke run does not confirm whether that title hits unaligned multi-dword formatted buffer stores; Intel GPUs not tested.

AI use

  • Antigravity with Gemini 4 Neon (audit, fix, tests, description); community smoke run by @CuteBooty with Claude Code (Claude Opus 5.5).
<!-- greyfinch-sync:ivall/xcl:issue:5462806471 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312). Originally posted by [Michael-Glaser](https://github.com/Michael-Glaser) on 2026-11-23T23:07:13Z. --- `st_bytes` in `PRELUDE_MEM` only wrote `r.x` on its unaligned / non-multiple-of-4 fallback path, dropping bytes 4..15 of 8-, 12-, and 16-byte formatted buffer stores. **What is in it** - `crates/xcl/src/gpu/recomp/emit.rs`: loop over all 4 dwords of `r` in `st_bytes`'s fallback path. - `crates/xcl/src/gpu/recomp/tests.rs`: HLSL emission test + GPU test for 8-, 12-, and 16-byte unaligned formatted stores. **Tested** - Cross-checked on macOS (`aarch64-apple-darwin`, Rust 1.100.0): `cargo check --offline --target x86_64-pc-windows-msvc --workspace --tests` (0 errors, 0 new warnings). - Community Windows runs by `@regiumlepidi` (RTX 5070 Ti + RDNA2 iGPU, 668 passed, 0 failed, 41 ignored) and `@nullmarsh` (RX 9060 XT RDNA4, 668 passed, 0 failed, 41 ignored, 0 SKIPPED GPU tests), both confirming the new tests fail without the `emit.rs` fix; plus `@DavidM1911` (RTX 3060 Ti, merged with `main`). **Regression run** Retail 60 s smoke run contributed by `@CuteBooty` (RTX 3070 8 GB, NVIDIA 621.24, Ryzen 5 3600, Windows 11 Pro 26200, Rust 1.100.0 MSVC, release build): main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 3070 title: game seconds: 60 exit: 0x0 frames shown: 1446 (PresentX 1446) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19285 MB ``` this PR: ``` xcl-smoke v1 commit: b8424b2cf36680f1b83579da9fbcdc96aa17befa gpu: NVIDIA GeForce RTX 3070 title: game seconds: 60 exit: 0x0 frames shown: 1482 (PresentX 1482) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19370 MB ``` **Not tested** - Not built or executed locally on Windows; the 60 s retail smoke run does not confirm whether that title hits unaligned multi-dword formatted buffer stores; Intel GPUs not tested. **AI use** - Antigravity with Gemini 4 Neon (audit, fix, tests, description); community smoke run by `@CuteBooty` with Claude Code (Claude Opus 5.5).
regiumlepidi commented 2026-11-24 07:04:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by regiumlepidi on 2026-11-23T23:45:45Z.


A Windows run for this draft, since the description has none yet: d9d6fe0 merged onto current main db1ddb2 (clean merge): builds and passes on NVIDIA and AMD, and the new tests catch the bug.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (32-lane waves), driver 617.42 (32.0.16.1742), and AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU, RDNA2, 64-lane waves), driver 32.0.21030.2001, selected with XCL_ADAPTER=radeon
  • Ryzen 7 9800X3D, 48 GB, Windows 11 Pro 25H2, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100, debug
  • .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4), no XCL_SAMPLE_* set
Build RTX 5070 Ti RDNA2 iGPU
main db1ddb2 666 passed, 0 failed, 41 ignored 666 passed, 0 failed, 41 ignored
d9d6fe0 on db1ddb2 668 passed, 0 failed, 41 ignored 668 passed, 0 failed, 41 ignored

GPU tests skipped: the usual 2 (no wave64) on NVIDIA, none on the iGPU.

The two new tests with this PR's tests.rs but main's emit.rs: both fail on both adapters, e.g. gpu_unaligned_multi_dword_format_stores: store of 8 bytes at 0x100+1, left: [170, 68, 51, 34, 17, 170, 170, …], right: [170, 68, 51, 34, 17, 136, 119, 102, 85, 170, …] (the second dword never written). With this PR's emit.rs both pass on both adapters.

Not tested

  • scripts/smoke.ps1 on a real title (I have none).
  • RDNA3 / RDNA4, Intel.

AI use: Claude Code with Claude Opus 5.5 ran the build and tests and wrote this comment; the numbers come from those runs.

<!-- greyfinch-sync:ivall/xcl:comment:7117335236 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/312#issuecomment-7117335236). Originally posted by [regiumlepidi](https://github.com/regiumlepidi) on 2026-11-23T23:45:45Z. --- A Windows run for this draft, since the description has none yet: `d9d6fe0` merged onto current `main` `db1ddb2` (clean merge): **builds and passes on NVIDIA and AMD**, and the new tests catch the bug. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (32-lane waves), driver 617.42 (32.0.16.1742), and AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU, RDNA2, 64-lane waves), driver 32.0.21030.2001, selected with `XCL_ADAPTER=radeon` - Ryzen 7 9800X3D, 48 GB, Windows 11 Pro 25H2, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100, debug - `.\scripts\test.ps1` (`cargo test --workspace -- --test-threads=4`), no `XCL_SAMPLE_*` set | Build | RTX 5070 Ti | RDNA2 iGPU | |---|---|---| | `main` `db1ddb2` | 666 passed, 0 failed, 41 ignored | 666 passed, 0 failed, 41 ignored | | `d9d6fe0` on `db1ddb2` | 668 passed, 0 failed, 41 ignored | 668 passed, 0 failed, 41 ignored | GPU tests skipped: the usual 2 (`no wave64`) on NVIDIA, none on the iGPU. The two new tests with this PR's `tests.rs` but `main`'s `emit.rs`: both fail on both adapters, e.g. `gpu_unaligned_multi_dword_format_stores`: `store of 8 bytes at 0x100+1`, `left: [170, 68, 51, 34, 17, 170, 170, …]`, `right: [170, 68, 51, 34, 17, 136, 119, 102, 85, 170, …]` (the second dword never written). With this PR's `emit.rs` both pass on both adapters. **Not tested** - `scripts/smoke.ps1` on a real title (I have none). - RDNA3 / RDNA4, Intel. AI use: Claude Code with Claude Opus 5.5 ran the build and tests and wrote this comment; the numbers come from those runs.
nullmarsh commented 2026-11-24 07:04:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nullmarsh on 2026-11-23T23:48:40Z.


Tested d9d6fe0 merged onto main db1ddb2 (clean merge) on AMD RDNA4: pass, and both new tests fail without the emit.rs change. This covers the Windows build and GPU run listed under "Not tested".

Tested

  • AMD Radeon RX 9060 XT (RDNA4), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0; DXC 1.9.2602.17 (SDK 10.0.26100); debug build.
  • .\scripts\test.ps1: 668 passed, 0 failed, 41 ignored; no SKIPPED GPU tests on this adapter.
  • XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --lib unaligned: st_bytes_writes_every_dword_of_unaligned_stores and gpu_unaligned_multi_dword_format_stores pass.
  • Negative control: the merged tree with only emit.rs put back to main. Both tests fail. The GPU one fails at its first case, store of 8 bytes at 0x100+1: bytes 1..4 hold r.x and bytes 5..8 stay 0xAA (expected 88 77 66 55). (The PR's own tests.rs, from its base 4017f8f, doesn't compile on current main, so the control uses the merged tree.)

Not tested

  • No XCL_SAMPLE_* set and no retail title, so no smoke.ps1 regression run; NVIDIA.

AI use

  • Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7117388278 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/312#issuecomment-7117388278). Originally posted by [nullmarsh](https://github.com/nullmarsh) on 2026-11-23T23:48:40Z. --- Tested `d9d6fe0` merged onto `main` `db1ddb2` (clean merge) on AMD RDNA4: **pass**, and both new tests fail without the `emit.rs` change. This covers the Windows build and GPU run listed under "Not tested". **Tested** - AMD Radeon RX 9060 XT (RDNA4), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0; DXC 1.9.2602.17 (SDK 10.0.26100); debug build. - `.\scripts\test.ps1`: 668 passed, 0 failed, 41 ignored; no `SKIPPED` GPU tests on this adapter. - `XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --lib unaligned`: `st_bytes_writes_every_dword_of_unaligned_stores` and `gpu_unaligned_multi_dword_format_stores` pass. - Negative control: the merged tree with only `emit.rs` put back to `main`. Both tests fail. The GPU one fails at its first case, `store of 8 bytes at 0x100+1`: bytes 1..4 hold `r.x` and bytes 5..8 stay `0xAA` (expected `88 77 66 55`). (The PR's own `tests.rs`, from its base `4017f8f`, doesn't compile on current `main`, so the control uses the merged tree.) **Not tested** - No `XCL_SAMPLE_*` set and no retail title, so no `smoke.ps1` regression run; NVIDIA. **AI use** - Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
CuteBooty commented 2026-11-24 21:09:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CuteBooty on 2026-11-24T21:02:21Z.


Regression run on a retail title for b8424b2: pass (no device removal, no crash, frames and peak commit within the check's limits).

Tested

  • RTX 3070 8 GB (32-lane waves), NVIDIA 621.24; Ryzen 5 3600, 32 GB; Windows 11 Pro 26200; rustc 1.100.0 MSVC; release build.
  • scripts\smoke.ps1 -Game <folder> -Seconds 60, no input, on this PR's head as it is and on main 47efa2e, the commit it branches from, each from a clean checkout. Each build ran twice back to back; the blocks are the second runs. The main block is shared with my reports on other PRs of the same base.

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 3070
title: game
seconds: 60
exit: 0x0
frames shown: 1446 (PresentX 1446)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19285 MB

this PR:

xcl-smoke v1
commit: b8424b2cf36680f1b83579da9fbcdc96aa17befa
gpu: NVIDIA GeForce RTX 3070
title: game
seconds: 60
exit: 0x0
frames shown: 1482 (PresentX 1482)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19370 MB

Not tested

  • Whether the 60 s reach the code this PR changes, the world load, the test suite, current main merged in, AMD and Intel GPUs.

AI use

  • Claude Code (Claude Opus 5.5) made the runs with me present and wrote this from the script's output.
<!-- greyfinch-sync:ivall/xcl:comment:7144393006 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7144393006). Originally posted by [CuteBooty](https://github.com/CuteBooty) on 2026-11-24T21:02:21Z. --- Regression run on a retail title for `b8424b2`: **pass** (no device removal, no crash, frames and peak commit within the check's limits). **Tested** - RTX 3070 8 GB (32-lane waves), NVIDIA 621.24; Ryzen 5 3600, 32 GB; Windows 11 Pro 26200; rustc 1.100.0 MSVC; release build. - `scripts\smoke.ps1 -Game <folder> -Seconds 60`, no input, on this PR's head as it is and on `main` `47efa2e`, the commit it branches from, each from a clean checkout. Each build ran twice back to back; the blocks are the second runs. The `main` block is shared with my reports on other PRs of the same base. main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 3070 title: game seconds: 60 exit: 0x0 frames shown: 1446 (PresentX 1446) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19285 MB ``` this PR: ``` xcl-smoke v1 commit: b8424b2cf36680f1b83579da9fbcdc96aa17befa gpu: NVIDIA GeForce RTX 3070 title: game seconds: 60 exit: 0x0 frames shown: 1482 (PresentX 1482) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19370 MB ``` **Not tested** - Whether the 60 s reach the code this PR changes, the world load, the test suite, current `main` merged in, AMD and Intel GPUs. **AI use** - Claude Code (Claude Opus 5.5) made the runs with me present and wrote this from the script's output.
DavidM1911 commented 2026-11-25 15:07:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:43:36Z.


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:7165718856 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7165718856). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T14:43:36Z. --- 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!
Michael-Glaser commented 2026-11-27 12:01:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Michael-Glaser on 2026-11-27T12:01:12Z.


Thanks @CuteBooty, @regiumlepidi, @nullmarsh, and @DavidM1911! Added the verbatim xcl-smoke v1 regression blocks for b8424b2 and the Windows GPU test results into the PR description.

<!-- greyfinch-sync:ivall/xcl:comment:7217741725 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7217741725). Originally posted by [Michael-Glaser](https://github.com/Michael-Glaser) on 2026-11-27T12:01:12Z. --- Thanks @CuteBooty, @regiumlepidi, @nullmarsh, and @DavidM1911! Added the verbatim `xcl-smoke v1` regression blocks for `b8424b2` and the Windows GPU test results into the PR description.
futurepro62 commented 2026-11-27 17:56:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T17:56:52Z.


NVIDIA and AMD full-suite run, to go with the reports above by CuteBooty, since none of them covers AMD. Tested exact head b8424b2c (on its base 47efa2e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 743 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: st_bytes_writes_every_dword_of_unaligned_stores, gpu_unaligned_multi_dword_format_stores.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 743 passed, 0 failed, 41 ignored, no skips.
  • --skip leaves out tests that fail on main 6089122a too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7224955782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7224955782). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T17:56:52Z. --- NVIDIA and AMD full-suite run, to go with the reports above by CuteBooty, since none of them covers AMD. Tested exact head `b8424b2c` (on its base `47efa2e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **743 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `st_bytes_writes_every_dword_of_unaligned_stores`, `gpu_unaligned_multi_dword_format_stores`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **743 passed, 0 failed, 41 ignored**, no skips. - `--skip` leaves out tests that fail on main `6089122a` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
ClosetPie107 commented 2026-11-27 18:00:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T18:00:57Z.


Tested on AMD / Linux: b8424b2c (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194 plus a local patch dropping the lpVtbl checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, x86_64-pc-windows-gnu debug build, tests run under Wine)

The head as it is (not merged onto current main), with its base 47efa2ec the same session as the baseline.

Tests (XCL_REQUIRE_GPU=wave64)

  • cargo test -p xcl --lib -- unaligned --test-threads=1: 2 passed, 0 failed, 0 ignored (st_bytes_writes_every_dword_of_unaligned_stores, gpu_unaligned_multi_dword_format_stores).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with --skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole (the first loses the RADV device here, the other two run out of memory under Wine): lib 692 passed, 8 failed, 21 ignored; base 47efa2ec lib (same flags): 693 passed, 5 failed, 21 ignored. The 3 extra (placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory) fail under load here: run alone they passed 2 of 2 times on this head and on the base, and a second lib run gave 695 passed, 5 failed on this head, the same 5 as the base (693 passed, 5 failed). The other binaries fail the same 3 tests as on main here (e2e, pls_quota, predication_e2e).

Not tested

  • A retail title
  • Native Windows, NVIDIA / Intel

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7225027107 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7225027107). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T18:00:57Z. --- **Tested on AMD / Linux: `b8424b2c`** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194` plus a local patch dropping the `lpVtbl` checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, `x86_64-pc-windows-gnu` debug build, tests run under Wine) The head as it is (not merged onto current `main`), with its base `47efa2ec` the same session as the baseline. **Tests** (`XCL_REQUIRE_GPU=wave64`) - `cargo test -p xcl --lib -- unaligned --test-threads=1`: **2 passed, 0 failed**, 0 ignored (`st_bytes_writes_every_dword_of_unaligned_stores`, `gpu_unaligned_multi_dword_format_stores`). - `cargo test --workspace --no-fail-fast -- --test-threads=4` with `--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole` (the first loses the RADV device here, the other two run out of memory under Wine): lib 692 passed, 8 failed, 21 ignored; base `47efa2ec` lib (same flags): 693 passed, 5 failed, 21 ignored. The 3 extra (`placed_title_textures_share_vram_and_preserve_pixels`, `transitions_apply_when_their_list_is_submitted`, `d32s8_targets_take_their_own_size_of_video_memory`) fail under load here: run alone they passed 2 of 2 times on this head and on the base, and a second lib run gave 695 passed, 5 failed on this head, the same 5 as the base (693 passed, 5 failed). The other binaries fail the same 3 tests as on `main` here (`e2e`, `pls_quota`, `predication_e2e`). **Not tested** - A retail title - Native Windows, NVIDIA / Intel **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
Foniass commented 2026-12-01 03:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:06:46Z.


Triage (#1607) – head b8424b2

No open or merged PR makes the same change: st_bytes on main still writes only r.x for unaligned or non-multiple-of-4 stores, so 8/12/16-byte format stores at an unaligned address lose every dword after the first. The loop over the dwords (with the spill of each into the next) is correct for the partial last dword too, and the GPU test checks all three sizes at offsets 1-3.
The PR conflicts with main and needs a rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299336711 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/312#issuecomment-7299336711). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:06:46Z. --- **Triage (#1607)** – head b8424b2 No open or merged PR makes the same change: `st_bytes` on main still writes only `r.x` for unaligned or non-multiple-of-4 stores, so 8/12/16-byte format stores at an unaligned address lose every dword after the first. The loop over the dwords (with the spill of each into the next) is correct for the partial last dword too, and the GPU test checks all three sizes at offsets 1-3. The PR conflicts with main and needs a rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/312'
git switch 'upstream-pr/312'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/312'
git switch 'upstream-pr/312'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/312'
git switch 'main'
git merge --squash 'upstream-pr/312'
git switch 'main'
git merge --ff-only 'upstream-pr/312'
git switch 'main'
git merge 'upstream-pr/312'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!309
No description provided.