Recompiler: D16 image reads of UNORM / SNORM texels round once to nearest #2020

Open
upipibi wants to merge 4 commits from upstream-pr/2030 into main
upipibi commented 2026-11-25 01:16:03 +00:00 (Migrated from github.com)

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


Known: this PR's D16 normalization uses a 64-bit divide (d16_fmt in dxil/lower_mem.rs, norm16_rep in recomp/emit.rs), so every shader with a D16 load declares Int64 (SFI0 0x8000) in both backends. A 32-bit fix with tests is on upipibi/xcl branch fix/d16-norm16-no-int64 (af15e87, one commit on #2027's head; RTX 3070: gpu_buffer_d16 2/2 with XCL_DIRECT_DXIL=0 and =1, lib suite 1170 passed, 0 failed; a no-GPU test checks that the Int64 flag is clear for all 20 UNORM / SNORM D16 buffer and tbuffer loads). It isn't pushed here because a push needs a new title smoke pair, which I can't make. On this PR it cherry-picks with one doc-comment conflict in lower_mem.rs; #2030's image D16 path uses the same helpers.

Stacked on #2027: the commits from Recompiler: D16 image reads … on belong to this PR. It uses #2027's d16_fmt / norm16_rep. Part of #2026.

image_load, image_sample* and image_gather4* with D16=1 packed each channel with f32tof16 of the f32 the view returned. That's rounded twice, and on D3D12 the second time toward zero. RDNA2 rounds code / (2^w − 1) once, to nearest even (boykopovar/AnyPS5#22750 measured all 256 8-bit codes on gfx1036). So 123 of the 256 8_8_8_8_UNORM codes came back one unit in the last place low: code 9 gave 0x2884, where RDNA2 gives 0x2885.

What is in it

  • aabd307 (new): an HLSL D16 gather packs all four taps with the gathered component's format, not each output lane's channel. Found and fixed by @thehollowedone (comment); the test gains their R10G10B10A2 case.
  • dxil/lower_image.rs: the T#'s format info (FMT_INFO[min(fmt, 77)]) is read once per image instruction. The D16 float channel of a sample or gather, a load, and an MSAA load goes through Lw::d16_fmt with its component. A gather's four values all belong to the one component DMASK names.
  • recomp/emit.rs: the same in the HLSL path ({t}_finfo, and d16_fmt in the f16 / load half closures).
  • recomp/tests.rs: gpu_image_d16_loads_of_unorm8_round_once covers all 256 codes of a 64×1 8_8_8_8_UNORM texture against exact single rounding.

Formats whose components have different widths (2_10_10_10, 5_6_5) use the width of the channel in the result's position. With a T# swizzle that reorders them, that can be the wrong width. Uniform formats (8_8_8_8, 16_16, …) are exact either way. Float texels are unchanged, since D3D's truncation already matches RDNA2's toward-zero packing of 32-bit float texels.

  • 2d4b3a5: D16 samples whose sampler can filter (linear/anisotropic min or mag, or linear mip; S# word 2, static samplers decided at translation time) keep the host's blended value, packed with f16_rtz; gathers, point samples and loads keep d16_fmt. The HLSL image_get_lod D16 result goes back to f32tof16. Test gpu_image_d16_filtered_samples_keep_the_blend (review by WebIdentity1 / raylitebull).

  • c4ed6ae: the same rule in the two direct-DXIL paths #1951 added, which still packed D16 with plain f32_to_f16. mimg_gather4_lod (image_gather4_l) packs each tap with d16_fmt. mimg_unorm_sample (UNORM=1 samples) uses the same filter decision as the normalized path, now shared as d16_filters / d16_sample. The HLSL path already gave the right gather4_l values (a level-0 Gather through d16_fmt) and doesn't translate UNORM=1 samples. Tests: gpu_image_d16_gather4_l_of_unorm8_rounds_once (both paths, 1024 taps over all 256 codes) and gpu_image_d16_unnormalized_samples_round_texels_once (direct path; point sampler on all 256 codes, bilinear equals f16_rtz of the f32 sample).

4e7a7d8 dropped out in the rebase: it is on main as 0cab3ef. #2042, stacked on this, rebases cleanly onto the new head.

Tested

At the current head e297589 (rebased onto main e99b0bd on 2026-12-03): NVIDIA GeForce RTX 3070, driver 621.40, Windows 11 Pro, rustc 1.100.0, debug.

  • cargo test -p xcl --lib -- --test-threads=4 (default, direct backend): 2867 passed, 0 failed, 37 ignored
  • gpu_image_d16_ (4 tests), 3 runs each with XCL_DIRECT_DXIL=0 and =1: 4 passed, 0 failed every run.
  • Red: main's versions of the four source files with this PR's tests: 1 passed, 3 failed with =0 (the unnormalized test skips there) and 0 passed, 4 failed with =1 (123 of 256 and 498 of 1024 texels differ).

Earlier, at aabd307:

  • At aabd307 (on 426a5a74, as before), RTX 3070 (616.56), Windows 11 Pro 10.0.26100, debug:
    • gpu_image_d16_gather4_l_of_unorm8_rounds_once with the new R10G10B10A2 case: at c4ed6ae 0 of 3 with XCL_DIRECT_DXIL=0 (lane 0: the fourth red tap packed as 2-bit alpha) and 3 of 3 with =1; at aabd307 3 of 3 with each.
    • gpu_image_d16 filter: 4 passed, 0 failed with XCL_DIRECT_DXIL=0 and with =1.
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1249 passed, 0 failed, 46 ignored (25 SKIPPED lines).
  • At c4ed6ae, RTX 3070 (616.56): before the commit, the direct path fails both new tests (498 of 1024 gather taps and 123 of 256 point codes one unit low, e.g. code 9 gives 0x2884, want 0x2885); the HLSL path passes the gather test. After it, d16 tests 10 of 10 with XCL_DIRECT_DXIL=0 and =1; gpu_ suite (--skip gpu_sparse_vram) 149 passed, 0 failed, 1 ignored on both paths.
  • At 0d5c2f6 (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) 147 passed, 0 failed with XCL_DIRECT_DXIL=0 and with =1. main 426a5a74 gives 143 passed on both. Main's image_load-after-store path (#2156) goes through this PR's D16 conversion too.
  • At 2d4b3a5, RTX 3070 (616.56): the new filtered-sample test fails on db52da7 (126 of 128 values: 0x3804 where 0x3800 is right) and passes with the fix, on both paths; d16 tests 8 of 8 on both paths; gpu_ suite: 136 passed with XCL_DIRECT_DXIL=0; with 1, 135 passed and 1 failed: gpu_image_get_resinfo_1d_array, which fails on main too (#2046). CI Build and test: passing.
  • At 2d4b3a5, AMD Radeon RX 6800M (RDNA2, native wave64), driver 30.0.13002.13003, run by luckyteagirl (comment): gpu_image_d16_filtered_samples_keep_the_blend passes with XCL_DIRECT_DXIL=0 and 1. With recomp/emit.rs and dxil/lower_image.rs taken from db52da7, it fails on each backend with 126 of 128 checks differing (63 heap trilinear and 63 static bilinear lanes). gpu_image_d16_loads_of_unorm8_round_once also passes on both backends (at db52da7 and with direct DXIL at 2d4b3a5).
  • Earlier, on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on main 5ce558f (rebased; #1947 now keys the translated cache on the gpu/dxil sources, so there is no TRANSLATOR_VERSION bump):
  • new test: main gives 123 of 256 one ULP low with XCL_DIRECT_DXIL=0 and 1. This branch passes with both.
  • gpu_ tests (--skip gpu_sparse_vram), with the whole stack (#2027, #2030, #2042): 135 passed with XCL_DIRECT_DXIL=0; with 1, 134 passed and 1 failed, gpu_image_get_resinfo_1d_array, which fails the same way on main 5ce558f (#2046 fixes it).
  • dxil:: and buffer_format units: 138 passed.

Regression run

The pair below is for the earlier head aabd307, before the 2026-12-03 rebase; a pair on e297589 is needed.

Pair for the current head aabd307 against main e429936, run by thehollowedone (comment), RTX 3080 Ti, 60 s each:

xcl-smoke v1
commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1490 (PresentX 1490)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14213 MB
xcl-smoke v1
commit: aabd307733640ef999769e4534920b978b25486c
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1643 (PresentX 1643)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14318 MB

Older pairs, for c4ed6ae:
Pair for the current head c4ed6ae 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: 1634 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14300 MB
xcl-smoke v1
commit: c4ed6ae701b2eb180b37911afccbc879e281b6f1
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1641 (PresentX 1641)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14349 MB

Earlier: Toons29's pair, comment, was for 2d4b3a5, before the rebases..

Not tested

  • The new tests catch the old code only on a host whose f32tof16 truncates (the 3070 does); on one that rounds to nearest, all 8-bit codes come out right either way. Not covered by GPU tests: the static-sampler branch of UNORM=1 samples, UNORM=1 gathers without a LOD, gather4_l with compare or border colour, SNORM and 16-bit formats on these two paths.
  • A point sampler with linear mip filtering counts as filtering (as in 2d4b3a5), so its _lz samples keep the host's value; not checked against RDNA2.
  • AMD, titles.

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:5483212696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T01:16:03Z. --- **Known:** this PR's D16 normalization uses a 64-bit divide (`d16_fmt` in `dxil/lower_mem.rs`, `norm16_rep` in `recomp/emit.rs`), so every shader with a D16 load declares Int64 (SFI0 `0x8000`) in both backends. A 32-bit fix with tests is on `upipibi/xcl` branch `fix/d16-norm16-no-int64` (`af15e87`, one commit on #2027's head; RTX 3070: `gpu_buffer_d16` 2/2 with `XCL_DIRECT_DXIL=0` and `=1`, lib suite 1170 passed, 0 failed; a no-GPU test checks that the Int64 flag is clear for all 20 UNORM / SNORM D16 buffer and tbuffer loads). It isn't pushed here because a push needs a new title smoke pair, which I can't make. On this PR it cherry-picks with one doc-comment conflict in `lower_mem.rs`; #2030's image D16 path uses the same helpers. Stacked on #2027: the commits from `Recompiler: D16 image reads …` on belong to this PR. It uses #2027's `d16_fmt` / `norm16_rep`. Part of #2026. `image_load`, `image_sample*` and `image_gather4*` with `D16=1` packed each channel with `f32tof16` of the f32 the view returned. That's rounded twice, and on D3D12 the second time toward zero. RDNA2 rounds `code / (2^w − 1)` once, to nearest even (boykopovar/AnyPS5#22750 measured all 256 8-bit codes on gfx1036). So 123 of the 256 8_8_8_8_UNORM codes came back one unit in the last place low: code 9 gave `0x2884`, where RDNA2 gives `0x2885`. **What is in it** - **`aabd307` (new):** an HLSL D16 gather packs all four taps with the gathered component's format, not each output lane's channel. Found and fixed by @thehollowedone ([comment](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7236659908)); the test gains their R10G10B10A2 case. - `dxil/lower_image.rs`: the T#'s format info (`FMT_INFO[min(fmt, 77)]`) is read once per image instruction. The D16 float channel of a sample or gather, a load, and an MSAA load goes through `Lw::d16_fmt` with its component. A gather's four values all belong to the one component DMASK names. - `recomp/emit.rs`: the same in the HLSL path (`{t}_finfo`, and `d16_fmt` in the `f16` / load `half` closures). - `recomp/tests.rs`: `gpu_image_d16_loads_of_unorm8_round_once` covers all 256 codes of a 64×1 8_8_8_8_UNORM texture against exact single rounding. Formats whose components have different widths (2_10_10_10, 5_6_5) use the width of the channel in the result's position. With a T# swizzle that reorders them, that can be the wrong width. Uniform formats (8_8_8_8, 16_16, …) are exact either way. Float texels are unchanged, since D3D's truncation already matches RDNA2's toward-zero packing of 32-bit float texels. - `2d4b3a5`: D16 **samples whose sampler can filter** (linear/anisotropic min or mag, or linear mip; S# word 2, static samplers decided at translation time) keep the host's blended value, packed with `f16_rtz`; gathers, point samples and loads keep `d16_fmt`. The HLSL `image_get_lod` D16 result goes back to `f32tof16`. Test `gpu_image_d16_filtered_samples_keep_the_blend` (review by WebIdentity1 / raylitebull). - `c4ed6ae`: the same rule in the two direct-DXIL paths #1951 added, which still packed D16 with plain `f32_to_f16`. `mimg_gather4_lod` (`image_gather4_l`) packs each tap with `d16_fmt`. `mimg_unorm_sample` (`UNORM=1` samples) uses the same filter decision as the normalized path, now shared as `d16_filters` / `d16_sample`. The HLSL path already gave the right `gather4_l` values (a level-0 `Gather` through `d16_fmt`) and doesn't translate `UNORM=1` samples. Tests: `gpu_image_d16_gather4_l_of_unorm8_rounds_once` (both paths, 1024 taps over all 256 codes) and `gpu_image_d16_unnormalized_samples_round_texels_once` (direct path; point sampler on all 256 codes, bilinear equals `f16_rtz` of the f32 sample). 4e7a7d8 dropped out in the rebase: it is on `main` as 0cab3ef. #2042, stacked on this, rebases cleanly onto the new head. **Tested** At the current head e297589 (rebased onto `main` e99b0bd on 2026-12-03): NVIDIA GeForce RTX 3070, driver 621.40, Windows 11 Pro, rustc 1.100.0, debug. - `cargo test -p xcl --lib -- --test-threads=4` (default, direct backend): 2867 passed, 0 failed, 37 ignored - `gpu_image_d16_` (4 tests), 3 runs each with `XCL_DIRECT_DXIL=0` and `=1`: 4 passed, 0 failed every run. - Red: `main`'s versions of the four source files with this PR's tests: 1 passed, 3 failed with `=0` (the unnormalized test skips there) and 0 passed, 4 failed with `=1` (123 of 256 and 498 of 1024 texels differ). Earlier, at aabd307: - At `aabd307` (on `426a5a74`, as before), RTX 3070 (616.56), Windows 11 Pro 10.0.26100, debug: - `gpu_image_d16_gather4_l_of_unorm8_rounds_once` with the new R10G10B10A2 case: at `c4ed6ae` 0 of 3 with `XCL_DIRECT_DXIL=0` (lane 0: the fourth red tap packed as 2-bit alpha) and 3 of 3 with `=1`; at `aabd307` 3 of 3 with each. - `gpu_image_d16` filter: 4 passed, 0 failed with `XCL_DIRECT_DXIL=0` and with `=1`. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1249 passed, 0 failed, 46 ignored (25 SKIPPED lines). - At `c4ed6ae`, RTX 3070 (616.56): before the commit, the direct path fails both new tests (498 of 1024 gather taps and 123 of 256 point codes one unit low, e.g. code 9 gives `0x2884`, want `0x2885`); the HLSL path passes the gather test. After it, `d16` tests 10 of 10 with `XCL_DIRECT_DXIL=0` and `=1`; `gpu_` suite (`--skip gpu_sparse_vram`) 149 passed, 0 failed, 1 ignored on both paths. - At `0d5c2f6` (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`) 147 passed, 0 failed with `XCL_DIRECT_DXIL=0` and with `=1`. `main` `426a5a74` gives 143 passed on both. Main's image_load-after-store path (#2156) goes through this PR's D16 conversion too. - At `2d4b3a5`, RTX 3070 (616.56): the new filtered-sample test fails on `db52da7` (126 of 128 values: 0x3804 where 0x3800 is right) and passes with the fix, on both paths; `d16` tests 8 of 8 on both paths; `gpu_` suite: 136 passed with `XCL_DIRECT_DXIL=0`; with `1`, 135 passed and 1 failed: `gpu_image_get_resinfo_1d_array`, which fails on `main` too (#2046). CI Build and test: passing. - At `2d4b3a5`, AMD Radeon RX 6800M (RDNA2, native wave64), driver 30.0.13002.13003, run by luckyteagirl ([comment](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7157397076)): `gpu_image_d16_filtered_samples_keep_the_blend` passes with `XCL_DIRECT_DXIL=0` and `1`. With `recomp/emit.rs` and `dxil/lower_image.rs` taken from `db52da7`, it fails on each backend with 126 of 128 checks differing (63 heap trilinear and 63 static bilinear lanes). `gpu_image_d16_loads_of_unorm8_round_once` also passes on both backends (at `db52da7` and with direct DXIL at `2d4b3a5`). - Earlier, on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on `main` `5ce558f` (rebased; #1947 now keys the translated cache on the `gpu/dxil` sources, so there is no `TRANSLATOR_VERSION` bump): - new test: `main` gives 123 of 256 one ULP low with `XCL_DIRECT_DXIL=0` and `1`. This branch passes with both. - `gpu_` tests (`--skip gpu_sparse_vram`), with the whole stack (#2027, #2030, #2042): 135 passed with `XCL_DIRECT_DXIL=0`; with `1`, 134 passed and 1 failed, `gpu_image_get_resinfo_1d_array`, which fails the same way on `main` `5ce558f` (#2046 fixes it). - `dxil::` and `buffer_format` units: 138 passed. **Regression run** The pair below is for the earlier head aabd307, before the 2026-12-03 rebase; a pair on e297589 is needed. Pair for the current head `aabd307` against `main` `e429936`, run by thehollowedone ([comment](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7238994708)), RTX 3080 Ti, 60 s each: ``` xcl-smoke v1 commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1490 (PresentX 1490) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14213 MB ``` ``` xcl-smoke v1 commit: aabd307733640ef999769e4534920b978b25486c gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1643 (PresentX 1643) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14318 MB ``` _Older pairs, for `c4ed6ae`:_ Pair for the current head `c4ed6ae` against `main` `1a0bbe3`, run by thehollowedone ([comment](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7162507063), 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: 1634 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14300 MB ``` ``` xcl-smoke v1 commit: c4ed6ae701b2eb180b37911afccbc879e281b6f1 gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1641 (PresentX 1641) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14349 MB ``` Earlier: Toons29's pair, [comment](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7159523635), was for `2d4b3a5`, before the rebases.. **Not tested** - The new tests catch the old code only on a host whose `f32tof16` truncates (the 3070 does); on one that rounds to nearest, all 8-bit codes come out right either way. Not covered by GPU tests: the static-sampler branch of `UNORM=1` samples, `UNORM=1` gathers without a LOD, `gather4_l` with compare or border colour, SNORM and 16-bit formats on these two paths. - A point sampler with linear mip filtering counts as filtering (as in `2d4b3a5`), so its `_lz` samples keep the host's value; not checked against RDNA2. - AMD, titles. **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:08:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T01:22:20Z.


Tested

Independent Windows/D3D12 check on exact head 2d941f0c62772661a3c844f5f7767122ee31f39e. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC, DXC/DXIL 1.8.2502.11, unoptimized dev/test profiles with debug info off.

  • cargo build --workspace --locked passed at the PR head.
  • cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once -- --exact --test-threads=1 --nocapture passed on each adapter with XCL_DIRECT_DXIL=0 and 1 (1 passed, 0 failed, 0 ignored, 0 skipped per run). With only the regression test added to parent d7bd99057d01219b23acb0ec52a68d2e11e88c77, all four runs failed as expected with 123 of 256 values differing.
  • cargo test --locked -p xcl --test d16_image_gpu_probe -- --exact d16_texture_load_sample_gather_match_exact_rounding --test-threads=1 --nocapture used a temporary synthetic RGBA8_UNORM and RGBA8_SNORM texture, all 256 raw codes per format, and an exact CPU binary16 reference. It covered D16 IMAGE_LOAD, point IMAGE_SAMPLE_LZ, and IMAGE_GATHER4_LZ for each of the four component masks. Each 2×2 gather footprint held four copies of the same texel. All runs passed on both revisions, both GPUs, and both backends (1 passed, 0 failed, 0 ignored, 0 skipped per process). The parent probe explicitly expected the old rounding error.
Format Parent mismatches, load / point sample / gather PR head mismatches
RGBA8_UNORM 123/256, 123/256, 492/1024 0/256, 0/256, 0/1024
RGBA8_SNORM 110/256, 110/256, 440/1024 0/256, 0/256, 0/1024

Counts are per adapter and backend and were identical in all four combinations.

Not tested

Linear filtering, multisampling, mixed-width formats or swizzles, real-title smoke runs, and the full workspace test suite.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7149477515 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7149477515). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T01:22:20Z. --- **Tested** Independent Windows/D3D12 check on exact head `2d941f0c62772661a3c844f5f7767122ee31f39e`. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC, DXC/DXIL 1.8.2502.11, unoptimized dev/test profiles with debug info off. - `cargo build --workspace --locked` passed at the PR head. - `cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once -- --exact --test-threads=1 --nocapture` passed on each adapter with `XCL_DIRECT_DXIL=0` and `1` (1 passed, 0 failed, 0 ignored, 0 skipped per run). With only the regression test added to parent `d7bd99057d01219b23acb0ec52a68d2e11e88c77`, all four runs failed as expected with 123 of 256 values differing. - `cargo test --locked -p xcl --test d16_image_gpu_probe -- --exact d16_texture_load_sample_gather_match_exact_rounding --test-threads=1 --nocapture` used a temporary synthetic RGBA8_UNORM and RGBA8_SNORM texture, all 256 raw codes per format, and an exact CPU binary16 reference. It covered D16 `IMAGE_LOAD`, point `IMAGE_SAMPLE_LZ`, and `IMAGE_GATHER4_LZ` for each of the four component masks. Each 2×2 gather footprint held four copies of the same texel. All runs passed on both revisions, both GPUs, and both backends (1 passed, 0 failed, 0 ignored, 0 skipped per process). The parent probe explicitly expected the old rounding error. | Format | Parent mismatches, load / point sample / gather | PR head mismatches | | --- | --- | --- | | RGBA8_UNORM | 123/256, 123/256, 492/1024 | 0/256, 0/256, 0/1024 | | RGBA8_SNORM | 110/256, 110/256, 440/1024 | 0/256, 0/256, 0/1024 | Counts are per adapter and backend and were identical in all four combinations. **Not tested** Linear filtering, multisampling, mixed-width formats or swizzles, real-title smoke runs, and the full workspace test suite. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the outputs, and drafted this report.
JJAutoCompare commented 2026-11-25 02:08:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T01:27:33Z.


Arc A770 verification of clean head 2d941f0c62772661a3c844f5f7767122ee31f39e. The checked-in D16 image-load test matched the reference FP16 value for all 256 R8G8B8A8_UNORM channel codes on both backends.

Tested

  • Windows 11 Enterprise Evaluation 25H2 (26200.9974), Ryzen 7 3800X, Intel Arc A770 (32.0.101.9175), DXC/DXIL 1.9.2609.5, rustc 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc, unoptimized test profile.
  • cargo test --locked -p xcl --lib --no-run built outside the GPU lock with CARGO_BUILD_JOBS=2, CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0, and CARGO_PROFILE_TEST_DEBUG=0.
  • Ran the built executable with XCL_ADAPTER=A770 under L:/XclTooling/Invoke-ArcTest.ps1, using the same command for each backend setting:
& 'L:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target/debug/build/xcl/77aca8ccb20e299f/out/xcl-77aca8ccb20e299f.exe' `
    gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once --exact --nocapture --test-threads=1
  • XCL_DIRECT_DXIL=0 (HLSL/DXC), 1 passed, 0 failed, 0 ignored, 0 explicit GPU skips.
  • XCL_DIRECT_DXIL=1 (direct DXIL), 1 passed, 0 failed, 0 ignored, 0 explicit GPU skips.

Not tested

Filtered sampling, gathers, MSAA, other texture formats or GPUs, buffer loads from #2027, the full suite, and retail-title smoke runs.

AI use

Codex (gpt-6.2-sol) ran the focused test and wrote this report.

Follow-up on 7009727

Tested

PR #2030 was open at 7009727951604107093a31e9bdc8775a0979a7d8. I switched the existing worktree from its initial detached revision to the live head and confirmed it was clean and detached before and after testing. The previous Arc report names 2d941f0c62772661a3c844f5f7767122ee31f39e. I found no Arc fixture report for the live head before this run.

STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), AMD Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175), Rust and Cargo 1.100.0 (stable-x86_64-pc-windows-msvc, rustc 0ef1bc386), DXC and DXIL 1.9.2609.5.

cargo test --locked -p xcl --lib --no-run exited 0 outside the Arc mutex. Cargo used the unoptimized test profile with two build jobs, incremental compilation disabled, and dev/test debug info disabled.

I ran the following command in a separate Invoke-ArcTest.ps1 -Test { … } invocation for each setting, with XCL_ADAPTER=A770.

& 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' `
    gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once --exact --nocapture --test-threads=1
Backend Passed Failed Ignored GPU skips Fixture exit
HLSL/DXC (XCL_DIRECT_DXIL=0) 1 0 0 0 0
Direct DXIL (XCL_DIRECT_DXIL=1) 1 0 0 0 0

The stock fixture checks all 256 R8G8B8A8_UNORM channel codes against the expected single round to FP16. The lock logs record each setting and confirm release. The stock runner selects direct DXIL without a fallback at 1 and HLSL/DXC at 0. Both processes log the DXC/DXIL version because the readiness check looks up DXC on either path.

Raw stdout, stderr and independent exit files are under L:/XclTooling/pr2030 with stems build-7009727, gpu-7009727-direct-0 and gpu-7009727-direct-1. The exclusive target slot is released.

Not tested

Filtered sampling, gathers, MSAA, SNORM and other formats, buffer loads, other GPUs, the broader suite, or retail-title smoke runs.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7149568925 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7149568925). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T01:27:33Z. --- Arc A770 verification of clean head `2d941f0c62772661a3c844f5f7767122ee31f39e`. The checked-in D16 image-load test matched the reference FP16 value for all 256 `R8G8B8A8_UNORM` channel codes on both backends. **Tested** - Windows 11 Enterprise Evaluation 25H2 (26200.9974), Ryzen 7 3800X, Intel Arc A770 (32.0.101.9175), DXC/DXIL 1.9.2609.5, rustc 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc, unoptimized test profile. - `cargo test --locked -p xcl --lib --no-run` built outside the GPU lock with `CARGO_BUILD_JOBS=2`, `CARGO_INCREMENTAL=0`, `CARGO_PROFILE_DEV_DEBUG=0`, and `CARGO_PROFILE_TEST_DEBUG=0`. - Ran the built executable with `XCL_ADAPTER=A770` under `L:/XclTooling/Invoke-ArcTest.ps1`, using the same command for each backend setting: ```powershell & 'L:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target/debug/build/xcl/77aca8ccb20e299f/out/xcl-77aca8ccb20e299f.exe' ` gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once --exact --nocapture --test-threads=1 ``` - `XCL_DIRECT_DXIL=0` (HLSL/DXC), 1 passed, 0 failed, 0 ignored, 0 explicit GPU skips. - `XCL_DIRECT_DXIL=1` (direct DXIL), 1 passed, 0 failed, 0 ignored, 0 explicit GPU skips. **Not tested** Filtered sampling, gathers, MSAA, other texture formats or GPUs, buffer loads from #2027, the full suite, and retail-title smoke runs. **AI use** Codex (`gpt-6.2-sol`) ran the focused test and wrote this report. ## Follow-up on 7009727 **Tested** [PR #2030](https://github.com/xcl-dev/xcl/pull/2030) was open at `7009727951604107093a31e9bdc8775a0979a7d8`. I switched the existing worktree from its initial detached revision to the live head and confirmed it was clean and detached before and after testing. The previous [Arc report](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7149568925) names `2d941f0c62772661a3c844f5f7767122ee31f39e`. I found no Arc fixture report for the live head before this run. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), AMD Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175), Rust and Cargo 1.100.0 (`stable-x86_64-pc-windows-msvc`, rustc `0ef1bc386`), DXC and DXIL 1.9.2609.5. `cargo test --locked -p xcl --lib --no-run` exited 0 outside the Arc mutex. Cargo used the unoptimized test profile with two build jobs, incremental compilation disabled, and dev/test debug info disabled. I ran the following command in a separate `Invoke-ArcTest.ps1 -Test { … }` invocation for each setting, with `XCL_ADAPTER=A770`. ```powershell & 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' ` gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once --exact --nocapture --test-threads=1 ``` | Backend | Passed | Failed | Ignored | GPU skips | Fixture exit | | --- | ---: | ---: | ---: | ---: | ---: | | HLSL/DXC (`XCL_DIRECT_DXIL=0`) | 1 | 0 | 0 | 0 | 0 | | Direct DXIL (`XCL_DIRECT_DXIL=1`) | 1 | 0 | 0 | 0 | 0 | The stock fixture checks all 256 `R8G8B8A8_UNORM` channel codes against the expected single round to FP16. The lock logs record each setting and confirm release. The stock runner selects direct DXIL without a fallback at `1` and HLSL/DXC at `0`. Both processes log the DXC/DXIL version because the readiness check looks up DXC on either path. Raw stdout, stderr and independent exit files are under `L:/XclTooling/pr2030` with stems `build-7009727`, `gpu-7009727-direct-0` and `gpu-7009727-direct-1`. The exclusive target slot is released. **Not tested** Filtered sampling, gathers, MSAA, SNORM and other formats, buffer loads, other GPUs, the broader suite, or retail-title smoke runs. **AI use** T3 Code / Codex (`gpt-6.2-sol`) verified the head, ran the fixture, and wrote this report.
raylitebull commented 2026-11-25 02:08:51 +00:00 (Migrated from github.com)

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


Confirmed two items needed on 2d941f0 before merge:

  1. Address the filtered-sample regression where d16_fmt re-quantizes interpolated/filtered image_sample* texels instead of preserving filtered half values (checking S# filter mode so point-sampled/load/gather keep d16_fmt while linear/mip-filtered samples keep float-to-f16 packing).
  2. Rebase onto main / #2027 once #2027 is updated (dropping the manual TRANSLATOR_VERSION bump in kernel.rs after #1947), clear conflicts, and add paired xcl-smoke v1 blocks for PR description.
<!-- greyfinch-sync:ivall/xcl:comment:7149709755 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7149709755). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T01:34:46Z. --- Confirmed two items needed on `2d941f0` before merge: 1. Address the filtered-sample regression where `d16_fmt` re-quantizes interpolated/filtered `image_sample*` texels instead of preserving filtered half values (checking S# filter mode so point-sampled/load/gather keep `d16_fmt` while linear/mip-filtered samples keep float-to-f16 packing). 2. Rebase onto `main` / `#2027` once `#2027` is updated (dropping the manual `TRANSLATOR_VERSION` bump in `kernel.rs` after `#1947`), clear conflicts, and add paired `xcl-smoke v1` blocks for `PR description`.
WebIdentity1 commented 2026-11-25 02:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WebIdentity1 on 2026-11-25T01:19:48Z.


Rebased-head source follow-up

Checked 0791d7ea496b5aa1a6183bea2e7f8e41ce86e11d: the rebase/source-hash change is present, but the filtered-sample gate below is still absent. HLSL's sample packing closure still unconditionally uses d16_fmt; Direct DXIL's sample result packing does too. Please retain the point/load/gather improvement while carrying the filter-aware correction through the rebase, as requested in the review. This follow-up is source inspection only; I have not rerun this new head. The fail/pass GPU evidence and candidate below remain tied to 2d941f0 and its overlay. Assisted by Codex (GPT-6).


Confirmed a filtered-sample regression on 2d941f0c62772661a3c844f5f7767122ee31f39e, with a small filter-aware candidate below. This complements the independent load/point/gather checks above.

d16_fmt reconstructs an integer normalized texel code. That is appropriate for unfiltered texels, but a linear sample need not be an original code: D3D12 linear filtering computes a weighted average. At the midpoint of black and white RGBA8_UNORM texels, both backends currently produce half 0x3804 instead of 0x3800: the filtered 0.5 has been rounded back to code 128/255. Quarter positions expose the same extra quantization.

The candidate checks S# word 2 using the same min/mag/mip decoding as desc::sampler_d3d12. Point-only samplers retain d16_fmt; if filtering can interpolate, sample results keep the prior f32tof16 packing of the filtered value. Load and gather paths retain the PR's normalization fix. It does not simply revert every sample to the old packing.

Tested — native Windows 10 Home 19045, Ryzen 7 7800X3D, Rust 1.98.1 MSVC, DXC 1.8.2502.11, debug. RTX 3090 driver 591.74 (split-wave64) and AMD Radeon(TM) Graphics iGPU driver 32.0.21030.2001 (native-wave64). Adapter names were printed and verified.

XCL_ADAPTER=3090 or AMD
XCL_SPLIT_WAVE64=1 (3090) or 0 (AMD)
XCL_DIRECT_DXIL=0 or 1
cargo test --locked -p xcl --lib -- gpu_image_d16_ --test-threads=1 --show-output

For each of the four GPU/backend configurations:

  • Exact head + regression: 1 passed / 1 failed / 0 ignored, zero skips. All 64 filtered-sample lanes differ; point sample 9/255 still returns 0x2885, and the unchanged 256-value image-load test passes.
  • Same head + candidate + regression: 2 passed / 0 failed / 0 ignored, zero skips. Every filtered-sample half matches the CPU packing of the actual f32 sample; all 64 point samples still return 0x2885 and the image-load control passes.
  • All 311 source-file hashes matched before/after both snapshots; XCL recompiled on each source switch.

Fixture detail: hardware filtering is not bit-exact ideal f32 arithmetic. On the 3090 the sample near 0.75 is slightly below it, so prior toward-zero packing yields 0x39ff; AMD gives 0x3a00. The final oracle checks exact exponent rebiasing/mantissa truncation of the separately sampled f32 result, with a small f32 sanity bound. Two earlier fixture versions wrongly required ideal quarter values (first in f32, then in half) and were corrected; their NVIDIA failures are not counted as proof of this bug. The final unchanged-head comparison still fails 64/64 on both GPUs/backends.

Not tested — full workspace, retail smoke/gameplay, compile-time or memory effects, SNORM filtered samples, mip interpolation, anisotropic/reduction/comparison filters, or all native console D16 sampling rounding rules. Mixed filter modes conservatively use previous float packing when interpolation is possible. This is an adoptable candidate and failing/passing regression, not a merge-readiness claim. No source push or competing PR.

AI use — Codex (GPT-6) investigated, wrote the candidate/regression, corrected the fixture against observed GPU precision, ran native tests, reviewed the diff, and prepared this report.

Candidate and regression: 3 files, 71 additions / 2 deletions
diff --git a/crates/xcl/src/gpu/dxil/lower_image.rs b/crates/xcl/src/gpu/dxil/lower_image.rs
index 56636f2..08b1be7 100644
--- a/crates/xcl/src/gpu/dxil/lower_image.rs
+++ b/crates/xcl/src/gpu/dxil/lower_image.rs
@@ -686,6 +686,13 @@ impl Lw {
             };
             let n = if gather { 4 } else { comps.len() };
             let sel: Vec<usize> = (0..n).map(|k| if gather { k } else { comps[k] as usize }).collect();
+            // Match desc::sampler_d3d12: only point filtering returns original texel codes.
+            let s2 = self.sreg(ssamp + 2);
+            let xy = self.andc(s2, 0xF00000);
+            let xy_point = self.cmpc(Pred::Eq, xy, 0);
+            let mip = self.andc(s2, 0xC000000);
+            let mip_point = self.cmpc(Pred::Ne, mip, 0x8000000);
+            let point = self.bin(BinOp::And, xy_point, mip_point);
             let vals: Vec<Value> = sel
                 .iter()
                 .map(|&c| {
@@ -694,7 +701,11 @@ impl Lw {
                         // gather's four values are of the one component DMASK names.
                         let comp = if gather { comps.first().copied().unwrap_or(0) as u32 } else { c as u32 };
                         let sel = self.c(4 + comp);
-                        self.d16_fmt(rb[c], sel, finfo)
+                        let normalized = self.d16_fmt(rb[c], sel, finfo);
+                        if gather { normalized } else {
+                            let filtered = self.s.f32_to_f16(r[c]);
+                            self.sel(point, normalized, filtered)
+                        }
                     } else {
                         rb[c]
                     }
diff --git a/crates/xcl/src/gpu/recomp/emit.rs b/crates/xcl/src/gpu/recomp/emit.rs
index da83276..17002b1 100644
--- a/crates/xcl/src/gpu/recomp/emit.rs
+++ b/crates/xcl/src/gpu/recomp/emit.rs
@@ -2245,7 +2245,15 @@ impl Em {
         };
         let f16 = {
             let finfo = finfo.clone();
-            move |e: &str| format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e))
+            let sampled = sampling && !base.starts_with("gather4");
+            let s2 = self.sreg(ssamp + 2);
+            move |e: &str| {
+                let normalized = format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e));
+                // Match desc::sampler_d3d12: any non-point min/mag or linear mip filter
+                // can produce values between texel codes. Keep point sampling exact.
+                if sampled { format!("((({s2} & 0xF00000u) == 0u && ({s2} & 0xC000000u) != 0x8000000u) ? {normalized} : f32tof16(asfloat({e})))") }
+                else { normalized }
+            }
         };
 
         if sampling {
diff --git a/crates/xcl/src/gpu/recomp/tests.rs b/crates/xcl/src/gpu/recomp/tests.rs
index 608608a..871865f 100644
--- a/crates/xcl/src/gpu/recomp/tests.rs
+++ b/crates/xcl/src/gpu/recomp/tests.rs
@@ -7859,3 +7859,53 @@ fn gpu_image_d16_loads_of_unorm8_round_once() {
     }
     assert!(bad.is_empty(), "{} of 256 differ:\n{}", bad.len(), bad.join("\n"));
 }
+
+#[test]
+fn gpu_image_d16_linear_samples_preserve_fractional_texel_values() {
+    if !gpu_ready() { return; }
+    use runner::{TestSampler, TestTexture, TexDim};
+    use windows::Win32::Graphics::Direct3D12::*;
+    use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R8G8B8A8_UNORM;
+    // Linear sampling between black and white gives exactly representable quarter values.
+    // Converting back to an 8-bit texel code would quantize those filtered values again.
+    let mut code = Vec::new();
+    for (dst, d16) in [(10, 1), (12, 0)] {
+        code.extend(encode("IMAGE_SAMPLE_LZ", "ENC_MIMG", &[("VDATA", dst), ("VADDR", 0),
+            ("SRSRC", 4), ("SSAMP", 6), ("DMASK", 1), ("DIM", 1), ("D16", d16)], None).unwrap());
+    }
+    code.extend(encode("S_ENDPGM", "ENC_SOPP", &[], None).unwrap());
+    let mut st = KernelState::default();
+    st.sgpr[16..24].copy_from_slice(&tsharp(0, 56, 9));
+    st.sgpr[24..28].copy_from_slice(&[0, 0, (1 << 20) | (1 << 22) | (2 << 26), 0]);
+    for (lane, r) in st.vgpr.iter_mut().enumerate() {
+        r[0] = f([0.375, 0.5, 0.625][lane % 3]);
+        r[1] = f(0.5);
+    }
+    let tex = [TestTexture { dim: TexDim::D2, format: DXGI_FORMAT_R8G8B8A8_UNORM,
+        width: 2, height: 1, depth: 1, texel_bytes: 4, data: vec![0, 0, 0, 0, 255, 255, 255, 255], uav: false }];
+    let samplers = [TestSampler { filter: D3D12_FILTER_MIN_MAG_MIP_LINEAR,
+        address: D3D12_TEXTURE_ADDRESS_MODE_CLAMP, comparison: None }];
+    let out = runner::run_code_with(&code, &st, &[], &tex, &samplers).unwrap();
+    let mut bad = 0;
+    for (lane, r) in out.vgpr.iter().enumerate() {
+        // Hardware filtering is not bit-exact f32 arithmetic. This tolerance is below
+        // one eighth of a half ULP here; the D16 result itself is still checked exactly.
+        let expected = [0.25f32, 0.5, 0.75][lane % 3];
+        assert!((f32::from_bits(r[12]) - expected).abs() < 1.0 / 65536.0, "f32 sample control lane {lane}");
+        // f32tof16 packs toward zero. These positive normal values need only exponent
+        // rebiasing and mantissa truncation; use the actual filtered f32, not ideal arithmetic.
+        let want = (((r[12] >> 23) - 112) << 10) | ((r[12] >> 13) & 0x3ff);
+        if lane < 3 { println!("filtered quarter {}: half={:#06x}, want={want:#06x}", lane + 1, r[10] & 0xffff); }
+        if r[10] & 0xffff != want { bad += 1; }
+    }
+    println!("filtered D16 sample: {bad}/64 mismatches, adapter={}", runner::adapter().unwrap());
+    // Keep the PR's point-sampled normalized rounding improvement as well.
+    st.sgpr[26] = 0;
+    let point_tex = [TestTexture { data: vec![9; 8], ..tex.into_iter().next().unwrap() }];
+    let point = [TestSampler { filter: D3D12_FILTER_MIN_MAG_MIP_POINT,
+        address: D3D12_TEXTURE_ADDRESS_MODE_CLAMP, comparison: None }];
+    let point_out = runner::run_code_with(&code, &st, &[], &point_tex, &point).unwrap();
+    for r in &point_out.vgpr { assert_eq!(r[10] & 0xffff, 0x2885, "point sample 9/255 rounds once"); }
+    println!("point D16 sample: 64/64 correct");
+    assert_eq!(bad, 0, "D16 packing must preserve the filtered sample, not reconstruct a texel code");
+}
<!-- greyfinch-sync:ivall/xcl:comment:7149436107 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7149436107). Originally posted by [WebIdentity1](https://github.com/WebIdentity1) on 2026-11-25T01:19:48Z. --- ### Rebased-head source follow-up Checked `0791d7ea496b5aa1a6183bea2e7f8e41ce86e11d`: the rebase/source-hash change is present, but the filtered-sample gate below is still absent. [HLSL's sample packing closure](https://github.com/xcl-dev/xcl/blob/0791d7ea496b5aa1a6183bea2e7f8e41ce86e11d/crates/xcl/src/gpu/recomp/emit.rs#L2634) still unconditionally uses `d16_fmt`; [Direct DXIL's sample result packing](https://github.com/xcl-dev/xcl/blob/0791d7ea496b5aa1a6183bea2e7f8e41ce86e11d/crates/xcl/src/gpu/dxil/lower_image.rs#L702) does too. Please retain the point/load/gather improvement while carrying the filter-aware correction through the rebase, as requested in the review. This follow-up is **source inspection only**; I have not rerun this new head. The fail/pass GPU evidence and candidate below remain tied to `2d941f0` and its overlay. Assisted by Codex (GPT-6). --- Confirmed a **filtered-sample regression** on `2d941f0c62772661a3c844f5f7767122ee31f39e`, with a small filter-aware candidate below. This complements the independent load/point/gather checks above. `d16_fmt` reconstructs an integer normalized texel code. That is appropriate for unfiltered texels, but a linear sample need not be an original code: [D3D12 linear filtering computes a weighted average](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_filter_type). At the midpoint of black and white RGBA8_UNORM texels, both backends currently produce half **0x3804** instead of **0x3800**: the filtered 0.5 has been rounded back to code 128/255. Quarter positions expose the same extra quantization. The candidate checks S# word 2 using the same min/mag/mip decoding as `desc::sampler_d3d12`. Point-only samplers retain `d16_fmt`; if filtering can interpolate, sample results keep the prior `f32tof16` packing of the filtered value. Load and gather paths retain the PR's normalization fix. It does not simply revert every sample to the old packing. **Tested** — native Windows 10 Home 19045, Ryzen 7 7800X3D, Rust 1.98.1 MSVC, DXC 1.8.2502.11, debug. RTX 3090 driver 591.74 (split-wave64) and AMD Radeon(TM) Graphics iGPU driver 32.0.21030.2001 (native-wave64). Adapter names were printed and verified. ```text XCL_ADAPTER=3090 or AMD XCL_SPLIT_WAVE64=1 (3090) or 0 (AMD) XCL_DIRECT_DXIL=0 or 1 cargo test --locked -p xcl --lib -- gpu_image_d16_ --test-threads=1 --show-output ``` For **each of the four GPU/backend configurations**: - Exact head + regression: **1 passed / 1 failed / 0 ignored**, zero skips. All 64 filtered-sample lanes differ; point sample 9/255 still returns 0x2885, and the unchanged 256-value image-load test passes. - Same head + candidate + regression: **2 passed / 0 failed / 0 ignored**, zero skips. Every filtered-sample half matches the CPU packing of the actual f32 sample; all 64 point samples still return 0x2885 and the image-load control passes. - All 311 source-file hashes matched before/after both snapshots; XCL recompiled on each source switch. Fixture detail: hardware filtering is not bit-exact ideal f32 arithmetic. On the 3090 the sample near 0.75 is slightly below it, so prior toward-zero packing yields 0x39ff; AMD gives 0x3a00. The final oracle checks exact exponent rebiasing/mantissa truncation of the separately sampled f32 result, with a small f32 sanity bound. Two earlier fixture versions wrongly required ideal quarter values (first in f32, then in half) and were corrected; their NVIDIA failures are not counted as proof of this bug. The final unchanged-head comparison still fails 64/64 on both GPUs/backends. **Not tested** — full workspace, retail smoke/gameplay, compile-time or memory effects, SNORM filtered samples, mip interpolation, anisotropic/reduction/comparison filters, or all native console D16 sampling rounding rules. Mixed filter modes conservatively use previous float packing when interpolation is possible. This is an adoptable candidate and failing/passing regression, not a merge-readiness claim. No source push or competing PR. **AI use** — Codex (GPT-6) investigated, wrote the candidate/regression, corrected the fixture against observed GPU precision, ran native tests, reviewed the diff, and prepared this report. <details><summary>Candidate and regression: 3 files, 71 additions / 2 deletions</summary> ```diff diff --git a/crates/xcl/src/gpu/dxil/lower_image.rs b/crates/xcl/src/gpu/dxil/lower_image.rs index 56636f2..08b1be7 100644 --- a/crates/xcl/src/gpu/dxil/lower_image.rs +++ b/crates/xcl/src/gpu/dxil/lower_image.rs @@ -686,6 +686,13 @@ impl Lw { }; let n = if gather { 4 } else { comps.len() }; let sel: Vec<usize> = (0..n).map(|k| if gather { k } else { comps[k] as usize }).collect(); + // Match desc::sampler_d3d12: only point filtering returns original texel codes. + let s2 = self.sreg(ssamp + 2); + let xy = self.andc(s2, 0xF00000); + let xy_point = self.cmpc(Pred::Eq, xy, 0); + let mip = self.andc(s2, 0xC000000); + let mip_point = self.cmpc(Pred::Ne, mip, 0x8000000); + let point = self.bin(BinOp::And, xy_point, mip_point); let vals: Vec<Value> = sel .iter() .map(|&c| { @@ -694,7 +701,11 @@ impl Lw { // gather's four values are of the one component DMASK names. let comp = if gather { comps.first().copied().unwrap_or(0) as u32 } else { c as u32 }; let sel = self.c(4 + comp); - self.d16_fmt(rb[c], sel, finfo) + let normalized = self.d16_fmt(rb[c], sel, finfo); + if gather { normalized } else { + let filtered = self.s.f32_to_f16(r[c]); + self.sel(point, normalized, filtered) + } } else { rb[c] } diff --git a/crates/xcl/src/gpu/recomp/emit.rs b/crates/xcl/src/gpu/recomp/emit.rs index da83276..17002b1 100644 --- a/crates/xcl/src/gpu/recomp/emit.rs +++ b/crates/xcl/src/gpu/recomp/emit.rs @@ -2245,7 +2245,15 @@ impl Em { }; let f16 = { let finfo = finfo.clone(); - move |e: &str| format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e)) + let sampled = sampling && !base.starts_with("gather4"); + let s2 = self.sreg(ssamp + 2); + move |e: &str| { + let normalized = format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e)); + // Match desc::sampler_d3d12: any non-point min/mag or linear mip filter + // can produce values between texel codes. Keep point sampling exact. + if sampled { format!("((({s2} & 0xF00000u) == 0u && ({s2} & 0xC000000u) != 0x8000000u) ? {normalized} : f32tof16(asfloat({e})))") } + else { normalized } + } }; if sampling { diff --git a/crates/xcl/src/gpu/recomp/tests.rs b/crates/xcl/src/gpu/recomp/tests.rs index 608608a..871865f 100644 --- a/crates/xcl/src/gpu/recomp/tests.rs +++ b/crates/xcl/src/gpu/recomp/tests.rs @@ -7859,3 +7859,53 @@ fn gpu_image_d16_loads_of_unorm8_round_once() { } assert!(bad.is_empty(), "{} of 256 differ:\n{}", bad.len(), bad.join("\n")); } + +#[test] +fn gpu_image_d16_linear_samples_preserve_fractional_texel_values() { + if !gpu_ready() { return; } + use runner::{TestSampler, TestTexture, TexDim}; + use windows::Win32::Graphics::Direct3D12::*; + use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R8G8B8A8_UNORM; + // Linear sampling between black and white gives exactly representable quarter values. + // Converting back to an 8-bit texel code would quantize those filtered values again. + let mut code = Vec::new(); + for (dst, d16) in [(10, 1), (12, 0)] { + code.extend(encode("IMAGE_SAMPLE_LZ", "ENC_MIMG", &[("VDATA", dst), ("VADDR", 0), + ("SRSRC", 4), ("SSAMP", 6), ("DMASK", 1), ("DIM", 1), ("D16", d16)], None).unwrap()); + } + code.extend(encode("S_ENDPGM", "ENC_SOPP", &[], None).unwrap()); + let mut st = KernelState::default(); + st.sgpr[16..24].copy_from_slice(&tsharp(0, 56, 9)); + st.sgpr[24..28].copy_from_slice(&[0, 0, (1 << 20) | (1 << 22) | (2 << 26), 0]); + for (lane, r) in st.vgpr.iter_mut().enumerate() { + r[0] = f([0.375, 0.5, 0.625][lane % 3]); + r[1] = f(0.5); + } + let tex = [TestTexture { dim: TexDim::D2, format: DXGI_FORMAT_R8G8B8A8_UNORM, + width: 2, height: 1, depth: 1, texel_bytes: 4, data: vec![0, 0, 0, 0, 255, 255, 255, 255], uav: false }]; + let samplers = [TestSampler { filter: D3D12_FILTER_MIN_MAG_MIP_LINEAR, + address: D3D12_TEXTURE_ADDRESS_MODE_CLAMP, comparison: None }]; + let out = runner::run_code_with(&code, &st, &[], &tex, &samplers).unwrap(); + let mut bad = 0; + for (lane, r) in out.vgpr.iter().enumerate() { + // Hardware filtering is not bit-exact f32 arithmetic. This tolerance is below + // one eighth of a half ULP here; the D16 result itself is still checked exactly. + let expected = [0.25f32, 0.5, 0.75][lane % 3]; + assert!((f32::from_bits(r[12]) - expected).abs() < 1.0 / 65536.0, "f32 sample control lane {lane}"); + // f32tof16 packs toward zero. These positive normal values need only exponent + // rebiasing and mantissa truncation; use the actual filtered f32, not ideal arithmetic. + let want = (((r[12] >> 23) - 112) << 10) | ((r[12] >> 13) & 0x3ff); + if lane < 3 { println!("filtered quarter {}: half={:#06x}, want={want:#06x}", lane + 1, r[10] & 0xffff); } + if r[10] & 0xffff != want { bad += 1; } + } + println!("filtered D16 sample: {bad}/64 mismatches, adapter={}", runner::adapter().unwrap()); + // Keep the PR's point-sampled normalized rounding improvement as well. + st.sgpr[26] = 0; + let point_tex = [TestTexture { data: vec![9; 8], ..tex.into_iter().next().unwrap() }]; + let point = [TestSampler { filter: D3D12_FILTER_MIN_MAG_MIP_POINT, + address: D3D12_TEXTURE_ADDRESS_MODE_CLAMP, comparison: None }]; + let point_out = runner::run_code_with(&code, &st, &[], &point_tex, &point).unwrap(); + for r in &point_out.vgpr { assert_eq!(r[10] & 0xffff, 0x2885, "point sample 9/255 rounds once"); } + println!("point D16 sample: 64/64 correct"); + assert_eq!(bad, 0, "D16 packing must preserve the filtered sample, not reconstruct a texel code"); +} ``` </details>
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:30Z.


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. 7009727 as it is (merge base with main 5ce558f), no uncommitted changes. The lib test binary runs under Wine, one test per process.
    • gpu_image_d16_loads_of_unorm8_round_once: ok, not skipped
  • #2027's gpu_buffer_d16_loads_of_16_bit_norms_round_once passes on this head too.

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:7150598595 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7150598595). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T02:20:30Z. --- 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`. `7009727` as it is (merge base with `main` `5ce558f`), no uncommitted changes. The lib test binary runs under Wine, one test per process. - `gpu_image_d16_loads_of_unorm8_round_once`: ok, not skipped - #2027's `gpu_buffer_d16_loads_of_16_bit_norms_round_once` passes on this head too. **Not tested** - the whole suite on this head, a retail title, native Windows, AMD. **AI use** - Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
DavidM1911 commented 2026-11-25 05:08:12 +00:00 (Migrated from github.com)

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


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:7152626951 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7152626951). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:12:18Z. --- 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!
luckyteagirl commented 2026-11-25 06:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T05:18:40Z.


RX 6800M focused check on the live PR head db52da7a5ee9e77b59ae1479c99b79a4c9e9407f (clean detached worktree).

Tested: Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. With XCL_ADAPTER=6800M and XCL_REQUIRE_GPU=1, I ran cargo test --locked -p xcl --lib -j 2 gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once -- --test-threads=1 --show-output once with XCL_DIRECT_DXIL=0 and once with 1.

Backend Result
HLSL/DXC 1 passed, 0 failed, 0 ignored, 0 explicit skips
Direct DXIL 1 passed, 0 failed, 0 ignored, 0 explicit skips

The checked-in test covers all 256 RGBA8_UNORM codes for the unfiltered image-load path. This is RDNA2 coverage for that path. I did not test filtered sampling, the issue already identified by reviewers on this head, or other formats, the full suite, or a retail title. There is no smoke block from this run.

AI use: OpenAI Codex (GPT-6, exact variant not exposed in this session) checked the live head, ran the focused GPU tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7153648179 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7153648179). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T05:18:40Z. --- **RX 6800M focused check on the live PR head** `db52da7a5ee9e77b59ae1479c99b79a4c9e9407f` (clean detached worktree). **Tested:** Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. With `XCL_ADAPTER=6800M` and `XCL_REQUIRE_GPU=1`, I ran `cargo test --locked -p xcl --lib -j 2 gpu::recomp::tests::gpu_image_d16_loads_of_unorm8_round_once -- --test-threads=1 --show-output` once with `XCL_DIRECT_DXIL=0` and once with `1`. | Backend | Result | | --- | --- | | HLSL/DXC | 1 passed, 0 failed, 0 ignored, 0 explicit skips | | Direct DXIL | 1 passed, 0 failed, 0 ignored, 0 explicit skips | The checked-in test covers all 256 RGBA8_UNORM codes for the unfiltered image-load path. This is RDNA2 coverage for that path. I did not test filtered sampling, the issue already identified by reviewers on this head, or other formats, the full suite, or a retail title. There is no smoke block from this run. **AI use:** OpenAI Codex (GPT-6, exact variant not exposed in this session) checked the live head, ran the focused GPU tests, and drafted this report.
upipibi commented 2026-11-25 07:05:27 +00:00 (Migrated from github.com)

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


Thanks WebIdentity1 and raylitebull. 2d4b3a5 adds the filter gate on both paths (WebIdentity1's candidate fix checked the same thing).

  • How it decides: desc::sampler_filters reads S# word 2 the way sampler_d3d12 maps it. A min or mag filter that isn't point, or a linear mip filter, can blend.
  • Filtered samples: they keep the host's f32, packed with f16_rtz, the truncation float channels already get since db52da7, so the result doesn't depend on the host's f32tof16 rounding.
  • Unchanged: gathers, point samplers and image loads keep d16_fmt.
  • When: static samplers are decided at translation time; otherwise word 2 is read when the shader runs.
  • Second regression fixed: the HLSL image_get_lod D16 result had also picked up d16_fmt, which would round an LOD as if it were a texel code. It is back to f32tof16, as in the direct DXIL path.

New test gpu_image_d16_filtered_samples_keep_the_blend: an RGBA8_UNORM texture, linear samples between codes 0 and 255 through a heap sampler and a static one, plus point samples of codes 9 and 128 (0x2885, 0x3804). On an RTX 3070 (616.56) it fails on db52da7 with 126 of 128 values off on both paths (0x3804 where 0x3800 is right half way) and passes with the fix. Full gpu_ suite: HLSL 136 passed, 0 failed; direct DXIL 135 passed, 1 failed. The failure is gpu_image_get_resinfo_1d_array, which fails on main too and is fixed by #2046.

On the other points: this branch is stacked on #2027 and merges cleanly with main, and it no longer changes TRANSLATOR_VERSION. The xcl-smoke pair needs a retail title, which I don't have, so that part is still open.

Not tested: SNORM filtered samples, comparison or PCF filtering, anisotropic or min/max reduction, other GPUs. A sampler that is linear for minification but magnifies is treated as filtered, which is conservative.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ivall/xcl:comment:7154587304 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7154587304). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T06:14:28Z. --- Thanks WebIdentity1 and raylitebull. `2d4b3a5` adds the filter gate on both paths (WebIdentity1's candidate fix checked the same thing). - **How it decides:** `desc::sampler_filters` reads S# word 2 the way `sampler_d3d12` maps it. A min or mag filter that isn't point, or a linear mip filter, can blend. - **Filtered samples:** they keep the host's f32, packed with `f16_rtz`, the truncation float channels already get since `db52da7`, so the result doesn't depend on the host's `f32tof16` rounding. - **Unchanged:** gathers, point samplers and image loads keep `d16_fmt`. - **When:** static samplers are decided at translation time; otherwise word 2 is read when the shader runs. - **Second regression fixed:** the HLSL `image_get_lod` D16 result had also picked up `d16_fmt`, which would round an LOD as if it were a texel code. It is back to `f32tof16`, as in the direct DXIL path. New test `gpu_image_d16_filtered_samples_keep_the_blend`: an RGBA8_UNORM texture, linear samples between codes 0 and 255 through a heap sampler and a static one, plus point samples of codes 9 and 128 (0x2885, 0x3804). On an RTX 3070 (616.56) it fails on `db52da7` with 126 of 128 values off on both paths (0x3804 where 0x3800 is right half way) and passes with the fix. Full `gpu_` suite: HLSL 136 passed, 0 failed; direct DXIL 135 passed, 1 failed. The failure is `gpu_image_get_resinfo_1d_array`, which fails on `main` too and is fixed by #2046. On the other points: this branch is stacked on #2027 and merges cleanly with `main`, and it no longer changes `TRANSLATOR_VERSION`. The `xcl-smoke` pair needs a retail title, which I don't have, so that part is still open. Not tested: SNORM filtered samples, comparison or PCF filtering, anisotropic or min/max reduction, other GPUs. A sampler that is linear for minification but magnifies is treated as filtered, which is conservative. AI-assisted (Claude Code).
luckyteagirl commented 2026-11-25 09:08:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T08:43:47Z.


RX 6800M follow-up on the updated exact head 2d4b3a5c4600b7d88ccc10ad7c6c476301143289 (parent db52da7a5ee9e77b59ae1479c99b79a4c9e9407f). This checks the filtered-sample correction added after my earlier unfiltered-load report. Final worktree is clean.

Environment: Native Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M (RDNA2), driver 30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. XCL_ADAPTER=6800M, XCL_REQUIRE_GPU=wave64, matching XCL_DXC_DIR. Command form: cargo test --locked -p xcl --lib -j 2 <filter> -- --test-threads=1 --show-output.

Fixed head: gpu_image_d16_filtered_samples_keep_the_blend passed 1/0/0 with XCL_DIRECT_DXIL=0 (HLSL) and 1/0/0 with =1 (direct DXIL), no explicit skips. gpu_image_d16_loads_of_unorm8_round_once also passed 1/0/0 with direct DXIL.

Test-only negative control: I kept the new test and checked out only recomp/emit.rs and dxil/lower_image.rs from parent db52da7, then rebuilt. On this RX 6800M, the new test failed 0/1/0 on each backend. In each run, 63 heap trilinear + 63 static bilinear lanes reported differing values (126 of 128 checks), while the fixed head passed. I restored both files, rebuilt, and repeated both green filtered-sample runs above.

Scope: Focused debug GPU tests. No full suite or retail-title smoke on this head; these results establish the synthetic filtered and unfiltered cases, not title-level D16 use. The negative control changes shader code shape as well as the filter gate, so it demonstrates a behavioral regression on the parent files without isolating a single emitted operation.

AI use: OpenAI Codex ran the RX 6800M tests and parent-code control, counted the mismatch lines, restored and verified the exact clean head, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7157397076 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7157397076). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T08:43:47Z. --- RX 6800M follow-up on the updated exact head `2d4b3a5c4600b7d88ccc10ad7c6c476301143289` (parent `db52da7a5ee9e77b59ae1479c99b79a4c9e9407f`). This checks the filtered-sample correction added after [my earlier unfiltered-load report](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7153648179). Final worktree is clean. **Environment:** Native Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M (RDNA2), driver `30.0.13002.13003`; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. `XCL_ADAPTER=6800M`, `XCL_REQUIRE_GPU=wave64`, matching `XCL_DXC_DIR`. Command form: `cargo test --locked -p xcl --lib -j 2 <filter> -- --test-threads=1 --show-output`. **Fixed head:** `gpu_image_d16_filtered_samples_keep_the_blend` passed **1/0/0** with `XCL_DIRECT_DXIL=0` (HLSL) and **1/0/0** with `=1` (direct DXIL), no explicit skips. `gpu_image_d16_loads_of_unorm8_round_once` also passed **1/0/0** with direct DXIL. **Test-only negative control:** I kept the new test and checked out only `recomp/emit.rs` and `dxil/lower_image.rs` from parent `db52da7`, then rebuilt. On this RX 6800M, the new test failed **0/1/0** on each backend. In each run, **63 heap trilinear + 63 static bilinear lanes** reported differing values (126 of 128 checks), while the fixed head passed. I restored both files, rebuilt, and repeated both green filtered-sample runs above. **Scope:** Focused debug GPU tests. No full suite or retail-title smoke on this head; these results establish the synthetic filtered and unfiltered cases, not title-level D16 use. The negative control changes shader code shape as well as the filter gate, so it demonstrates a behavioral regression on the parent files without isolating a single emitted operation. AI use: OpenAI Codex ran the RX 6800M tests and parent-code control, counted the mismatch lines, restored and verified the exact clean head, and prepared this report.
Toons29 commented 2026-11-25 11:09:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T10:18:48Z.


Regression run of 2d4b3a5c 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: 2d4b3a5c4600b7d88ccc10ad7c6c476301143289
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14626 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:7159523635 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7159523635). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T10:18:48Z. --- Regression run of `2d4b3a5c` 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: 2d4b3a5c4600b7d88ccc10ad7c6c476301143289 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14626 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.
thehollowedone commented 2026-11-25 13:05:09 +00:00 (Migrated from github.com)

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


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

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: 1634 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14300 MB
xcl-smoke v1
commit: c4ed6ae701b2eb180b37911afccbc879e281b6f1
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1641 (PresentX 1641)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14349 MB

On the exact head, cargo test --offline --locked -p xcl --lib gpu_image_d16_ -- --nocapture --test-threads=1 reported 4 passed, 0 failed, 0 ignored with each of XCL_DIRECT_DXIL=0 and =1. The unnormalized-coordinate case runs only in direct DXIL and returns early in HLSL, so three fixtures executed GPU work under HLSL and four under direct DXIL.

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:7162507063 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7162507063). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T12:32:11Z. --- 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 c4ed6ae](https://github.com/xcl-dev/xcl/commit/c4ed6ae701b2eb180b37911afccbc879e281b6f1). 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: 1634 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14300 MB ``` ``` xcl-smoke v1 commit: c4ed6ae701b2eb180b37911afccbc879e281b6f1 gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1641 (PresentX 1641) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14349 MB ``` On the exact head, `cargo test --offline --locked -p xcl --lib gpu_image_d16_ -- --nocapture --test-threads=1` reported 4 passed, 0 failed, 0 ignored with each of `XCL_DIRECT_DXIL=0` and `=1`. The unnormalized-coordinate case runs only in direct DXIL and returns early in HLSL, so three fixtures executed GPU work under HLSL and four under direct DXIL. 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:33 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on --test-threads=1 rerun (1314 passed, 0 failed, 27 ignored, 90s). Intermittent single-test flake — tracked in #1978.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7185077858 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7185077858). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:05:02Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: 1 failure under parallel scheduling; clean on `--test-threads=1` rerun (**1314 passed, 0 failed, 27 ignored**, 90s). Intermittent single-test flake — tracked in #1978. Thanks! — Devin
futurepro62 commented 2026-11-27 23:36:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T23:36:31Z.


NVIDIA and AMD full-suite run of head c4ed6ae7, on its own base 426a5a7 and merged with current main 2c717a04, to go with the reports above by thehollowedone, since none of them covers AMD. On its base, the one failure comes from changes made on main after that base (ea088a5); merged with main, both cards pass. The bare-head runs come first.

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: 1237 passed, 0 failed, 44 ignored. SKIPPED (no wave64, no xgameruntime.dll): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, test_title_draws_with_a_root_signature_under_the_debug_layer, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: gpu_buffer_d16_loads_of_32_bit_floats_truncate, gpu_buffer_d16_loads_of_16_bit_norms_round_once, gpu_image_d16_loads_of_unorm8_round_once, gpu_image_d16_filtered_samples_keep_the_blend, gpu_image_d16_gather4_l_of_unorm8_rounds_once, gpu_image_d16_unnormalized_samples_round_texels_once.
  • 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: 1247 passed, 1 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), test_title_draws_with_a_root_signature_under_the_debug_layer (no xgameruntime.dll).
  • --skip leaves out tests that fail on main 2c717a04 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.
  • AMD failures on this base: gpu_image_get_resinfo_past_last_level (ea088a5).
  • Merged with main 2c717a04 (git merge --no-ff, clean, local only): NVIDIA XCL_REQUIRE_GPU=mesh cargo test --workspace with the same skips: 1460 passed, 0 failed, 45 ignored; AMD Radeon iGPU (XCL_ADAPTER=radeon, same skips): 1471 passed, 0 failed, 47 ignored.

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:7230270934 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7230270934). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T23:36:31Z. --- NVIDIA and AMD full-suite run of head `c4ed6ae7`, on its own base `426a5a7` and merged with current `main` `2c717a04`, to go with the reports above by thehollowedone, since none of them covers AMD. On its base, the one failure comes from changes made on `main` after that base (`ea088a5`); merged with `main`, both cards pass. The bare-head runs come first. **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`: **1237 passed, 0 failed, 44 ignored**. SKIPPED (no wave64, no xgameruntime.dll): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `gpu_buffer_d16_loads_of_32_bit_floats_truncate`, `gpu_buffer_d16_loads_of_16_bit_norms_round_once`, `gpu_image_d16_loads_of_unorm8_round_once`, `gpu_image_d16_filtered_samples_keep_the_blend`, `gpu_image_d16_gather4_l_of_unorm8_rounds_once`, `gpu_image_d16_unnormalized_samples_round_texels_once`. - 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`: **1247 passed, 1 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `test_title_draws_with_a_root_signature_under_the_debug_layer` (no xgameruntime.dll). - `--skip` leaves out tests that fail on main `2c717a04` 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`. - AMD failures on this base: `gpu_image_get_resinfo_past_last_level` (`ea088a5`). - **Merged with `main` `2c717a04`** (`git merge --no-ff`, clean, local only): NVIDIA `XCL_REQUIRE_GPU=mesh cargo test --workspace` with the same skips: **1460 passed, 0 failed, 45 ignored**; AMD Radeon iGPU (`XCL_ADAPTER=radeon`, same skips): **1471 passed, 0 failed, 47 ignored**. **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.
thehollowedone commented 2026-11-28 08:33:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T08:33:28Z.


On #2030 head c4ed6ae7, the HLSL D16 gather packs each returned tap using that tap's output lane as the texture format channel. GatherRed returns the red component of four texels, so all four taps must use the selected red channel's width. The direct-DXIL gather path already does this. The current RGBA8 fixture has equal channel widths and misses the difference.

I extended that fixture locally with an identity-swizzle R10G10B10A2 texture containing red code 64. On the unchanged PR head, XCL_DIRECT_DXIL=0 failed 0/1: the fourth tap packed as 2-bit alpha ([0x2c012c01, 0x00002c01] instead of [0x2c012c01, 0x2c012c01]). The unchanged direct-DXIL control passed 1/1. Moving the D16 packer into the sampling branch and using the selected component for gathers made the same RTX 3080 Ti test pass 1/1 with XCL_DIRECT_DXIL=0 and 1/1 with =1; no GPU skips. The neighboring gpu_image_d16 filter passed 4/4 in each mode. Commands were cargo test --offline --locked -j 4 -p xcl --lib gpu::recomp::tests::gpu_image_d16_gather4_l_of_unorm8_rounds_once -- --exact --nocapture --test-threads=1 with each setting, then the same command with filter gpu_image_d16 and without --exact. git diff --check passed. Host: Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11.

Locally tested candidate diff
diff --git a/crates/xcl/src/gpu/recomp/emit.rs b/crates/xcl/src/gpu/recomp/emit.rs
index 87e81871..f7bae8f2 100644
--- a/crates/xcl/src/gpu/recomp/emit.rs
+++ b/crates/xcl/src/gpu/recomp/emit.rs
@@ -2666,11 +2666,6 @@ impl Em {
             Some('z') => 2,
             _ => 3,
         };
-        let f16 = {
-            let finfo = finfo.clone();
-            move |e: &str| format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e))
-        };
-
         if sampling {
             if matches!(dim, 6 | 7) {
                 return Err("MIMG sample MSAA");
@@ -2846,6 +2841,11 @@ impl Em {
                     format!("{t}_pt")
                 }
             };
+            // A gather's four lanes are taps of the selected component, not format channels.
+            let f16 = |e: &str| {
+                let component = if gather { comps[0] as u32 } else { comp_of(e) };
+                format!("d16_fmt({e}, {}u, {finfo})", 4 + component)
+            };
             let half = move |e: &str| match point.as_str() {
                 "true" => f16(e),
                 "false" => format!("f16_rtz(asfloat({e}))"),
diff --git a/crates/xcl/src/gpu/recomp/tests.rs b/crates/xcl/src/gpu/recomp/tests.rs
index 208e82e9..5c0d66c7 100644
--- a/crates/xcl/src/gpu/recomp/tests.rs
+++ b/crates/xcl/src/gpu/recomp/tests.rs
@@ -3298,7 +3298,7 @@ fn gpu_image_d16_gather4_l_of_unorm8_rounds_once() {
     }
     use runner::{TestSampler, TestTexture, TexDim};
     use windows::Win32::Graphics::Direct3D12::*;
-    use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R8G8B8A8_UNORM;
+    use windows::Win32::Graphics::Dxgi::Common::{DXGI_FORMAT_R10G10B10A2_UNORM, DXGI_FORMAT_R8G8B8A8_UNORM};
     let mimg = |name: &'static str, f: &[(&str, u64)]| -> Vec<u8> { encode(name, "ENC_MIMG", f, None).unwrap() };
     // v[0:2] = (u, v, lod); component c's four halves in v[10 + 2c : 11 + 2c]
     let mut code = Vec::new();
@@ -3334,6 +3334,15 @@ fn gpu_image_d16_gather4_l_of_unorm8_rounds_once() {
         }
     }
     assert!(bad.is_empty(), "{} of 1024 differ:\n{}", bad.len(), bad.join("\n"));
+
+    // Each red tap is code 64 of 1023. The fourth returned lane is still red, not 2-bit alpha.
+    st.sgpr[16..24].copy_from_slice(&tsharp(0, 50, 9));
+    let data = (0..64).flat_map(|_| 64u32.to_le_bytes()).collect();
+    let packed = [TestTexture { format: DXGI_FORMAT_R10G10B10A2_UNORM, data, ..tex.into_iter().next().unwrap() }];
+    let r = runner::run_code_with(&code, &st, &[], &packed, &samp).unwrap();
+    for (lane, v) in r.vgpr.iter().enumerate() {
+        assert_eq!([v[10], v[11]], [0x2C01_2C01; 2], "lane {lane}: red's four taps round as 10-bit UNORM");
+    }
 }
 
 /// D16 samples with unnormalized coordinates (UNORM = 1; the direct DXIL path's

This check did not run the full workspace suite, paired title smoke, AMD, or Intel on the uncommitted candidate. AI use: Codex (GPT-6.2 Sol) checked the source path, applied and ran the candidate, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7236659908 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7236659908). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T08:33:28Z. --- On [#2030 head `c4ed6ae7`](https://github.com/xcl-dev/xcl/commit/c4ed6ae701b2eb180b37911afccbc879e281b6f1), the HLSL D16 gather packs each returned tap using that tap's output lane as the texture format channel. [`GatherRed` returns the red component of four texels](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/texture2d-gatherred), so all four taps must use the selected red channel's width. The direct-DXIL gather path already does this. The current RGBA8 fixture has equal channel widths and misses the difference. I extended that fixture locally with an identity-swizzle R10G10B10A2 texture containing red code 64. On the unchanged PR head, `XCL_DIRECT_DXIL=0` failed **0/1**: the fourth tap packed as 2-bit alpha (`[0x2c012c01, 0x00002c01]` instead of `[0x2c012c01, 0x2c012c01]`). The unchanged direct-DXIL control passed **1/1**. Moving the D16 packer into the sampling branch and using the selected component for gathers made the same RTX 3080 Ti test pass **1/1** with `XCL_DIRECT_DXIL=0` and **1/1** with `=1`; no GPU skips. The neighboring `gpu_image_d16` filter passed **4/4** in each mode. Commands were `cargo test --offline --locked -j 4 -p xcl --lib gpu::recomp::tests::gpu_image_d16_gather4_l_of_unorm8_rounds_once -- --exact --nocapture --test-threads=1` with each setting, then the same command with filter `gpu_image_d16` and without `--exact`. `git diff --check` passed. Host: Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11. <details><summary>Locally tested candidate diff</summary> ```diff diff --git a/crates/xcl/src/gpu/recomp/emit.rs b/crates/xcl/src/gpu/recomp/emit.rs index 87e81871..f7bae8f2 100644 --- a/crates/xcl/src/gpu/recomp/emit.rs +++ b/crates/xcl/src/gpu/recomp/emit.rs @@ -2666,11 +2666,6 @@ impl Em { Some('z') => 2, _ => 3, }; - let f16 = { - let finfo = finfo.clone(); - move |e: &str| format!("d16_fmt({e}, {}u, {finfo})", 4 + comp_of(e)) - }; - if sampling { if matches!(dim, 6 | 7) { return Err("MIMG sample MSAA"); @@ -2846,6 +2841,11 @@ impl Em { format!("{t}_pt") } }; + // A gather's four lanes are taps of the selected component, not format channels. + let f16 = |e: &str| { + let component = if gather { comps[0] as u32 } else { comp_of(e) }; + format!("d16_fmt({e}, {}u, {finfo})", 4 + component) + }; let half = move |e: &str| match point.as_str() { "true" => f16(e), "false" => format!("f16_rtz(asfloat({e}))"), diff --git a/crates/xcl/src/gpu/recomp/tests.rs b/crates/xcl/src/gpu/recomp/tests.rs index 208e82e9..5c0d66c7 100644 --- a/crates/xcl/src/gpu/recomp/tests.rs +++ b/crates/xcl/src/gpu/recomp/tests.rs @@ -3298,7 +3298,7 @@ fn gpu_image_d16_gather4_l_of_unorm8_rounds_once() { } use runner::{TestSampler, TestTexture, TexDim}; use windows::Win32::Graphics::Direct3D12::*; - use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R8G8B8A8_UNORM; + use windows::Win32::Graphics::Dxgi::Common::{DXGI_FORMAT_R10G10B10A2_UNORM, DXGI_FORMAT_R8G8B8A8_UNORM}; let mimg = |name: &'static str, f: &[(&str, u64)]| -> Vec<u8> { encode(name, "ENC_MIMG", f, None).unwrap() }; // v[0:2] = (u, v, lod); component c's four halves in v[10 + 2c : 11 + 2c] let mut code = Vec::new(); @@ -3334,6 +3334,15 @@ fn gpu_image_d16_gather4_l_of_unorm8_rounds_once() { } } assert!(bad.is_empty(), "{} of 1024 differ:\n{}", bad.len(), bad.join("\n")); + + // Each red tap is code 64 of 1023. The fourth returned lane is still red, not 2-bit alpha. + st.sgpr[16..24].copy_from_slice(&tsharp(0, 50, 9)); + let data = (0..64).flat_map(|_| 64u32.to_le_bytes()).collect(); + let packed = [TestTexture { format: DXGI_FORMAT_R10G10B10A2_UNORM, data, ..tex.into_iter().next().unwrap() }]; + let r = runner::run_code_with(&code, &st, &[], &packed, &samp).unwrap(); + for (lane, v) in r.vgpr.iter().enumerate() { + assert_eq!([v[10], v[11]], [0x2C01_2C01; 2], "lane {lane}: red's four taps round as 10-bit UNORM"); + } } /// D16 samples with unnormalized coordinates (UNORM = 1; the direct DXIL path's ``` </details> This check did not run the full workspace suite, paired title smoke, AMD, or Intel on the uncommitted candidate. AI use: Codex (GPT-6.2 Sol) checked the source path, applied and ran the candidate, and wrote this report.
upipibi commented 2026-11-28 09:07:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-28T09:07:48Z.


@thehollowedone Thanks, you're right. I reproduced it on an RTX 3070 (616.56): with your R10G10B10A2 case, c4ed6ae fails 0 of 3 with XCL_DIRECT_DXIL=0 (the fourth red tap packed as 2-bit alpha) and passes 3 of 3 with =1. Your change is now aabd307 on this branch, with you as co-author. It passes 3 of 3 on each path, gpu_image_d16 4 of 4 on each, and the workspace suite gives 1249 passed, 0 failed, 46 ignored.

The new head drops the regression pairs, which were for c4ed6ae. If you can make a scripts/smoke.ps1 pair for aabd307 again, I'll put it in the description. I can't make one, because I have no title.

<!-- greyfinch-sync:ivall/xcl:comment:7237034018 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7237034018). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T09:07:48Z. --- @thehollowedone Thanks, you're right. I reproduced it on an RTX 3070 (616.56): with your R10G10B10A2 case, `c4ed6ae` fails 0 of 3 with `XCL_DIRECT_DXIL=0` (the fourth red tap packed as 2-bit alpha) and passes 3 of 3 with `=1`. Your change is now `aabd307` on this branch, with you as co-author. It passes 3 of 3 on each path, `gpu_image_d16` 4 of 4 on each, and the workspace suite gives 1249 passed, 0 failed, 46 ignored. The new head drops the regression pairs, which were for `c4ed6ae`. If you can make a `scripts/smoke.ps1` pair for `aabd307` again, I'll put it in the description. I can't make one, because I have no title.
thehollowedone commented 2026-11-28 12:06:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T12:06:09Z.


Fresh paired 60-second title smoke for #2030 at head aabd307 against current main e429936. Both were clean release builds on Windows 11 build 26300, RTX 3080 Ti (621.35), with separate copies of the same profile and shader-cache seed. I ran each checkout's scripts/smoke.ps1 -Seconds 60 with the same title, XCL_PREPARE=0 and XCL_PSO_PRELOAD=0. The stock script set XCL_NETWORK=0; a wrapper enforced a 16 GiB job cap and 12 GiB minimum system commit headroom. Both bounded jobs exited normally, with no guard stop. The xcl-smoke blocks below are the scripts' generated output.

Main:

xcl-smoke v1
commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1490 (PresentX 1490)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14213 MB

PR head:

xcl-smoke v1
commit: aabd307733640ef999769e4534920b978b25486c
gpu: NVIDIA GeForce RTX 3080 Ti
title: retail-private-fixture
seconds: 60
exit: 0x0
frames shown: 1643 (PresentX 1643)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14318 MB

The head showed 1,643 frames versus main's 1,490 (110% of main), and peak title commit was 14,318 versus 14,213 MB (101% of main). Both runs exited 0 with no device removal or crash. This is startup/menu regression coverage; it does not establish that the title exercised D16 gather or reached gameplay. These are single runs, so the frame difference is not a performance claim.

The PR description still says aabd307 needs a new pair. Please replace its older Regression run blocks with these generated blocks and update Not tested to reflect the startup coverage; the description check reads the PR body.

AI use: Codex (GPT-6.2 Sol) prepared the bounded runs, verified the manifests and guard results, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7238994708 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7238994708). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T12:06:09Z. --- Fresh paired 60-second title smoke for #2030 at [head `aabd307`](https://github.com/xcl-dev/xcl/commit/aabd307733640ef999769e4534920b978b25486c) against [current `main` `e429936`](https://github.com/xcl-dev/xcl/commit/e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd). Both were clean release builds on Windows 11 build 26300, RTX 3080 Ti (621.35), with separate copies of the same profile and shader-cache seed. I ran each checkout's `scripts/smoke.ps1 -Seconds 60` with the same title, `XCL_PREPARE=0` and `XCL_PSO_PRELOAD=0`. The stock script set `XCL_NETWORK=0`; a wrapper enforced a 16 GiB job cap and 12 GiB minimum system commit headroom. Both bounded jobs exited normally, with no guard stop. The `xcl-smoke` blocks below are the scripts' generated output. Main: ``` xcl-smoke v1 commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1490 (PresentX 1490) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14213 MB ``` PR head: ``` xcl-smoke v1 commit: aabd307733640ef999769e4534920b978b25486c gpu: NVIDIA GeForce RTX 3080 Ti title: retail-private-fixture seconds: 60 exit: 0x0 frames shown: 1643 (PresentX 1643) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14318 MB ``` The head showed 1,643 frames versus main's 1,490 (110% of main), and peak title commit was 14,318 versus 14,213 MB (101% of main). Both runs exited 0 with no device removal or crash. This is startup/menu regression coverage; it does not establish that the title exercised D16 gather or reached gameplay. These are single runs, so the frame difference is not a performance claim. The PR description still says `aabd307` needs a new pair. Please replace its older **Regression run** blocks with these generated blocks and update **Not tested** to reflect the startup coverage; the description check reads the PR body. AI use: Codex (GPT-6.2 Sol) prepared the bounded runs, verified the manifests and guard results, and wrote this report.
upipibi commented 2026-11-28 12:16:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-28T12:16:02Z.


@thehollowedone Thanks, both blocks are in the description under Regression run for aabd307.

<!-- greyfinch-sync:ivall/xcl:comment:7239108535 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7239108535). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T12:16:02Z. --- @thehollowedone Thanks, both blocks are in the description under **Regression run** for `aabd307`.
thehollowedone commented 2026-11-28 15:32:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T15:32:05Z.


Independent current-head check of #2030 aabd307. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, rustc 1.99.1 MSVC, DXC 1.8.2502.11, debug build.

Tested

  • cargo build --offline --locked -j 4 --workspace: passed.
  • cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4: 1,248 passed, 1 failed, 46 ignored across 23 test-result summaries; 24 explicit SKIPPED notices are included in Cargo's pass counts. The sole failure was gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, with cached_only console_mesh hit: "DXIL not compiled yet".
  • I ran that same test in isolation on current main 309c3ec with cargo test --offline --locked -j 4 -p xcl --lib gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk -- --exact --nocapture --test-threads=1: 0 passed, 1 failed, 0 ignored, with the same error. This establishes the failure on the current baseline; it does not make the PR suite green.
  • With XCL_ADAPTER=3080, cargo test --offline --locked -j 4 -p xcl --lib gpu_image_d16_ -- --test-threads=1 --nocapture: 4 passed, 0 failed, 0 ignored, zero skips with XCL_DIRECT_DXIL=0, and the same 4/0/0 with XCL_DIRECT_DXIL=1. This includes the new mixed-width gather case at this head.

Not tested in this check: AMD, Intel, or an additional title run. The current-head paired smoke blocks from my earlier run are already in the PR description. The full-suite default adapter was not logged; the focused D16 runs explicitly selected the RTX 3080 Ti.

AI use: Codex (GPT-6.2 Sol) ran and checked the builds, tests, baseline control, and this report.

<!-- greyfinch-sync:ivall/xcl:comment:7241539249 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7241539249). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T15:32:05Z. --- Independent current-head check of [#2030 `aabd307`](https://github.com/xcl-dev/xcl/commit/aabd307733640ef999769e4534920b978b25486c). Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, rustc 1.99.1 MSVC, DXC 1.8.2502.11, debug build. **Tested** - `cargo build --offline --locked -j 4 --workspace`: passed. - `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4`: **1,248 passed, 1 failed, 46 ignored** across 23 test-result summaries; 24 explicit `SKIPPED` notices are included in Cargo's pass counts. The sole failure was `gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`, with `cached_only console_mesh hit: "DXIL not compiled yet"`. - I ran that same test in isolation on [current `main` `309c3ec`](https://github.com/xcl-dev/xcl/commit/309c3ec5a25ea231ddbe01f76748ab8ed3d9d953) with `cargo test --offline --locked -j 4 -p xcl --lib gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk -- --exact --nocapture --test-threads=1`: **0 passed, 1 failed, 0 ignored**, with the same error. This establishes the failure on the current baseline; it does not make the PR suite green. - With `XCL_ADAPTER=3080`, `cargo test --offline --locked -j 4 -p xcl --lib gpu_image_d16_ -- --test-threads=1 --nocapture`: **4 passed, 0 failed, 0 ignored, zero skips** with `XCL_DIRECT_DXIL=0`, and the same **4/0/0** with `XCL_DIRECT_DXIL=1`. This includes the new mixed-width gather case at this head. **Not tested** in this check: AMD, Intel, or an additional title run. The current-head paired smoke blocks from my earlier run are already in the PR description. The full-suite default adapter was not logged; the focused D16 runs explicitly selected the RTX 3080 Ti. AI use: Codex (GPT-6.2 Sol) ran and checked the builds, tests, baseline control, and this report.
Foniass commented 2026-12-01 07:13:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:13:15Z.


Triage (#1607) – head aabd307

Stacked on #2027, which is merged; #2042 is stacked on this PR (its extra commit saturates 32-bit integer texels), so it is not a duplicate. Commit 4e7a7d8 (D16 format loads of float data truncate) is already on main as 0cab3ef with the same patch and drops out on a rebase; the image D16 rounding commits (c1e4471, 0d5c2f6, c4ed6ae, aabd307: lower_image.rs, emit.rs) are not on main and no other open PR makes them.
No problems found in the diff. The branch conflicts with main and its checks fail.
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:7303788273 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7303788273). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:13:15Z. --- **Triage (#1607)** – head aabd307 Stacked on #2027, which is merged; #2042 is stacked on this PR (its extra commit saturates 32-bit integer texels), so it is not a duplicate. Commit `4e7a7d8` (D16 format loads of float data truncate) is already on main as `0cab3ef` with the same patch and drops out on a rebase; the image D16 rounding commits (`c1e4471`, `0d5c2f6`, `c4ed6ae`, `aabd307`: `lower_image.rs`, `emit.rs`) are not on main and no other open PR makes them. No problems found in the diff. The branch conflicts with main and its checks fail. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-03 17:12:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T17:12:28Z.


Follow-up review of e297589a, since aabd307 (code reading only, not a merge-check; PR description red) · 1 medium

In short: Rebased onto main e99b0bd. The D16 float-load commit (4e7a7d8), which main already has as 0cab3ef, dropped out, as the earlier triage expected. The four image D16 rounding commits are unchanged, and the branch now merges cleanly. Only one evidence gap remains.

Medium

  1. The whole workspace is not reported on this head. Tested gives cargo test -p xcl --lib on e297589a (2867 passed, 0 failed, 37 ignored), and the four gpu_image_d16_ tests on both backends. The workspace run, with the integration tests, is from before the rebase. CONTRIBUTING.md asks for cargo test --workspace -- --test-threads=4 on the head under review.
Checked and fine
  • Earlier triage points: the duplicate commit is gone, and the conflict with main is resolved. The range-diff of the four remaining commits has no code change, only context.
  • Tested shows the four D16 tests failing with main's source files on both backends, and passing on this head three times each.
  • #2042 is still stacked on this PR.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7386138200 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2030#issuecomment-7386138200). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T17:12:28Z. --- **Follow-up review** of `e297589a`, since `aabd307` (code reading only, not a merge-check; `PR description` red) · 1 medium **In short:** Rebased onto `main` `e99b0bd`. The D16 float-load commit (`4e7a7d8`), which `main` already has as `0cab3ef`, dropped out, as the earlier triage expected. The four image D16 rounding commits are unchanged, and the branch now merges cleanly. Only one evidence gap remains. #### Medium 1. **The whole workspace is not reported on this head.** **Tested** gives `cargo test -p xcl --lib` on `e297589a` (2867 passed, 0 failed, 37 ignored), and the four `gpu_image_d16_` tests on both backends. The workspace run, with the integration tests, is from before the rebase. CONTRIBUTING.md asks for `cargo test --workspace -- --test-threads=4` on the head under review. <details><summary>Checked and fine</summary> - Earlier triage points: the duplicate commit is gone, and the conflict with `main` is resolved. The range-diff of the four remaining commits has no code change, only context. - **Tested** shows the four D16 tests failing with `main`'s source files on both backends, and passing on this head three times each. - #2042 is still stacked on this PR. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
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/2030:upstream-pr/2030'
git switch 'upstream-pr/2030'

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/2030'
git switch 'upstream-pr/2030'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2030'
git switch 'upstream-pr/2030'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2030'
git switch 'main'
git merge --squash 'upstream-pr/2030'
git switch 'main'
git merge --ff-only 'upstream-pr/2030'
git switch 'main'
git merge 'upstream-pr/2030'
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!2020
No description provided.