Recompiler: sign-extend D16 IMAGE_STORE lanes for SINT textures #1185

Merged
b3IKK merged 1 commit from upstream-pr/1194 into main 2026-11-30 18:43:27 +00:00
b3IKK commented 2026-11-24 13:04:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T13:04:38Z.


IMAGE_STORE with D16 = 1 passed zero-extended 16-bit halves for both UINT (t_cls == 1) and SINT (t_cls == 2) UAVs, turning negative i16 values such as -1 (0xFFFF) into +65535 and clamping them to +32767 when written to RWTexture<int4>.

This sign-extends each 16-bit half when t_cls == 2u, keeping f16tof32 for float formats and zero-extension for UINT formats.

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs: sign-extend 16-bit halves in D16 IMAGE_STORE when t_cls == 2u (SINT).
  • crates/xcl/src/gpu/recomp/tests.rs: add GPU test gpu_image_store_d16_sign_extends_sint testing D16 IMAGE_STORE to R16G16B16A16_SINT ([-1, -1234, 42, i16::MIN]) and R16G16B16A16_UINT control (verified failing on the GPU before the fix with [32767, 32767, 42, 32767]).

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 no wave64 — gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)
  • cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint: 1 passed, 0 failed (failed on the GPU before the fix, clamping negative values to 32767)

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1226 (PresentX 1226)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15341 MB

PR:

xcl-smoke v1
commit: 6aa7f058d96adb76a5985646703efff61a01bf5d
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1648 (PresentX 1649)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14950 MB

Not tested

  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: audited emit.rs, wrote the fix and GPU test, ran the test suite and scripts/smoke.ps1 regression runs, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5472688971 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T13:04:38Z. --- `IMAGE_STORE` with `D16 = 1` passed zero-extended 16-bit halves for both `UINT` (`t_cls == 1`) and `SINT` (`t_cls == 2`) UAVs, turning negative `i16` values such as `-1` (`0xFFFF`) into `+65535` and clamping them to `+32767` when written to `RWTexture<int4>`. This sign-extends each 16-bit half when `t_cls == 2u`, keeping `f16tof32` for float formats and zero-extension for `UINT` formats. **What is in it** - `crates/xcl/src/gpu/recomp/emit.rs`: sign-extend 16-bit halves in `D16` `IMAGE_STORE` when `t_cls == 2u` (`SINT`). - `crates/xcl/src/gpu/recomp/tests.rs`: add GPU test `gpu_image_store_d16_sign_extends_sint` testing `D16` `IMAGE_STORE` to `R16G16B16A16_SINT` (`[-1, -1234, 42, i16::MIN]`) and `R16G16B16A16_UINT` control (verified failing on the GPU before the fix with `[32767, 32767, 42, 32767]`). **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 `no wave64` — `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware`) - `cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint`: 1 passed, 0 failed (failed on the GPU before the fix, clamping negative values to `32767`) **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1226 (PresentX 1226) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15341 MB ``` PR: ``` xcl-smoke v1 commit: 6aa7f058d96adb76a5985646703efff61a01bf5d gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1648 (PresentX 1649) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14950 MB ``` **Not tested** - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: audited `emit.rs`, wrote the fix and GPU test, ran the test suite and `scripts/smoke.ps1` regression runs, and drafted this PR description.
DavidM1911 commented 2026-11-24 14:06:30 +00:00 (Migrated from github.com)

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


Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.

  • cargo test -p xcl --lib image_store: 1 passed, 0 failed — gpu_image_store_d16_sign_extends_sint on real hardware.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7132703650 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1194#issuecomment-7132703650). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T13:21:02Z. --- Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11. - `cargo test -p xcl --lib image_store`: **1 passed, 0 failed** — `gpu_image_store_d16_sign_extends_sint` on real hardware. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
bjarngard commented 2026-11-24 14:06:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T13:23:54Z.


Test report for head 6aa7f05 (AMD, native wave64)

Tested

  • AMD Radeon(TM) Graphics (Ryzen 9 9950X iGPU, RDNA2, native wave64), driver 32.0.21043.5001; Windows 11 build 26300; Rust 1.99.1 MSVC; DXC 1.9.2602.17; debug
  • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPED
  • With XCL_REQUIRE_GPU=wave64: gpu_image_store_d16_sign_extends_sint passed

Not tested: retail titles, RDNA3/RDNA4.

AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.

<!-- greyfinch-sync:ivall/xcl:comment:7132771898 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1194#issuecomment-7132771898). Originally posted by [bjarngard](https://github.com/bjarngard) on 2026-11-24T13:23:54Z. --- Test report for head `6aa7f05` (AMD, native wave64) **Tested** - AMD Radeon(TM) Graphics (Ryzen 9 9950X iGPU, RDNA2, native wave64), driver 32.0.21043.5001; Windows 11 build 26300; Rust 1.99.1 MSVC; DXC 1.9.2602.17; debug - `XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4`: 742 passed, 0 failed, 41 ignored, no SKIPPED - With `XCL_REQUIRE_GPU=wave64`: `gpu_image_store_d16_sign_extends_sint` passed **Not tested:** retail titles, RDNA3/RDNA4. **AI use:** the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
0xTehuti commented 2026-11-24 14:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by 0xTehuti on 2026-11-24T13:30:08Z.


Test report on NVIDIA GeForce RTX 2070 SUPER (Turing, wave32)

Commit tested
6aa7f058d96adb76a5985646703efff61a01bf5d (PR #1194 head)

Tested

  • Hardware:
    • GPU: NVIDIA GeForce RTX 2070 SUPER (Driver 595.79 / 32.0.15.9579, 7989 MiB VRAM)
    • CPU: Intel Core i7-10700K CPU @ 3.80GHz
    • OS: Windows 11 x64, Rust 1.99.0, DXC 1.8.2502.11
  • Command run and results:
    • cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint:
      1 passed; 0 failed; 0 ignored; finished in 0.31s
  • Findings:
    • Verified that IMAGE_STORE with D16 = 1 for t_cls == 2 (SINT) sign-extends 16-bit negative values ([-1, -1234, 42, i16::MIN]) correctly on Turing architecture.
    • Negative values are no longer zero-extended or clamped to 32767 in RWTexture<int4>.

Not tested

  • Retail title smoke run (retail game assets unset).
  • AMD native wave64 hardware.

AI use

  • Tool: Antigravity / T3 Code
  • Model: Gemini 3.8 Flash
  • Details: Checked out PR commit in isolated worktree, ran GPU test on real NVIDIA Turing hardware, and confirmed exact test pass.
<!-- greyfinch-sync:ivall/xcl:comment:7132920891 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1194#issuecomment-7132920891). Originally posted by [0xTehuti](https://github.com/0xTehuti) on 2026-11-24T13:30:08Z. --- ### Test report on NVIDIA GeForce RTX 2070 SUPER (Turing, wave32) **Commit tested** `6aa7f058d96adb76a5985646703efff61a01bf5d` (PR #1194 head) **Tested** - **Hardware:** - GPU: NVIDIA GeForce RTX 2070 SUPER (Driver 595.79 / 32.0.15.9579, 7989 MiB VRAM) - CPU: Intel Core i7-10700K CPU @ 3.80GHz - OS: Windows 11 x64, Rust 1.99.0, DXC 1.8.2502.11 - **Command run and results:** - `cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint`: `1 passed; 0 failed; 0 ignored; finished in 0.31s` - **Findings:** - Verified that `IMAGE_STORE` with `D16 = 1` for `t_cls == 2` (SINT) sign-extends 16-bit negative values (`[-1, -1234, 42, i16::MIN]`) correctly on Turing architecture. - Negative values are no longer zero-extended or clamped to `32767` in `RWTexture<int4>`. **Not tested** - Retail title smoke run (retail game assets unset). - AMD native wave64 hardware. **AI use** - Tool: Antigravity / T3 Code - Model: Gemini 3.8 Flash - Details: Checked out PR commit in isolated worktree, ran GPU test on real NVIDIA Turing hardware, and confirmed exact test pass.
JoaoPauluu commented 2026-11-24 14:06:47 +00:00 (Migrated from github.com)

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


A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.

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 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 6aa7f05 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact).
  • gpu::recomp::tests::gpu_image_store_d16_sign_extends_sint: ok, no SKIPPED.

Not tested

  • whether the new test fails without the fix on this stack; the rest of the suite on this head; native Windows; AMD / native wave64.

AI use

  • Claude Code (Claude Opus 5.5) built the head, 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:7133590580 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1194#issuecomment-7133590580). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T13:57:12Z. --- A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler. **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 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `6aa7f05` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine, one test per process (`--exact`). - `gpu::recomp::tests::gpu_image_store_d16_sign_extends_sint`: **ok**, no SKIPPED. **Not tested** - whether the new test fails without the fix on this stack; the rest of the suite on this head; native Windows; AMD / native wave64. **AI use** - Claude Code (Claude Opus 5.5) built the head, 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-26 22:49:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-26T22:49:25Z.


Tested

Independent run at clean PR head 6aa7f058d96adb76a5985646703efff61a01bf5d on Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 x64 26200.9974, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, debug test profile.

Prebuilt with cargo test --locked -p xcl --lib --no-run --message-format=json-render-diagnostics outside the GPU mutex. Ran <test-exe> gpu::recomp::tests::gpu_image_store_d16_sign_extends_sint --exact --nocapture --test-threads=1 under the Arc mutex with XCL_ADAPTER=A770.

1 passed, 0 failed, 0 ignored and 0 GPU skips (0.60 s) with XCL_DIRECT_DXIL=0. The 1×1 readbacks matched [-1, -1234, 42, -32768] for SINT and [65535, 64302, 42, 32768] for UINT.

Not tested

Direct DXIL, other formats and masks, a pre-fix baseline, the workspace suite and retail smoke.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the original verification and summarized the saved results.

<!-- greyfinch-sync:ivall/xcl:comment:7205015305 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7205015305). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-26T22:49:25Z. --- **Tested** Independent run at clean PR head `6aa7f058d96adb76a5985646703efff61a01bf5d` on Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 x64 26200.9974, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, debug test profile. Prebuilt with `cargo test --locked -p xcl --lib --no-run --message-format=json-render-diagnostics` outside the GPU mutex. Ran `<test-exe> gpu::recomp::tests::gpu_image_store_d16_sign_extends_sint --exact --nocapture --test-threads=1` under the Arc mutex with `XCL_ADAPTER=A770`. 1 passed, 0 failed, 0 ignored and 0 GPU skips (0.60 s) with `XCL_DIRECT_DXIL=0`. The 1×1 readbacks matched `[-1, -1234, 42, -32768]` for SINT and `[65535, 64302, 42, 32768]` for UINT. **Not tested** Direct DXIL, other formats and masks, a pre-fix baseline, the workspace suite and retail smoke. **AI use** T3 Code / Codex (gpt-6.2-sol) ran the original verification and summarized the saved results.
Decodere commented 2026-11-27 10:59:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T10:59:03Z.


Independent desktop NVIDIA verification of PR #1194 at head 6aa7f058d96adb76a5985646703efff61a01bf5d (1 commit; exact parent & merge-base: 47efa2ecea0a12934719ae69b81930cf02a4b1c3, 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 GPU tests & build (6aa7f058)

Command Result
cargo test --release -p xcl --lib gpu_image_store_d16_sign_extends_sint -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 719 filtered out × 3 (0.26s, 0.27s, 0.23s, 0 skipped; live RTX 4060 execution compiled with DXC 1.9.2609.5)
cargo build --release -p xcl Clean build (1m 07s, exit 0, 0 new warnings in emit.rs / tests.rs)

Paired quiet 60 s retail smoke (title: 29640639)

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

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

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

PR #1194 (6aa7f058d96adb76a5985646703efff61a01bf5d):

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

Limits of coverage

  • gpu_image_store_d16_sign_extends_sint compiled and executed 3/3 on desktop RTX 4060 (Wave32-only Ada; native Wave64 paths are not exercised), directly verifying D16 IMAGE_STORE lane sign-extension for SINT textures.
  • The 60 s retail smoke confirms steady 60 Hz runtime non-regression (0 device removals, 0 crashes); single-run frame/commit delta vs. the cached parent reflects normal startup variance.

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

<!-- greyfinch-sync:ivall/xcl:comment:7216540510 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7216540510). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T10:59:03Z. --- Independent desktop NVIDIA verification of **PR #1194** at head `6aa7f058d96adb76a5985646703efff61a01bf5d` (`1` commit; exact parent & merge-base: `47efa2ecea0a12934719ae69b81930cf02a4b1c3`, 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 GPU tests & build (`6aa7f058`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib gpu_image_store_d16_sign_extends_sint -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 719 filtered out` × 3 (`0.26s`, `0.27s`, `0.23s`, `0` skipped; live RTX 4060 execution compiled with DXC `1.9.2609.5`) | | `cargo build --release -p xcl` | Clean build (`1m 07s`, exit `0`, `0` new warnings in `emit.rs` / `tests.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) *(Note: `scripts/smoke.ps1` at `47efa2ec` predates `9683e7a6` and printed the local folder basename on `title:`; replaced below with the standard `9683e7a6` title hash `29640639`, with all measured fields verbatim.)* Exact parent & merge-base (`47efa2ecea0a12934719ae69b81930cf02a4b1c3`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1527 (PresentX 1527) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14723 MB ``` PR #1194 (`6aa7f058d96adb76a5985646703efff61a01bf5d`): ``` xcl-smoke v1 commit: 6aa7f058d96adb76a5985646703efff61a01bf5d gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1550 (PresentX 1550) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14709 MB ``` ### Limits of coverage - `gpu_image_store_d16_sign_extends_sint` compiled and executed `3/3` on desktop RTX 4060 (Wave32-only Ada; native Wave64 paths are not exercised), directly verifying D16 `IMAGE_STORE` lane sign-extension for SINT textures. - The 60 s retail smoke confirms steady 60 Hz runtime non-regression (`0` device removals, `0` crashes); single-run frame/commit delta vs. the cached parent reflects normal startup variance. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
brainhay5 commented 2026-11-30 07:08:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T07:08:14Z.


merge-check claim
head: 6aa7f058d9

<!-- greyfinch-sync:ivall/xcl:comment:7271395580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7271395580). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T07:08:14Z. --- merge-check claim head: 6aa7f058d96adb76a5985646703efff61a01bf5d
brainhay5 commented 2026-11-30 07:22:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T07:22:09Z.


merge-check
base: d52ff48caa
head: 6aa7f058d9
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines

failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.

<!-- greyfinch-sync:ivall/xcl:comment:7271654115 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7271654115). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T07:22:09Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 6aa7f058d96adb76a5985646703efff61a01bf5d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017 correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
BBareth commented 2026-11-30 09:46:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:46:43Z.


merge-check claim
head: 6aa7f058d9

<!-- greyfinch-sync:ivall/xcl:comment:7274672406 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7274672406). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T09:46:43Z. --- merge-check claim head: 6aa7f058d96adb76a5985646703efff61a01bf5d
BBareth commented 2026-11-30 09:53:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:53:25Z.


merge-check
base: 9dfbe3ea66
head: 6aa7f058d9
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test gpu_image_store_d16_sign_extends_sint passed (R16G16B16A16_SINT gets -1, -1234, 42, i16::MIN; the UINT control keeps the raw halves).
review: no blocking finding; two files, read in full. One expression in the HLSL emitter: a D16 image_store half is sign-extended when the texture's class is SINT, stays zero-extended for UINT and f16tof32 for float. This is the HLSL counterpart of #1920 (merged, direct DXIL); #3279 (closed) was a later PR for the same line. Not a duplicate of an open PR.
performance: none; one shift pair per stored component, only for SINT targets at run time. The generated HLSL of programs with a D16 image_store changes, so they are translated and compiled again once.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7274824248 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7274824248). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T09:53:25Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 6aa7f058d96adb76a5985646703efff61a01bf5d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test `gpu_image_store_d16_sign_extends_sint` passed (R16G16B16A16_SINT gets -1, -1234, 42, i16::MIN; the UINT control keeps the raw halves). review: no blocking finding; two files, read in full. One expression in the HLSL emitter: a D16 image_store half is sign-extended when the texture's class is SINT, stays zero-extended for UINT and `f16tof32` for float. This is the HLSL counterpart of #1920 (merged, direct DXIL); #3279 (closed) was a later PR for the same line. Not a duplicate of an open PR. performance: none; one shift pair per stored component, only for SINT targets at run time. The generated HLSL of programs with a D16 image_store changes, so they are translated and compiled again once. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Edgaras0404 commented 2026-11-30 13:00:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Edgaras0404 on 2026-11-30T13:00:55Z.


Tested

  • Hardware & OS: AMD Radeon RX 6700 XT (RDNA2, driver 32.0.21045.29003), AMD Ryzen 5 5600X 6-Core Processor, Windows 10 Pro 22H2 (build 19045)
  • Toolchain & build: rustc 1.100.1 (20ddd0171 2026-11-25), dxcompiler 1.9.2609.5 (01b62ad4) / dxil 1.9.2609.5, D3D12 Agility SDK, debug
  • Commits: PR #1194 head 6aa7f058 trial-merged onto main 9dfbe3ea (crates/xcl/src/gpu/recomp/emit.rs +1/-1, crates/xcl/src/gpu/recomp/tests.rs +36)
  • cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint -- --test-threads=1 --nocapture: 1 passed; 0 failed; 0 ignored; 0 measured; 2769 filtered out (0 SKIPPED — ran on RX 6700 XT via DXC)
  • cargo test --workspace --no-fail-fast -- --test-threads=4:
    • All passing workspace binaries finished with 0 failed (including tests\gpu_compute_e2e.rs: 9 passed; 0 failed with SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows; tests\console_shaders.rs: 3 passed; 0 failed; 4 ignored; tests\heap_probe.rs: 0 passed; 0 failed; 4 ignored; tests\xg_oracle.rs: 6 passed; 0 failed; 12 ignored).
    • tests\gpu_two_pass_cache_e2e.rs: 0 passed; 1 failed; 0 ignored (two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, pre-existing baseline failure on main 9dfbe3ea).
    • -p xcl --lib (2770 tests): aborted with exit code: 0x80004005 (xcl: sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission), matching main 9dfbe3ea baseline behavior. Before aborting, it logged SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1) and the same 5 pre-existing gpu:: baseline failures (gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu_direct_image_get_resinfo_d16, f32_programs_on_the_gpu, gpu_f32_compares_with_nan, gpu_float_compares_random); gpu_image_store_d16_sign_extends_sint did not fail.

Not tested

  • Isolated -p xcl --lib -- --skip gpu:: --skip hle::d3d12x:: slice on the merged tree (full -p xcl --lib hit the pre-existing 0x80004005 abort)
  • Opt-in XCL_HEAP_WINDOWS=1 tests (the 2 SKIPPED heap-window tests above)
  • Release build and scripts/smoke.ps1 (including XCL_DIRECT_DXIL=0 HLSL title run)
  • NVIDIA, Intel, RDNA3, and RDNA4 GPUs

AI use

  • Gemini formatted this test report from the author's directly run commands and outputs (no code or diffs written).
<!-- greyfinch-sync:ivall/xcl:comment:7279235788 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1194#issuecomment-7279235788). Originally posted by [Edgaras0404](https://github.com/Edgaras0404) on 2026-11-30T13:00:55Z. --- **Tested** - **Hardware & OS:** AMD Radeon RX 6700 XT (RDNA2, driver `32.0.21045.29003`), AMD Ryzen 5 5600X 6-Core Processor, Windows 10 Pro 22H2 (build 19045) - **Toolchain & build:** `rustc 1.100.1 (20ddd0171 2026-11-25)`, `dxcompiler 1.9.2609.5` (`01b62ad4`) / `dxil 1.9.2609.5`, D3D12 Agility SDK, `debug` - **Commits:** PR `#1194` head `6aa7f058` trial-merged onto `main` `9dfbe3ea` (`crates/xcl/src/gpu/recomp/emit.rs` +1/-1, `crates/xcl/src/gpu/recomp/tests.rs` +36) - `cargo test -p xcl --lib gpu_image_store_d16_sign_extends_sint -- --test-threads=1 --nocapture`: `1 passed; 0 failed; 0 ignored; 0 measured; 2769 filtered out` (`0 SKIPPED` — ran on RX 6700 XT via DXC) - `cargo test --workspace --no-fail-fast -- --test-threads=4`: - All passing workspace binaries finished with `0 failed` (including `tests\gpu_compute_e2e.rs`: `9 passed; 0 failed` with `SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows`; `tests\console_shaders.rs`: `3 passed; 0 failed; 4 ignored`; `tests\heap_probe.rs`: `0 passed; 0 failed; 4 ignored`; `tests\xg_oracle.rs`: `6 passed; 0 failed; 12 ignored`). - `tests\gpu_two_pass_cache_e2e.rs`: `0 passed; 1 failed; 0 ignored` (`two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`, pre-existing baseline failure on `main` `9dfbe3ea`). - `-p xcl --lib` (`2770` tests): aborted with `exit code: 0x80004005` (`xcl: sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission`), matching `main` `9dfbe3ea` baseline behavior. Before aborting, it logged `SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)` and the same 5 pre-existing `gpu::` baseline failures (`gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form`, `gpu_direct_image_get_resinfo_d16`, `f32_programs_on_the_gpu`, `gpu_f32_compares_with_nan`, `gpu_float_compares_random`); `gpu_image_store_d16_sign_extends_sint` did not fail. **Not tested** - Isolated `-p xcl --lib -- --skip gpu:: --skip hle::d3d12x::` slice on the merged tree (full `-p xcl --lib` hit the pre-existing `0x80004005` abort) - Opt-in `XCL_HEAP_WINDOWS=1` tests (the 2 `SKIPPED` heap-window tests above) - Release build and `scripts/smoke.ps1` (including `XCL_DIRECT_DXIL=0` HLSL title run) - NVIDIA, Intel, RDNA3, and RDNA4 GPUs **AI use** - Gemini formatted this test report from the author's directly run commands and outputs (no code or diffs written).
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!1185
No description provided.