dxil: fix alloca align=0, live double/TGSM metadata, and heap raw buffer flag (#1894) #2217

Open
zondy1i wants to merge 1 commit from upstream-pr/2227 into main
zondy1i commented 2026-11-25 10:40:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-25T10:40:20Z.


What is in it
Fixes the four remaining Direct DXIL bitcode and metadata bugs from #1894 (item 1, TG_SIZE div_ceil, is already fixed on main):

  • Op::Alloca with align == 0 (crates/xcl/src/gpu/dxil/module.rs): encode alignment 0 as 0 instead of 0u32.trailing_zeros() + 1 == 33, which silently set the LLVM 3.7 inalloca flag (bit 5) and align 1 (matching Op::Load, Op::Store, and MODULE_CODE_GLOBALVAR).
  • Dead / unreachable shader-flag scans (crates/xcl/src/gpu/dxil/module.rs): scan only reachable live blocks (block_layout()) in Module::uses_double_extensions() (and insts_use_type() / has_rov_handle()) instead of scanning dead instructions in self.insts, preventing mismatched DoubleExtensions shader flags after Module::optimize().
  • Stripped TGSM globals in mesh PSV0 (crates/xcl/src/gpu/dxil/module.rs, graphics.rs): factor out Module::live_decls() from bitcode emission and add Module::live_global_bytes_layout(), called by try_finish_graphics() so mesh PSV0 groupshared_bytes counts only TGSM globals actually emitted into bitcode.
  • Spurious Feature::RawAndStructuredBuffers on Shader::heap_raw_buffer_uav() (crates/xcl/src/gpu/dxil/shader.rs): dxil.dll 1.9 validation confirms that SM 6.6 ResourceDescriptorHeap raw buffers (createHandleFromHeap + annotateHandle) do not set the bound RawAndStructuredBuffers bit (0x10); removing the spurious self.require(Feature::RawAndStructuredBuffers) from heap_raw_buffer_uav() makes shaders whose only raw buffers come from the descriptor heap pass validation (correcting the direction noted in #1894 item 5).
  • Tests (crates/xcl/src/gpu/dxil/tests.rs, graphics_tests.rs): four new dxil.dll-validated tests covering each fix (dead_double_extension_does_not_set_feature_flag, alloca_with_default_align_zero_validates_without_inalloca, heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag, and mesh_psv0_excludes_stripped_groupshared_globals).

Fixes #1894.

Tested

  • Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, rustc 1.100.0, DXC / dxil.dll 1.9.2602.17, debug & release builds.
  • cargo test --workspace -- --test-threads=4: 1158 passed, 0 failed, 46 ignored (SKIPPED GPU tests: 20 native wave64 tests on 32-lane NVIDIA GPU, 3 pre-existing f16/f32-to-f16 per-lane refusals, 1 driver-cache test without Windows Developer Mode, 1 heap-window test).
  • xcl shaders <pack> --direct --validate --sample 1000 (release build): 837 / 837 translated and validated by dxil.dll 1.9 (CS 63, GS 18, MS 328, PS 339, VS 89), 0 validator errors, 0 panics.

Regression run
Baseline (main 568e7db):

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1580 (PresentX 1580)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15495 MB

PR (f296ca8):

xcl-smoke v1
commit: f296ca8ff351e425d084c312c7eef86c57878c0a
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1644 (PresentX 1644)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15542 MB

Not tested

  • AMD (native wave64) and Intel Arc GPUs.

AI use

  • Antigravity (Gemini 4 Neon) assisted with implementing the four fixes, validating the heap raw-buffer flag behavior against dxil.dll 1.9, adding the four validator tests, and running the test and smoke sweeps.
<!-- greyfinch-sync:ivall/xcl:issue:5489717405 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-25T10:40:20Z. --- **What is in it** Fixes the four remaining Direct DXIL bitcode and metadata bugs from #1894 (item 1, `TG_SIZE` `div_ceil`, is already fixed on `main`): - **`Op::Alloca` with `align == 0`** (`crates/xcl/src/gpu/dxil/module.rs`): encode alignment `0` as `0` instead of `0u32.trailing_zeros() + 1 == 33`, which silently set the LLVM 3.7 `inalloca` flag (bit 5) and `align 1` (matching `Op::Load`, `Op::Store`, and `MODULE_CODE_GLOBALVAR`). - **Dead / unreachable shader-flag scans** (`crates/xcl/src/gpu/dxil/module.rs`): scan only reachable live blocks (`block_layout()`) in `Module::uses_double_extensions()` (and `insts_use_type()` / `has_rov_handle()`) instead of scanning dead instructions in `self.insts`, preventing mismatched `DoubleExtensions` shader flags after `Module::optimize()`. - **Stripped TGSM globals in mesh `PSV0`** (`crates/xcl/src/gpu/dxil/module.rs`, `graphics.rs`): factor out `Module::live_decls()` from bitcode emission and add `Module::live_global_bytes_layout()`, called by `try_finish_graphics()` so mesh `PSV0` `groupshared_bytes` counts only TGSM globals actually emitted into bitcode. - **Spurious `Feature::RawAndStructuredBuffers` on `Shader::heap_raw_buffer_uav()`** (`crates/xcl/src/gpu/dxil/shader.rs`): `dxil.dll 1.9` validation confirms that SM 6.6 `ResourceDescriptorHeap` raw buffers (`createHandleFromHeap` + `annotateHandle`) do **not** set the bound `RawAndStructuredBuffers` bit (`0x10`); removing the spurious `self.require(Feature::RawAndStructuredBuffers)` from `heap_raw_buffer_uav()` makes shaders whose only raw buffers come from the descriptor heap pass validation (correcting the direction noted in #1894 item 5). - **Tests** (`crates/xcl/src/gpu/dxil/tests.rs`, `graphics_tests.rs`): four new `dxil.dll`-validated tests covering each fix (`dead_double_extension_does_not_set_feature_flag`, `alloca_with_default_align_zero_validates_without_inalloca`, `heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag`, and `mesh_psv0_excludes_stripped_groupshared_globals`). Fixes #1894. **Tested** - Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, `rustc 1.100.0`, DXC / `dxil.dll` 1.9.2602.17, debug & release builds. - `cargo test --workspace -- --test-threads=4`: 1158 passed, 0 failed, 46 ignored (SKIPPED GPU tests: 20 native wave64 tests on 32-lane NVIDIA GPU, 3 pre-existing f16/f32-to-f16 per-lane refusals, 1 driver-cache test without Windows Developer Mode, 1 heap-window test). - `xcl shaders <pack> --direct --validate --sample 1000` (release build): 837 / 837 translated and validated by `dxil.dll 1.9` (CS 63, GS 18, MS 328, PS 339, VS 89), 0 validator errors, 0 panics. **Regression run** Baseline (`main` `568e7db`): ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1580 (PresentX 1580) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15495 MB ``` PR (`f296ca8`): ``` xcl-smoke v1 commit: f296ca8ff351e425d084c312c7eef86c57878c0a gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1644 (PresentX 1644) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15542 MB ``` **Not tested** - AMD (native wave64) and Intel Arc GPUs. **AI use** - Antigravity (Gemini 4 Neon) assisted with implementing the four fixes, validating the heap raw-buffer flag behavior against `dxil.dll 1.9`, adding the four validator tests, and running the test and smoke sweeps.
raylitebull commented 2026-11-25 11:09:23 +00:00 (Migrated from github.com)

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


Full diff review on f296ca8 (graphics.rs, graphics_tests.rs, module.rs, shader.rs, tests.rs) looks clean, and CI is green.

Only item remaining for dual-vendor coverage on f296ca8 is an independent AMD GPU (native wave64) test run.

<!-- greyfinch-sync:ivall/xcl:comment:7160161606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7160161606). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:46:46Z. --- Full diff review on `f296ca8` (`graphics.rs`, `graphics_tests.rs`, `module.rs`, `shader.rs`, `tests.rs`) looks clean, and CI is green. Only item remaining for dual-vendor coverage on `f296ca8` is an independent AMD GPU (native wave64) test run.
DarkPanda69 commented 2026-11-25 11:09:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T11:09:11Z.


The AMD native wave64 run the PR and the review above ask for, plus an RTX 3060, paired against main with the direct translator on for the whole GPU suite.

Head f296ca8 applied on main f087b99, 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) 625 passed, 4 failed, 22 ignored, 6 SKIPPED 629 passed, 4 failed, 22 ignored, 6 SKIPPED
RTX 3060 (32.0.16.1088, wave32, split wave64) 628 passed, 1 failed, 22 ignored, 23 SKIPPED 632 passed, 1 failed, 22 ignored, 23 SKIPPED

Per-test comparison: on both cards the only differences are the 4 new tests (all ok): alloca_with_default_align_zero_validates_without_inalloca, dead_double_extension_does_not_set_feature_flag, heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag, mesh_psv0_excludes_stripped_groupshared_globals. No existing test changes result or skip state. The failures are all on current main without this PR: rerouted_disk_entries_follow_the_direct_translator on both cards (reported on #2120), and on the RX 9070 XT gpu_image_get_resinfo_past_last_level (reported on #2054) plus the fuzz seeds tracked in #2115.

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

<!-- greyfinch-sync:ivall/xcl:comment:7160662779 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7160662779). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T11:09:11Z. --- The AMD native wave64 run the PR and the review above ask for, plus an RTX 3060, paired against `main` with the direct translator on for the whole GPU suite. Head `f296ca8` applied on `main` `f087b99`, 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) | 625 passed, 4 failed, 22 ignored, 6 SKIPPED | 629 passed, 4 failed, 22 ignored, 6 SKIPPED | | RTX 3060 (32.0.16.1088, wave32, split wave64) | 628 passed, 1 failed, 22 ignored, 23 SKIPPED | 632 passed, 1 failed, 22 ignored, 23 SKIPPED | Per-test comparison: on both cards the only differences are the 4 new tests (all ok): `alloca_with_default_align_zero_validates_without_inalloca`, `dead_double_extension_does_not_set_feature_flag`, `heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag`, `mesh_psv0_excludes_stripped_groupshared_globals`. No existing test changes result or skip state. The failures are all on current `main` without this PR: `rerouted_disk_entries_follow_the_direct_translator` on both cards ([reported on #2120](https://github.com/xcl-dev/xcl/pull/2120#issuecomment-7160464424)), and on the RX 9070 XT `gpu_image_get_resinfo_past_last_level` ([reported on #2054](https://github.com/xcl-dev/xcl/pull/2054#issuecomment-7160350010)) plus the fuzz seeds tracked in #2115. Not tested: Intel Arc, a title with `XCL_DIRECT_DXIL=1`. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
throny commented 2026-11-25 15:08:02 +00:00 (Migrated from github.com)

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


Two contributors checked independently and found that #1952 #2255 solves the same problem (for #1894) in a different way: #1607, group D73. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7165989136 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7165989136). Originally posted by [throny](https://github.com/throny) on 2026-11-25T14:53:59Z. --- <!-- xcl-1607-hint:D73 --> Two contributors checked independently and found that #1952 #2255 solves the same problem (for #1894) in a different way: #1607, group D73. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
zondy1i commented 2026-11-25 16:12:17 +00:00 (Migrated from github.com)

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


Comparison for #1607 (group D73: #2227 vs #1952 and #2255):

  • #2227 covers all four remaining #1894 items in one clean, MERGEABLE, green-CI diff already reviewed by @raylitebull and verified on both AMD RDNA4 (RX 9070 XT) and NVIDIA (RTX 3060 / 3060 Ti):
    1. Op::Alloca align == 0 encoded as 0 (no spurious inalloca bit 5).
    2. uses_double_extensions(), insts_use_type(), and has_rov_handle() scan only reachable blocks via block_layout() (excluding both dead instructions and unreachable blocks).
    3. Mesh PSV0 groupshared_bytes uses live_global_bytes_layout() sharing live_decls() with bitcode emission.
    4. Removes the spurious Feature::RawAndStructuredBuffers from Shader::heap_raw_buffer_uav() (verified with dxil.dll 1.9 that heap-only raw buffers fail validation when bit 0x10 is set).
  • #1952 addresses only items 3 & 4 (omitting uses_double_extensions and heap_raw_buffer_uav), currently fails PR description, and has an unneeded TRANSLATOR_VERSION bump.
  • #2255 has merge conflicts, scans blocks.iter().flatten() (still including unreachable blocks), and leaves the spurious RawAndStructuredBuffers flag in heap_raw_buffer_uav().

Only one PR is needed for #1894; #2227 is a strict superset of #1952 and #2255, has dual-vendor verification, and is ready to merge.

<!-- greyfinch-sync:ivall/xcl:comment:7167000571 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7167000571). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-25T15:32:25Z. --- Comparison for #1607 (group D73: #2227 vs #1952 and #2255): - **#2227** covers all four remaining #1894 items in one clean, `MERGEABLE`, green-CI diff already reviewed by @raylitebull and verified on both AMD RDNA4 (RX 9070 XT) and NVIDIA (RTX 3060 / 3060 Ti): 1. `Op::Alloca` `align == 0` encoded as `0` (no spurious `inalloca` bit 5). 2. `uses_double_extensions()`, `insts_use_type()`, and `has_rov_handle()` scan only reachable blocks via `block_layout()` (excluding both dead instructions and unreachable blocks). 3. Mesh `PSV0` `groupshared_bytes` uses `live_global_bytes_layout()` sharing `live_decls()` with bitcode emission. 4. Removes the spurious `Feature::RawAndStructuredBuffers` from `Shader::heap_raw_buffer_uav()` (verified with `dxil.dll 1.9` that heap-only raw buffers fail validation when bit `0x10` is set). - **#1952** addresses only items 3 & 4 (omitting `uses_double_extensions` and `heap_raw_buffer_uav`), currently fails `PR description`, and has an unneeded `TRANSLATOR_VERSION` bump. - **#2255** has merge conflicts, scans `blocks.iter().flatten()` (still including unreachable blocks), and leaves the spurious `RawAndStructuredBuffers` flag in `heap_raw_buffer_uav()`. Only one PR is needed for #1894; #2227 is a strict superset of #1952 and #2255, has dual-vendor verification, and is ready to merge.
upstream-sync closed this pull request 2026-11-25 23:08:07 +00:00
CalvyPZ commented 2026-11-25 23:09:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:43:41Z.


This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.

<!-- greyfinch-sync:ivall/xcl:comment:7176716207 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7176716207). Originally posted by [CalvyPZ](https://github.com/CalvyPZ) on 2026-11-25T22:43:41Z. --- This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
upstream-sync reopened this pull request 2026-11-26 00:04:54 +00:00
Decodere commented 2026-11-27 10:22:23 +00:00 (Migrated from github.com)

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


Independent desktop NVIDIA verification of PR #2227 at head f296ca8ff351e425d084c312c7eef86c57878c0a (1 commit; exact parent & merge-base: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb, 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 tests & build (f296ca8f)

Command Result
cargo test --release -p xcl --lib -- --nocapture mesh_psv0_excludes_stripped_groupshared_globals dead_double_extension_does_not_set_feature_flag alloca_with_default_align_zero_validates_without_inalloca heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag (3 consecutive runs) 4 passed; 0 failed; 0 ignored; 1124 filtered out × 3 (0.01s, 0.01s, 0.01s, 0 skipped; live DXIL 1.9.2609.5 SDK validator checks on all 4 new regressions for #1894)
cargo test --release -p xcl --lib gpu::dxil:: -- --nocapture (3 consecutive runs) 126 passed; 0 failed; 3 ignored; 999 filtered out × 3 (4.52s, 4.53s, 3.82s, 0 runtime skips; 3 pre-existing #[ignore] debug/seed tests; includes 2000 DXIL fuzz validation seeds and 1232 live RTX 4060 GPU comparisons per run)
cargo build --release -p xcl Clean build (1m 29s, exit 0, 0 new warnings across the 5 modified gpu::dxil files)

Paired quiet 60 s retail smoke (title: 29640639)

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

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

PR #2227 (f296ca8ff351e425d084c312c7eef86c57878c0a):

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

Limits of coverage

  • All 4 new #1894 DXIL metadata/validation tests (alloca default align=0 without inalloca, live double-extension flag, stripped groupshared PSV0 sizing, and heap raw-buffer UAV flag) plus the full gpu::dxil:: suite (126 tests + 2000 fuzz seeds / 1232 GPU comparisons) passed 3/3 with dxil.dll 1.9.2609.5 on desktop RTX 4060 (Wave32-only Ada; native Wave64 paths are not exercised).
  • The 60 s retail smoke exercises the default runtime path cleanly (0 device removals, 0 crashes, steady 60 Hz); single-run frame/commit delta vs. the cached parent reflects normal startup variance rather than this PR.

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

<!-- greyfinch-sync:ivall/xcl:comment:7215806079 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7215806079). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T10:22:23Z. --- Independent desktop NVIDIA verification of **PR #2227** at head `f296ca8ff351e425d084c312c7eef86c57878c0a` (`1` commit; exact parent & merge-base: `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`, 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 tests & build (`f296ca8f`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib -- --nocapture mesh_psv0_excludes_stripped_groupshared_globals dead_double_extension_does_not_set_feature_flag alloca_with_default_align_zero_validates_without_inalloca heap_raw_buffer_uav_does_not_set_spurious_raw_buffer_flag` (3 consecutive runs) | `4 passed; 0 failed; 0 ignored; 1124 filtered out` × 3 (`0.01s`, `0.01s`, `0.01s`, `0` skipped; live DXIL `1.9.2609.5` SDK validator checks on all 4 new regressions for `#1894`) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --nocapture` (3 consecutive runs) | `126 passed; 0 failed; 3 ignored; 999 filtered out` × 3 (`4.52s`, `4.53s`, `3.82s`, `0` runtime skips; `3` pre-existing `#[ignore]` debug/seed tests; includes `2000` DXIL fuzz validation seeds and `1232` live RTX 4060 GPU comparisons per run) | | `cargo build --release -p xcl` | Clean build (`1m 29s`, exit `0`, `0` new warnings across the 5 modified `gpu::dxil` files) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`568e7db7729c8fa6c8f0f4b32d798faaf11462bb`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1587 (PresentX 1587) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14527 MB ``` PR #2227 (`f296ca8ff351e425d084c312c7eef86c57878c0a`): ``` xcl-smoke v1 commit: f296ca8ff351e425d084c312c7eef86c57878c0a gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1557 (PresentX 1557) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14486 MB ``` ### Limits of coverage - All 4 new `#1894` DXIL metadata/validation tests (`alloca` default align=0 without `inalloca`, live double-extension flag, stripped groupshared PSV0 sizing, and heap raw-buffer UAV flag) plus the full `gpu::dxil::` suite (`126` tests + `2000` fuzz seeds / `1232` GPU comparisons) passed `3/3` with `dxil.dll 1.9.2609.5` on desktop RTX 4060 (Wave32-only Ada; native Wave64 paths are not exercised). - The 60 s retail smoke exercises the default runtime path cleanly (`0` device removals, `0` crashes, steady 60 Hz); single-run frame/commit delta vs. the cached parent reflects normal startup variance rather than this PR. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Foniass commented 2026-12-01 07:37:21 +00:00 (Migrated from github.com)

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


Triage (#1607) – head f296ca8

#2255 (open, same issue #1894) overlaps in part. Both encode an align == 0 alloca as 0 instead of inalloca, factor out the live-globals scan and count only referenced TGSM in PSV0. They differ elsewhere. This PR scans only reachable blocks for double extensions and drops RawAndStructuredBuffers from heap_raw_buffer_uav (the flag is still set by the raw load/store ops in ops.rs). #2255 adds a TG_SIZE test and a power-of-two assert. Main has neither alloca fix nor the live TGSM count yet.
No problems found in the diff.
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:7304281473 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2227#issuecomment-7304281473). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:37:21Z. --- **Triage (#1607)** – head f296ca8 #2255 (open, same issue #1894) overlaps in part. Both encode an `align == 0` alloca as 0 instead of `inalloca`, factor out the live-globals scan and count only referenced TGSM in PSV0. They differ elsewhere. This PR scans only reachable blocks for double extensions and drops `RawAndStructuredBuffers` from `heap_raw_buffer_uav` (the flag is still set by the raw load/store ops in `ops.rs`). #2255 adds a TG_SIZE test and a power-of-two assert. Main has neither alloca fix nor the live TGSM count yet. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

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