dxil: track VOPC SDWA SDST and buffer/GWS cache barriers in reload::changes #2469

Merged
Decodere merged 1 commit from upstream-pr/2479 into main 2026-11-29 12:18:51 +00:00
Decodere commented 2026-11-25 19:51:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T19:51:12Z.


Fix two missed invalidations in reload::changes for direct DXIL s_load_dword* available-expression reuse: VOPC SDWA writes to SDST (SD=1) and BUFFER_GL0_INV / BUFFER_GL1_INV / DS_GWS_BARRIER cache barriers. Part of #1401. Part of #1833.

What is in it

  • crates/xcl/src/gpu/dxil/reload.rs (changes):
    • Inside if scalar_out, when d.variant == rdna2::Variant::Sdwa, inspect super::lower::ext_encoding(d) (VOPC_VOP_SDWA_SDST_ENC): if SD == 1 and SDST < 128 && SDST != 125 (NULL), OR pair(r, 2) into regs so overwriting a cached load's base or offset SGPR invalidates subsequent repeats.
    • Check S_BARRIER | S_DCACHE_INV | S_GL1_INV | BUFFER_GL0_INV | BUFFER_GL1_INV | DS_GWS_BARRIER before/alongside memory-writing encodings (ENC_MUBUF | ENC_MTBUF | ENC_FLAT | ENC_FLAT_GLBL | ENC_FLAT_SCRATCH | ENC_MIMG | ENC_SMEM) so ENC_MUBUF cache invalidations and DS_GWS_BARRIER end available loads.
  • crates/xcl/src/gpu/dxil/reload.rs (tests):
    • vopc_sdwa_sdst_invalidates_address_registers: verifies SD=1 targeting base low (s4), wave64 pair overlap (s3, s8), base high (s5), and SOFFSET (s9) invalidates repeated loads, while negative controls SD=0, SDST=4 (writes VCC) and SD=1, SDST=125 (NULL) preserve reuse.
    • cache_invalidations_and_gws_barrier_end_available_loads: verifies BUFFER_GL0_INV, BUFFER_GL1_INV, and DS_GWS_BARRIER end available loads, while S_ICACHE_INV preserves reuse.
    • vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil: verifies direct DXIL translation emits a second @dx.op.rawBufferLoad after V_CMP_EQ_U32 (VOPC_VOP_SDWA_SDST_ENC, SD=1, SDST=4), validates with DXC 1.9, and executes live on wave32 hardware (cleanly skipped on non-wave32/WARP adapters) confirming (s4, s12, s13) == (0x10, mem[0], mem[4]).

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 4060 8 GB (driver 621.14, 32-lane waves), Intel Core i5-11400F, Windows 11 Home build 26200, Rust 1.100.0, DXC / dxil.dll 1.9.2609.5, release build.
  • Failing-first before the reload::changes fix (on origin/main 06055a7): all 3 new tests failed (0 passed, 3 failed: BUFFER_GL0_INV, base SDST=s3, and direct DXIL 11 != 12 rawBufferLoads).
  • Targeted cargo test --release -p xcl --lib -- gpu::dxil::reload::tests:: --nocapture:
    • RTX 4060: 9 passed, 0 failed, 0 ignored (0.23 s, 0 skipped; live wave32 GPU execution passed).
    • XCL_ADAPTER=warp: 9 passed, 0 failed, 0 ignored (0.02 s; pure-CPU analysis, DXC 1.9 validation, and rawBufferLoad count assertions all passed; live wave32 GPU execution cleanly skipped with no wave32).
  • cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture (RTX 4060): 1416 passed, 0 failed, 46 ignored across 37 test binaries (183/183 gpu::dxil::* passed; 29 pre-existing SKIPPED GPU/environment checks: 21 no wave64, 3 per-lane wave32 refused, 3 no D3D12 debug layer, 1 no heap windows, 1 cannot disable driver cache; 0 skipped in gpu::dxil::reload::tests).

Regression run
main:

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

PR:

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

Not tested

  • Native wave64 GPU execution on wave64 hardware and D3D12 debug-layer tests requiring d3d12SDKLayers.dll.
  • Live hardware execution of DS_GWS_BARRIER (covered at the reload::analyze level).

AI use

  • Google Antigravity (Gemini 4 Neon) implemented the reload::changes invalidation fixes, wrote the unit and direct DXIL GPU tests, ran the test and smoke suites, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5498102958 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T19:51:12Z. --- Fix two missed invalidations in `reload::changes` for direct DXIL `s_load_dword*` available-expression reuse: `VOPC` SDWA writes to `SDST` (`SD=1`) and `BUFFER_GL0_INV` / `BUFFER_GL1_INV` / `DS_GWS_BARRIER` cache barriers. Part of #1401. Part of #1833. **What is in it** - `crates/xcl/src/gpu/dxil/reload.rs` (`changes`): - Inside `if scalar_out`, when `d.variant == rdna2::Variant::Sdwa`, inspect `super::lower::ext_encoding(d)` (`VOPC_VOP_SDWA_SDST_ENC`): if `SD == 1` and `SDST < 128 && SDST != 125` (`NULL`), OR `pair(r, 2)` into `regs` so overwriting a cached load's base or offset SGPR invalidates subsequent repeats. - Check `S_BARRIER | S_DCACHE_INV | S_GL1_INV | BUFFER_GL0_INV | BUFFER_GL1_INV | DS_GWS_BARRIER` before/alongside memory-writing encodings (`ENC_MUBUF | ENC_MTBUF | ENC_FLAT | ENC_FLAT_GLBL | ENC_FLAT_SCRATCH | ENC_MIMG | ENC_SMEM`) so `ENC_MUBUF` cache invalidations and `DS_GWS_BARRIER` end available loads. - `crates/xcl/src/gpu/dxil/reload.rs` (`tests`): - `vopc_sdwa_sdst_invalidates_address_registers`: verifies `SD=1` targeting base low (`s4`), wave64 pair overlap (`s3`, `s8`), base high (`s5`), and `SOFFSET` (`s9`) invalidates repeated loads, while negative controls `SD=0, SDST=4` (writes `VCC`) and `SD=1, SDST=125` (`NULL`) preserve reuse. - `cache_invalidations_and_gws_barrier_end_available_loads`: verifies `BUFFER_GL0_INV`, `BUFFER_GL1_INV`, and `DS_GWS_BARRIER` end available loads, while `S_ICACHE_INV` preserves reuse. - `vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil`: verifies direct DXIL translation emits a second `@dx.op.rawBufferLoad` after `V_CMP_EQ_U32` (`VOPC_VOP_SDWA_SDST_ENC`, `SD=1, SDST=4`), validates with DXC 1.9, and executes live on wave32 hardware (cleanly skipped on non-wave32/WARP adapters) confirming `(s4, s12, s13) == (0x10, mem[0], mem[4])`. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 4060 8 GB (driver 621.14, 32-lane waves), Intel Core i5-11400F, Windows 11 Home build 26200, Rust 1.100.0, DXC / `dxil.dll` 1.9.2609.5, release build. - Failing-first before the `reload::changes` fix (on `origin/main` `06055a7`): all 3 new tests failed (`0 passed, 3 failed`: `BUFFER_GL0_INV`, `base SDST=s3`, and direct DXIL `11 != 12` rawBufferLoads). - Targeted `cargo test --release -p xcl --lib -- gpu::dxil::reload::tests:: --nocapture`: - RTX 4060: `9 passed, 0 failed, 0 ignored` (`0.23 s`, `0` skipped; live wave32 GPU execution passed). - `XCL_ADAPTER=warp`: `9 passed, 0 failed, 0 ignored` (`0.02 s`; pure-CPU analysis, DXC 1.9 validation, and `rawBufferLoad` count assertions all passed; live wave32 GPU execution cleanly skipped with `no wave32`). - `cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture` (RTX 4060): `1416 passed, 0 failed, 46 ignored` across `37` test binaries (`183/183` `gpu::dxil::*` passed; `29` pre-existing `SKIPPED` GPU/environment checks: `21` no wave64, `3` per-lane wave32 refused, `3` no D3D12 debug layer, `1` no heap windows, `1` cannot disable driver cache; `0` skipped in `gpu::dxil::reload::tests`). **Regression run** main: ``` xcl-smoke v1 commit: 06055a7a0fb43c5f83f55e7a2ce201417de171e9 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1543 (PresentX 1543) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13998 MB ``` PR: ``` xcl-smoke v1 commit: d423c902918bcac16c8e8fe6192e85e2003c16b0 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1549 (PresentX 1550) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14023 MB ``` **Not tested** - Native wave64 GPU execution on wave64 hardware and D3D12 debug-layer tests requiring `d3d12SDKLayers.dll`. - Live hardware execution of `DS_GWS_BARRIER` (covered at the `reload::analyze` level). **AI use** - Google Antigravity (Gemini 4 Neon) implemented the `reload::changes` invalidation fixes, wrote the unit and direct DXIL GPU tests, ran the test and smoke suites, and drafted this PR description.
DarkPanda69 commented 2026-11-25 21:05:13 +00:00 (Migrated from github.com)

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


AMD native wave64 run (listed as untested), plus an RTX 3060, paired against main with the direct translator on for the whole GPU suite.

Head d423c90 applied on main 6d12f58, debug, Windows 11 Pro 26200, XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4, on main and on this PR for each card:

main this PR
RX 9070 XT (RDNA4, 32.0.32029.2010, native wave64) 698 passed, 2 failed, 6 SKIPPED 701 passed, 2 failed, 6 SKIPPED
RTX 3060 (32.0.16.1088, wave32) 700 passed, 0 failed, 24 SKIPPED 703 passed, 0 failed, 24 SKIPPED

Per-test comparison: on both cards the only differences are the 3 new reload::tests (cache_invalidations_and_gws_barrier_end_available_loads, vopc_sdwa_sdst_invalidates_address_registers, vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil, all ok). No existing test changes result or skip state. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on main.

Not tested: DS_GWS_BARRIER executed on the GPU, the D3D12 debug layer, 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:7173392276 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7173392276). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T20:14:56Z. --- AMD native wave64 run (listed as untested), plus an RTX 3060, paired against `main` with the direct translator on for the whole GPU suite. Head `d423c90` applied on `main` `6d12f58`, debug, Windows 11 Pro 26200, `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu:: --test-threads=4`, on `main` and on this PR for each card: | | `main` | this PR | |---|---|---| | RX 9070 XT (RDNA4, 32.0.32029.2010, native wave64) | 698 passed, 2 failed, 6 SKIPPED | 701 passed, 2 failed, 6 SKIPPED | | RTX 3060 (32.0.16.1088, wave32) | 700 passed, 0 failed, 24 SKIPPED | 703 passed, 0 failed, 24 SKIPPED | Per-test comparison: on both cards the only differences are the 3 new `reload::tests` (`cache_invalidations_and_gws_barrier_end_available_loads`, `vopc_sdwa_sdst_invalidates_address_registers`, `vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil`, all ok). No existing test changes result or skip state. The 2 RX 9070 XT failures are the AMD fuzz seeds tracked in #2115, the same on `main`. Not tested: `DS_GWS_BARRIER` executed on the GPU, the D3D12 debug layer, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
DavidM1911 commented 2026-11-25 21:05:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:34:25Z.


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:7173870611 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7173870611). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:34:25Z. --- 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!
SlopTart commented 2026-11-25 21:05:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:37:08Z.


gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, and the promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Note gpu_depth_buffer_created_for_unordered_access_is_placed is green on main now, #2466 did its job on this lane.
Targeted run of the new non-suite tests (vopc_sdwa_sdst_invalidates_address_registers, vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil, cache_invalidations_and_gws_barrier_end_available_loads): 3 passed.

<!-- greyfinch-sync:ivall/xcl:comment:7173936540 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7173936540). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:37:08Z. --- `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, and the promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Note `gpu_depth_buffer_created_for_unordered_access_is_placed` is green on main now, #2466 did its job on this lane. Targeted run of the new non-suite tests (`vopc_sdwa_sdst_invalidates_address_registers`, `vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil`, `cache_invalidations_and_gws_barrier_end_available_loads`): 3 passed.
bmjask commented 2026-11-25 21:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:06:44Z.

Review: COMMENTED


No concrete source-level defect found. SDWA/SDST and pair(r,2) invalidation match lowering semantics, and new cache-invalidating names are conservative; coverage includes aliases, GWS, and Direct-DXIL wave32 execution. Current Windows CI is green. Residual disclosed gap: no native-wave64 live run or hardware DS_GWS_BARRIER execution. I found no blocker.

<!-- greyfinch-sync:ivall/xcl:review:6064987928 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#pullrequestreview-6064987928). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:06:44Z. **Review:** COMMENTED --- No concrete source-level defect found. SDWA/SDST and pair(r,2) invalidation match lowering semantics, and new cache-invalidating names are conservative; coverage includes aliases, GWS, and Direct-DXIL wave32 execution. Current Windows CI is green. Residual disclosed gap: no native-wave64 live run or hardware DS_GWS_BARRIER execution. I found no blocker.
xpatfussy69x commented 2026-11-25 23:09:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T22:09:17Z.


Test run on exact head d423c90 (d423c902918bcac16c8e8fe6192e85e2003c16b0, on its base 06055a7), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1416 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too)
  • cargo test -p xcl --lib reload: 9 passed, 0 failed
  • This PR's new tests in the workspace run:
    • vopc_sdwa_sdst_invalidates_address_registers: ok, not skipped
    • cache_invalidations_and_gws_barrier_end_available_loads: ok, not skipped
    • vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil: ok, not skipped

Regression run (60 s, default settings)

main:

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

this PR:

xcl-smoke v1
commit: d423c902918bcac16c8e8fe6192e85e2003c16b0
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1135 (PresentX 1135)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14748 MB

No crash or device removal; frames 104 % of main's, peak commit 100 %.

Not tested

  • The smoke run uses the default (HLSL) path, not XCL_DIRECT_DXIL=1: a regression check only
  • The PR merged into current main (tested on its own base; it merges into e1d84b7 without conflicts)
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7176004617 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7176004617). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T22:09:17Z. --- Test run on exact head `d423c90` (`d423c902918bcac16c8e8fe6192e85e2003c16b0`, on its base `06055a7`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1416 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too) - `cargo test -p xcl --lib reload`: 9 passed, 0 failed - This PR's new tests in the workspace run: - `vopc_sdwa_sdst_invalidates_address_registers`: ok, not skipped - `cache_invalidations_and_gws_barrier_end_available_loads`: ok, not skipped - `vopc_sdwa_sdst_reloads_updated_base_in_direct_dxil`: ok, not skipped **Regression run** (60 s, default settings) main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1091 (PresentX 1091) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` this PR: ``` xcl-smoke v1 commit: d423c902918bcac16c8e8fe6192e85e2003c16b0 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1135 (PresentX 1135) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14748 MB ``` No crash or device removal; frames 104 % of `main`'s, peak commit 100 %. **Not tested** - The smoke run uses the default (HLSL) path, not `XCL_DIRECT_DXIL=1`: a regression check only - The PR merged into current `main` (tested on its own base; it merges into `e1d84b7` without conflicts) - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
thehollowedone commented 2026-11-28 08:42:37 +00:00 (Migrated from github.com)

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


merge-check
base: e429936c10 (main at this check)
head: d423c90291
merge: clean; the merge changes only crates/xcl/src/gpu/dxil/reload.rs (+78/-4).
build: cargo build --offline --locked -j 4 --workspace -> ok on both the clean main control and the trial merge.
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> trial merge: 2,128 passed, 10 failed, 48 ignored across 39 targets; clean main: 2,125 passed, 10 failed, 48 ignored across 39 targets. Both runs printed 25 SKIPPED GPU/environment notices, which are not coverage. All three new gpu::dxil::reload::tests passed with no skips. The same ten tests failed on main and the merge with matching failure signatures: three dispatch_chain_* split tests (has_memory_binding), gpu_heap_flat_reads_match_guarded_and_root_output (wave64 lane 39), console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled), gpu_compute_mode_dispatch_abi and gpu_float_cas_uses_ieee_equality (split wave64 LDS), and three test_title_* e2e tests (post-Wait32/64 write failed (0x0)). These are baseline failures on this machine, not a green suite.
review: no source-level blocker found in the entire one-file diff. SDWA SDST invalidation covers the SGPR pair, including overlap with base and offset operands; SD=0 and NULL preserve reuse. The two buffer invalidations and DS_GWS_BARRIER end available-load reuse. Tests include direct-DXIL wave32 output. Native wave64 high-half output and hardware GWS execution remain unverified here.
performance: this changes compile-time available-load invalidation, with no new persistent allocation or unconditional frame-loop work. A real cache barrier or SDST write may now require a previously reused scalar load to be emitted again; that is required for correctness. Frame-time cost was not measured.
verdict: safe to merge relative to tested main e429936c; no new failure found. The ten baseline failures still need their own resolution. The PR description already includes an author-produced clean-commit smoke pair for this head; I did not run a title smoke in this merge check.
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, NVIDIA RTX 3080 Ti driver 621.35; Codex (GPT-6.2 Sol) performed the merge, build, tests, baseline comparison, and synthesis; Codex (GPT-6.2 Astra) reviewed the changed source and invariants.

<!-- greyfinch-sync:ivall/xcl:comment:7236759153 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7236759153). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T08:42:37Z. --- merge-check base: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd (`main` at this check) head: d423c902918bcac16c8e8fe6192e85e2003c16b0 merge: clean; the merge changes only `crates/xcl/src/gpu/dxil/reload.rs` (+78/-4). build: `cargo build --offline --locked -j 4 --workspace` -> ok on both the clean main control and the trial merge. tests: `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` -> trial merge: 2,128 passed, 10 failed, 48 ignored across 39 targets; clean main: 2,125 passed, 10 failed, 48 ignored across 39 targets. Both runs printed 25 `SKIPPED` GPU/environment notices, which are not coverage. All three new `gpu::dxil::reload::tests` passed with no skips. The same ten tests failed on main and the merge with matching failure signatures: three `dispatch_chain_*` split tests (`has_memory_binding`), `gpu_heap_flat_reads_match_guarded_and_root_output` (wave64 lane 39), `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (DXIL not compiled), `gpu_compute_mode_dispatch_abi` and `gpu_float_cas_uses_ieee_equality` (split wave64 LDS), and three `test_title_*` e2e tests (`post-Wait32/64 write failed (0x0)`). These are baseline failures on this machine, not a green suite. review: no source-level blocker found in the entire one-file diff. SDWA `SDST` invalidation covers the SGPR pair, including overlap with base and offset operands; `SD=0` and `NULL` preserve reuse. The two buffer invalidations and `DS_GWS_BARRIER` end available-load reuse. Tests include direct-DXIL wave32 output. Native wave64 high-half output and hardware GWS execution remain unverified here. performance: this changes compile-time available-load invalidation, with no new persistent allocation or unconditional frame-loop work. A real cache barrier or SDST write may now require a previously reused scalar load to be emitted again; that is required for correctness. Frame-time cost was not measured. verdict: safe to merge relative to tested main `e429936c`; no new failure found. The ten baseline failures still need their own resolution. The PR description already includes an author-produced clean-commit smoke pair for this head; I did not run a title smoke in this merge check. hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, NVIDIA RTX 3080 Ti driver 621.35; Codex (GPT-6.2 Sol) performed the merge, build, tests, baseline comparison, and synthesis; Codex (GPT-6.2 Astra) reviewed the changed source and invariants.
throny commented 2026-11-28 13:04:17 +00:00 (Migrated from github.com)

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


merge-check claim
head: d423c90291

<!-- greyfinch-sync:ivall/xcl:comment:7239668354 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7239668354). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:04:17Z. --- merge-check claim head: d423c902918bcac16c8e8fe6192e85e2003c16b0
throny commented 2026-11-28 13:22:29 +00:00 (Migrated from github.com)

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


merge-check
base: e429936c
head: d423c90291
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2129 passed, 9 failed, 48 ignored: the base's 9 only (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093); base alone: 2126 passed, 9 failed, 48 ignored.
review: no blocking finding. The gap is real: on main the reload analysis looks for the scalar destination only in the base compare encoding, so with the SDWA extension word's SD bit set a write to any scalar register pair was missed; the PR reads it from the extension encoding and skips the null register. The cache-invalidate and GWS barrier instructions are real additions. The store / atomic arm for scalar memory does nothing today (the spec table has no such instructions) and is harmless. Minor, not blocking: the other GWS semaphore instructions are sync points too and are still not treated as memory barriers. For #2446, which waited on this: the register gap it named is closed, and I found no other register writer the analysis misses.
performance: the analysis runs for compute and kernel programs on the opt-in direct-DXIL path; the extra kills keep a few more loads. Direct-DXIL users re-translate once; the HLSL cache identity does not change.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7239890037 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2479#issuecomment-7239890037). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:22:29Z. --- merge-check base: e429936c head: d423c902918bcac16c8e8fe6192e85e2003c16b0 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2129 passed, 9 failed, 48 ignored: the base's 9 only (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093); base alone: 2126 passed, 9 failed, 48 ignored. review: no blocking finding. The gap is real: on main the reload analysis looks for the scalar destination only in the base compare encoding, so with the SDWA extension word's SD bit set a write to any scalar register pair was missed; the PR reads it from the extension encoding and skips the null register. The cache-invalidate and GWS barrier instructions are real additions. The store / atomic arm for scalar memory does nothing today (the spec table has no such instructions) and is harmless. Minor, not blocking: the other GWS semaphore instructions are sync points too and are still not treated as memory barriers. For #2446, which waited on this: the register gap it named is closed, and I found no other register writer the analysis misses. performance: the analysis runs for compute and kernel programs on the opt-in direct-DXIL path; the extra kills keep a few more loads. Direct-DXIL users re-translate once; the HLSL cache identity does not change. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

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