Recompiler: simplify bfm / s_bfm_b64 and lower ffbh_i to FirstbitSHi in direct DXIL #2549

Closed
ramon-victor wants to merge 1 commit from upstream-pr/2559 into main
ramon-victor commented 2026-11-25 22:57:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T22:57:59Z.


Part of #1269.

Problem

In crates/xcl/src/gpu/dxil/lower.rs, bitfield mask and signed find-first-bit-high helpers emitted unnecessarily heavy DXIL sequences:

  • bfm (s_bfm_b32, v_bfm_b32) computed select(w == 0, 0, u32::MAX >> ((32 - w) & 31)) << (b & 31) (8 instructions including icmp and select), even though w = a & 31 is already strictly in 0..=31, so ((1u32 << w) - 1) << (b & 31) is exact for every w including w = 0.
  • s_bfm_b64 used the same 12-instruction icmp/select/lshr i64 expansion even when both operands are compile-time constants, forcing i64 arithmetic and Feature::Int64Ops for constant lane masks.
  • ffbh_i (v_ffbh_i32, s_flbit_i32) manually emulated signed find-first-bit-high with icmp slt 0, bitwise NOT, select, and FirstbitHi (4 instructions), instead of lowering directly to DXIL's BitCount::FirstbitSHi (dx.op.unaryBits.i32 op 34).

Fix

  • Simplify bfm (lower.rs) to ((1 << (a & 31)) - 1) << (b & 31) with direct constant folding when a (or both a and b) is constant.
  • Constant-fold s_bfm_b64 (lower.rs) directly to two i32 constants without touching i64 or Feature::Int64Ops; for dynamic operands, simplify to ((1u64 << (al & 63)) - 1) << (bl & 63) with no icmp/select.
  • Lower ffbh_i (lower.rs) directly to self.s.bit_count(BitCount::FirstbitSHi, v).
  • Add lower::bfm_ffbh_tests::bfm_and_ffbh_i_ir_and_gpu_parity checking DXIL validation, disassembly (zero Int64Ops for constant s_bfm_b64, FirstbitSHi op 34 without icmp slt for v_ffbh_i32/s_flbit_i32, zero select for dynamic bfm), and wave32 RTX 3070 GPU parity across all edge cases (0, -1, 1, -2, 0x7FFF_FFFF, 0x8000_0000, widths 0/1/16/31/32/63/64, offsets 0..63).

Measured impact

573-program retail direct-DXIL validation sweep (dxil.dll 1.8.2502.11):

  • Baseline (6d12f58): 573/573 validated (val_fail=0), 51,117,488 total DXIL bytes (p50=22,865 us, p95=408,132 us).
  • This PR (7bf4853): 573/573 validated (val_fail=0), 51,116,080 total DXIL bytes (-1,408 B / -0.003%; p50=19,313 us, p95=376,258 us).

Tested

  • Targeted IR disassembly + RTX 3070 GPU parity test (cargo test --lib -p xcl bfm_ffbh): 1 passed, 0 failed.
  • Full workspace (.\scripts\test.ps1, NVIDIA GeForce RTX 3070, Windows 11): 1424 passed, 0 failed, 46 ignored.
  • 573-shader direct DXIL dxil.dll validation sweep: 573/573 passed, 0 failures.
  • Release build (cargo build --release -p xcl) and 60 s retail smoke run (see below).

Not tested

  • Wave64-only GPU paths (the RTX 3070 runs wave32; wave64 GPU tests skipped automatically on this adapter).

Regression run

Main (f087b99):

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

This PR (7bf4853):

xcl-smoke v1
commit: 7bf48538afdea8d4bf8e56645a450b5c77b1e405
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14019 MB

AI use

  • Antigravity (Gemini 4 Neon): implementation, IR & GPU parity tests, 573-shader DXIL sweep, and PR drafting.
<!-- greyfinch-sync:ivall/xcl:issue:5500618445 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559). Originally posted by [ramon-victor](https://github.com/ramon-victor) on 2026-11-25T22:57:59Z. --- Part of #1269. **Problem** In `crates/xcl/src/gpu/dxil/lower.rs`, bitfield mask and signed find-first-bit-high helpers emitted unnecessarily heavy DXIL sequences: - `bfm` (`s_bfm_b32`, `v_bfm_b32`) computed `select(w == 0, 0, u32::MAX >> ((32 - w) & 31)) << (b & 31)` (8 instructions including `icmp` and `select`), even though `w = a & 31` is already strictly in `0..=31`, so `((1u32 << w) - 1) << (b & 31)` is exact for every `w` including `w = 0`. - `s_bfm_b64` used the same 12-instruction `icmp`/`select`/`lshr` `i64` expansion even when both operands are compile-time constants, forcing `i64` arithmetic and `Feature::Int64Ops` for constant lane masks. - `ffbh_i` (`v_ffbh_i32`, `s_flbit_i32`) manually emulated signed find-first-bit-high with `icmp slt 0`, bitwise NOT, `select`, and `FirstbitHi` (4 instructions), instead of lowering directly to DXIL's `BitCount::FirstbitSHi` (`dx.op.unaryBits.i32` op `34`). **Fix** - Simplify `bfm` (`lower.rs`) to `((1 << (a & 31)) - 1) << (b & 31)` with direct constant folding when `a` (or both `a` and `b`) is constant. - Constant-fold `s_bfm_b64` (`lower.rs`) directly to two `i32` constants without touching `i64` or `Feature::Int64Ops`; for dynamic operands, simplify to `((1u64 << (al & 63)) - 1) << (bl & 63)` with no `icmp`/`select`. - Lower `ffbh_i` (`lower.rs`) directly to `self.s.bit_count(BitCount::FirstbitSHi, v)`. - Add `lower::bfm_ffbh_tests::bfm_and_ffbh_i_ir_and_gpu_parity` checking DXIL validation, disassembly (zero `Int64Ops` for constant `s_bfm_b64`, `FirstbitSHi` op `34` without `icmp slt` for `v_ffbh_i32`/`s_flbit_i32`, zero `select` for dynamic `bfm`), and wave32 RTX 3070 GPU parity across all edge cases (`0`, `-1`, `1`, `-2`, `0x7FFF_FFFF`, `0x8000_0000`, widths `0/1/16/31/32/63/64`, offsets `0..63`). **Measured impact** 573-program retail direct-DXIL validation sweep (`dxil.dll` 1.8.2502.11): - Baseline (`6d12f58`): `573/573` validated (`val_fail=0`), `51,117,488` total DXIL bytes (`p50=22,865 us`, `p95=408,132 us`). - This PR (`7bf4853`): `573/573` validated (`val_fail=0`), `51,116,080` total DXIL bytes (`-1,408 B` / `-0.003%`; `p50=19,313 us`, `p95=376,258 us`). **Tested** - Targeted IR disassembly + RTX 3070 GPU parity test (`cargo test --lib -p xcl bfm_ffbh`): 1 passed, 0 failed. - Full workspace (`.\scripts\test.ps1`, NVIDIA GeForce RTX 3070, Windows 11): `1424 passed, 0 failed, 46 ignored`. - 573-shader direct DXIL `dxil.dll` validation sweep: `573/573` passed, `0` failures. - Release build (`cargo build --release -p xcl`) and 60 s retail smoke run (see below). **Not tested** - Wave64-only GPU paths (the RTX 3070 runs wave32; wave64 GPU tests skipped automatically on this adapter). **Regression run** Main (`f087b99`): ``` xcl-smoke v1 commit: f087b998d0d51a9f11bbfa0761967a63e778edd9 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14467 MB ``` This PR (`7bf4853`): ``` xcl-smoke v1 commit: 7bf48538afdea8d4bf8e56645a450b5c77b1e405 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14019 MB ``` **AI use** - Antigravity (Gemini 4 Neon): implementation, IR & GPU parity tests, 573-shader DXIL sweep, and PR drafting.
DarkPanda69 commented 2026-11-26 00:05:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T23:14:31Z.


Wave64 run (listed as untested; the wave64 GPU tests skipped on the RTX 3070) on an AMD RX 9070 XT, plus an RTX 3060: the new test passes, and nothing else changes in the direct-DXIL GPU suite.

Head 7bf4853 applied on main 08db802, debug, Windows 11 Pro 26200, XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4 on main and with the PR, card chosen with XCL_ADAPTER:

main this PR
RX 9070 XT (RDNA4, 32.0.32029.2010) 704 passed, 2 failed, 6 SKIPPED 705 passed, 2 failed, 6 SKIPPED
RTX 3060 (32.0.16.1088) 706 passed, 0 failed, 24 SKIPPED 707 passed, 0 failed, 24 SKIPPED

On both cards, the only result change against main is the new bfm_and_ffbh_i_ir_and_gpu_parity (ok), with no new skips. That test translates with wave64: false, so its own GPU run is wave32. On the RX 9070 XT, the rest of the suite's wave64 cases, which skip on a 32-lane GPU, ran with this PR applied and still pass. How many of them contain bfm or ffbh_i was not checked. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on main.

Not tested: Intel, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7177304081 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7177304081). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T23:14:31Z. --- Wave64 run (listed as untested; the wave64 GPU tests skipped on the RTX 3070) on an AMD RX 9070 XT, plus an RTX 3060: the new test passes, and nothing else changes in the direct-DXIL GPU suite. Head `7bf4853` applied on `main` `08db802`, debug, Windows 11 Pro 26200, `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4` on `main` and with the PR, card chosen with `XCL_ADAPTER`: | | `main` | this PR | |---|---|---| | RX 9070 XT (RDNA4, 32.0.32029.2010) | 704 passed, 2 failed, 6 SKIPPED | 705 passed, 2 failed, 6 SKIPPED | | RTX 3060 (32.0.16.1088) | 706 passed, 0 failed, 24 SKIPPED | 707 passed, 0 failed, 24 SKIPPED | On both cards, the only result change against `main` is the new `bfm_and_ffbh_i_ir_and_gpu_parity` (ok), with no new skips. That test translates with `wave64: false`, so its own GPU run is wave32. On the RX 9070 XT, the rest of the suite's wave64 cases, which skip on a 32-lane GPU, ran with this PR applied and still pass. How many of them contain `bfm` or `ffbh_i` was not checked. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on `main`. Not tested: Intel, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
DavidM1911 commented 2026-11-26 00:05:39 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7177404292 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7177404292). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T23:19:15Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
SlopTart commented 2026-11-26 00:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T23:41:17Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 166 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. This PR does not change the mad/mac red on RADV.
bfm_and_ffbh_i_ir_and_gpu_parity ran inside the suite (name matches the filter): passed.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7177910010 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7177910010). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T23:41:17Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 166 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. This PR does not change the mad/mac red on RADV. `bfm_and_ffbh_i_ir_and_gpu_parity` ran inside the suite (name matches the filter): passed. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Decodere commented 2026-11-27 01:26:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T01:26:44Z.


Independent desktop NVIDIA (Wave32-only Ada) verification of PR #2559 at head 7bf48538afdea8d4bf8e56645a450b5c77b1e405 (1 commit; exact parent & merge-base: e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (7bf48538)

Command Result
cargo test --release -p xcl --lib bfm_and_ffbh_i_ir_and_gpu_parity -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.24s, 0.21s, 0.21s, 0 skipped — live Wave32 GPU parity on RTX 4060)
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) 184 passed; 0 failed; 3 ignored; 1138 filtered out × 3 (3.74s, 3.60s, 3.60s; 183 executed + 1 expected Wave32-only skip dispatch_chain_native_wave64_builds_whole: no wave64)
cargo build --release -p xcl Clean build (1m 07s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

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

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

PR #2559 (7bf48538afdea8d4bf8e56645a450b5c77b1e405):

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

Runtime log observations (xcl.log)

  • 9222 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19567 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14011 MB committed by the process; video memory 6115 MB local, 4686 MB non-local.

Limits of coverage

  • bfm / s_bfm_b64 simplification and ffbh_i -> FirstbitSHi direct-DXIL lowering were verified end-to-end on desktop Wave32-only NVIDIA RTX 4060 via bfm_and_ffbh_i_ir_and_gpu_parity (3/3, 0 skipped) and gpu::dxil:: (183 executed + 1 expected no wave64 skip × 3).
  • Native Wave64 GPU execution is not available on this Wave32-only RTX 4060, and the warm-cache 60 s retail smoke on title: 29640639 confirms zero runtime regression rather than re-compiling a cold XCL_DIRECT_DXIL=1 shader set (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR).

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

<!-- greyfinch-sync:ivall/xcl:comment:7207293198 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7207293198). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T01:26:44Z. --- Independent desktop NVIDIA (Wave32-only Ada) verification of **PR #2559** at head `7bf48538afdea8d4bf8e56645a450b5c77b1e405` (`1` commit; exact parent & merge-base: `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`7bf48538`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib bfm_and_ffbh_i_ir_and_gpu_parity -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.24s`, `0.21s`, `0.21s`, `0` skipped — live Wave32 GPU parity on RTX 4060) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4` (3 consecutive runs) | `184 passed; 0 failed; 3 ignored; 1138 filtered out` × 3 (`3.74s`, `3.60s`, `3.60s`; `183` executed + `1` expected Wave32-only skip `dispatch_chain_native_wave64_builds_whole: no wave64`) | | `cargo build --release -p xcl` | Clean build (`1m 07s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, cached baseline on the same machine): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1531 (PresentX 1531) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13982 MB ``` PR #2559 (`7bf48538afdea8d4bf8e56645a450b5c77b1e405`): ``` xcl-smoke v1 commit: 7bf48538afdea8d4bf8e56645a450b5c77b1e405 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1598 (PresentX 1598) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14011 MB ``` ### Runtime log observations (`xcl.log`) - `9222` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19567 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14011 MB committed by the process; video memory 6115 MB local, 4686 MB non-local`. ### Limits of coverage - `bfm` / `s_bfm_b64` simplification and `ffbh_i` -> `FirstbitSHi` direct-DXIL lowering were verified end-to-end on desktop Wave32-only NVIDIA RTX 4060 via `bfm_and_ffbh_i_ir_and_gpu_parity` (`3/3`, `0` skipped) and `gpu::dxil::` (`183` executed + `1` expected `no wave64` skip × 3). - Native Wave64 GPU execution is not available on this Wave32-only RTX 4060, and the warm-cache 60 s retail smoke on `title: 29640639` confirms zero runtime regression rather than re-compiling a cold `XCL_DIRECT_DXIL=1` shader set (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-28 10:00:34 +00:00 (Migrated from github.com)

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


releasing: my merge-check claim for head 7bf48538af.

The PR's exact patch is already on main as 2820ac6109bf6b2109b6f15fbbecb447b9d2d93c. Both commits have stable patch ID 0187a736fba034cd471d889aca77bcb998c53a51; the landed commit credits #2559. There is no remaining change from this head to merge. I stopped before the trial merge and did not run tests for this check.

AI use: Codex (GPT-6.2 Sol) verified the commit identity; Codex (GPT-6.2 Astra) independently checked the current source.

<!-- greyfinch-sync:ivall/xcl:comment:7237608851 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7237608851). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T10:00:34Z. --- releasing: my merge-check claim for head 7bf48538afdea8d4bf8e56645a450b5c77b1e405. The PR's exact patch is already on `main` as [2820ac6109bf6b2109b6f15fbbecb447b9d2d93c](https://github.com/xcl-dev/xcl/commit/2820ac6109bf6b2109b6f15fbbecb447b9d2d93c). Both commits have stable patch ID `0187a736fba034cd471d889aca77bcb998c53a51`; the landed commit credits #2559. There is no remaining change from this head to merge. I stopped before the trial merge and did not run tests for this check. AI use: Codex (GPT-6.2 Sol) verified the commit identity; Codex (GPT-6.2 Astra) independently checked the current source.
throny commented 2026-11-28 14:40:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:40:40Z.


merge-check claim
head: 7bf48538af

<!-- greyfinch-sync:ivall/xcl:comment:7240848348 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7240848348). Originally posted by [throny](https://github.com/throny) on 2026-11-28T14:40:40Z. --- merge-check claim head: 7bf48538afdea8d4bf8e56645a450b5c77b1e405
throny commented 2026-11-28 14:53:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:53:33Z.


merge-check
base: b937fbab
head: 7bf48538af
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2140 passed, 1 failed, 48 ignored: exactly the base's result, because the merge changes nothing (26 SKIPPED lines). The one failure is gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions, which main itself has at b937fbab (#3093); base alone: 2140 passed, 1 failed, 48 ignored.
review: the whole change is already on main: commit 2820ac61 is an ancestor of b937fbab, the PR's diff has the same stable patch id, and a trial merge of this head into main gives main's own tree (no file changes). This agrees with the earlier finding in the thread.
performance: nothing to add on main.
verdict: not yet: nothing to merge; already in main through 2820ac61, so this PR can be closed.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7241017365 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7241017365). Originally posted by [throny](https://github.com/throny) on 2026-11-28T14:53:33Z. --- merge-check base: b937fbab head: 7bf48538afdea8d4bf8e56645a450b5c77b1e405 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2140 passed, 1 failed, 48 ignored: exactly the base's result, because the merge changes nothing (26 SKIPPED lines). The one failure is gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions, which main itself has at b937fbab (#3093); base alone: 2140 passed, 1 failed, 48 ignored. review: the whole change is already on main: commit 2820ac61 is an ancestor of b937fbab, the PR's diff has the same stable patch id, and a trial merge of this head into main gives main's own tree (no file changes). This agrees with the earlier finding in the thread. performance: nothing to add on main. verdict: not yet: nothing to merge; already in main through 2820ac61, so this PR can be closed. hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
saintwolf commented 2026-11-30 14:02:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T14:02:52Z.


@Prime1997 this can be closed as the changes are already in main

Verified against current main (9dfbe3ea): the PR's single commit 7bf48538afdea8d4bf8e56645a450b5c77b1e405 has the same stable patch id (0187a736fba034cd471d889aca77bcb998c53a51) as 2820ac6109bf6b2109b6f15fbbecb447b9d2d93c (Recompiler: simplify direct-DXIL bit masks and signed ffbh), which is already an ancestor of main (merged via #2959). Merging this head would change nothing.

Checked by saintwolf (OpenCode, Qwen 3.8 27B); agrees with throny's merge-check on the same head.

<!-- greyfinch-sync:ivall/xcl:comment:7280752839 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7280752839). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T14:02:52Z. --- @Prime1997 this can be closed as the changes are already in main Verified against current `main` (`9dfbe3ea`): the PR's single commit `7bf48538afdea8d4bf8e56645a450b5c77b1e405` has the same stable patch id (`0187a736fba034cd471d889aca77bcb998c53a51`) as `2820ac6109bf6b2109b6f15fbbecb447b9d2d93c` (`Recompiler: simplify direct-DXIL bit masks and signed ffbh`), which is already an ancestor of `main` (merged via #2959). Merging this head would change nothing. Checked by saintwolf (OpenCode, Qwen 3.8 27B); agrees with throny's merge-check on the same head.
brainhay5 commented 2026-11-30 18:19:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T18:19:52Z.


merge-check claim
head: 7bf48538af

<!-- greyfinch-sync:ivall/xcl:comment:7287689409 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7287689409). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T18:19:52Z. --- merge-check claim head: 7bf48538afdea8d4bf8e56645a450b5c77b1e405
throny commented 2026-11-30 20:10:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T20:10:29Z.


Closing: this change is already on main as commit 2820ac61 (brought in by b0b041fd Merge pull request #2959 from bmjask/stack/308-benchmark-thre). This PR's diff applies in reverse cleanly on current main (ff0c364b), so merging it would change nothing. If something here is not on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5) checked this; part of the duplicate sweep on #3041.

<!-- greyfinch-sync:ivall/xcl:comment:7290518658 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2559#issuecomment-7290518658). Originally posted by [throny](https://github.com/throny) on 2026-11-30T20:10:29Z. --- Closing: this change is already on `main` as commit 2820ac61 (brought in by b0b041fd Merge pull request #2959 from bmjask/stack/308-benchmark-thre). This PR's diff applies in reverse cleanly on current `main` (`ff0c364b`), so merging it would change nothing. If something here is not on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5) checked this; part of the duplicate sweep on #3041.

Pull request closed

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!2549
No description provided.