Recompiler: direct DXIL geometry shaders read ES inputs from window 0's heap view #2244

Closed
joeypercia wants to merge 1 commit from upstream-pr/2254 into main
joeypercia commented 2026-11-25 11:28:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-25T11:28:13Z.


With the memory windows in the descriptor heap (XCL_HEAP_WINDOWS=1, the setting #2057 runs with), the direct DXIL translator refuses 158 of the newer retail title's 390 geometry shaders, and they fall back to the HLSL route (direct_fallback). The GS entry (geom_init) loads the ES outputs it reads (v9..) through lw.mems[0]. In heap mode that's a placeholder whose handle is the constant 0 (kernel::mem_windows: "mems then only counts them"), so the raw load gets an i32 as its handle. The DXIL builder refuses that: function dx.op.rawBufferLoad.i32 redeclared with another type. Window 0 now comes from the heap (MEM_HEAP_BASE), as every other access in this mode takes it.

Part of #1269 (fewer programs off the direct route).

What is in it

  • crates/xcl/src/gpu/dxil/kernel.rs: geom_init takes window 0's raw view from the descriptor heap when heap_mem is set, and mems[0] otherwise (unchanged).
  • crates/xcl/src/gpu/dxil/geometry_tests.rs: geometry_inputs_with_heap_windows_validate, the test program of geometry_forms_validate reading one ES input (v9), translated with 1 window, 4 root windows and 4 heap windows, wave64 and split. Without the change it fails with the error above, for windows 0x104.

Tested

  • NVIDIA GeForce RTX 4070 Ti (Ada, 32-lane waves), driver 621.40, and the AMD Radeon iGPU of a Ryzen 7 7800X3D (RDNA2, no mesh shaders) with XCL_ADAPTER=Radeon; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug for the tests, release for the runs.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on c1e6807:
    • RTX 4070 Ti: 1242 passed, 2 failed, 46 ignored.
    • RDNA2: 1240 passed, 4 failed, 46 ignored.
    • The failures fail the same way on main 9633138 on each adapter (run with the same filter): shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator and device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa on both, plus recomp::tests::gpu_image_get_resinfo_past_last_level and fuzz_tests::fuzz_validate_and_gpu_1 on RDNA2.
    • SKIPPED: RTX 4070 Ti: the wave64 cases of the lower / lower_dxil GPU tests, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64). RDNA2: the mesh-shader tests, gpu_geometry_direct_records among them. Both: heap_window_out_of_memory_falls_back_to_the_switch_form, pso_measurement_compiles_an_exact_synthetic_record (no Developer Mode), test_title_draws_with_a_root_signature_under_the_debug_layer, uploads_start_from_each_subresources_state, and the lower_dxil f16 / f32 cases the direct backend refuses.
  • The title's shader pack, every program, heap windows: xcl shaders shaders.rpf --direct --sample 0 --windows 260 --validate:
    • main: GS 232 of 390 translated (158 refused with the error above). CS 2689 / 2689, MS 9282 / 9282, PS 12101 / 12101 and VS 2236 / 2236.
    • this PR: GS 390 of 390, all of them validating. The other stages are unchanged.

Regression run

RTX 4070 Ti (driver 621.40), release builds, 60 s each, scripts/smoke.ps1 -Game <folder> -Title retail-title on the newer retail title, run one after the other from the same shell, with the same settings. The runs stay on the menus, so they're a regression check only: they don't show a heap-window geometry shader being translated. main 9633138 (this PR's base) and this PR's head (no uncommitted changes):

main:

xcl-smoke v1
commit: 963313835813f475037b3a9f5fcc3cb591696928
gpu: NVIDIA GeForce RTX 4070 Ti
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 60 60 57
device removals: 0
crashes: 0
peak commit: 16068 MB

PR:

xcl-smoke v1
commit: c1e6807941d8951c111900b14cce7cef2c2543c6
gpu: NVIDIA GeForce RTX 4070 Ti
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1578 (PresentX 1578)
presents per 2 s (last 3): 60 60 53
device removals: 0
crashes: 0
peak commit: 16488 MB

Not tested

  • The GPU output of a heap-window geometry shader with inputs. The direct GS GPU test (gpu_geometry_direct_records) runs one window only, and its program reads no inputs. This change only affects heap mode.
  • Whether the title draws differently in the world with these geometry shaders on the direct route. The smoke run stays on the menus.
  • AMD with heap windows in the title.

AI use

  • Claude Code with Claude Opus 5.5: found the error in a shader-pack sweep, wrote the fix, the test and this description, and ran the tests and the runs on the hardware above.
<!-- greyfinch-sync:ivall/xcl:issue:5490454525 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-25T11:28:13Z. --- With the memory windows in the descriptor heap (`XCL_HEAP_WINDOWS=1`, the setting #2057 runs with), the direct DXIL translator refuses 158 of the newer retail title's 390 geometry shaders, and they fall back to the HLSL route (`direct_fallback`). The GS entry (`geom_init`) loads the ES outputs it reads (v9..) through `lw.mems[0]`. In heap mode that's a placeholder whose handle is the constant `0` (`kernel::mem_windows`: "`mems` then only counts them"), so the raw load gets an `i32` as its handle. The DXIL builder refuses that: `function dx.op.rawBufferLoad.i32 redeclared with another type`. Window 0 now comes from the heap (`MEM_HEAP_BASE`), as every other access in this mode takes it. Part of #1269 (fewer programs off the direct route). **What is in it** - `crates/xcl/src/gpu/dxil/kernel.rs`: `geom_init` takes window 0's raw view from the descriptor heap when `heap_mem` is set, and `mems[0]` otherwise (unchanged). - `crates/xcl/src/gpu/dxil/geometry_tests.rs`: `geometry_inputs_with_heap_windows_validate`, the test program of `geometry_forms_validate` reading one ES input (v9), translated with 1 window, 4 root windows and 4 heap windows, wave64 and split. Without the change it fails with the error above, for `windows 0x104`. **Tested** - NVIDIA GeForce RTX 4070 Ti (Ada, 32-lane waves), driver 621.40, and the AMD Radeon iGPU of a Ryzen 7 7800X3D (RDNA2, no mesh shaders) with `XCL_ADAPTER=Radeon`; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug for the tests, release for the runs. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on `c1e6807`: - RTX 4070 Ti: **1242 passed, 2 failed, 46 ignored**. - RDNA2: **1240 passed, 4 failed, 46 ignored**. - The failures fail the same way on `main` `9633138` on each adapter (run with the same filter): `shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator` and `device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa` on both, plus `recomp::tests::gpu_image_get_resinfo_past_last_level` and `fuzz_tests::fuzz_validate_and_gpu_1` on RDNA2. - `SKIPPED`: RTX 4070 Ti: the wave64 cases of the `lower` / `lower_dxil` GPU tests, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). RDNA2: the mesh-shader tests, `gpu_geometry_direct_records` among them. Both: `heap_window_out_of_memory_falls_back_to_the_switch_form`, `pso_measurement_compiles_an_exact_synthetic_record` (no Developer Mode), `test_title_draws_with_a_root_signature_under_the_debug_layer`, `uploads_start_from_each_subresources_state`, and the `lower_dxil` f16 / f32 cases the direct backend refuses. - The title's shader pack, every program, heap windows: `xcl shaders shaders.rpf --direct --sample 0 --windows 260 --validate`: - `main`: GS 232 of 390 translated (158 refused with the error above). CS 2689 / 2689, MS 9282 / 9282, PS 12101 / 12101 and VS 2236 / 2236. - this PR: GS 390 of 390, all of them validating. The other stages are unchanged. **Regression run** RTX 4070 Ti (driver 621.40), release builds, 60 s each, `scripts/smoke.ps1 -Game <folder> -Title retail-title` on the newer retail title, run one after the other from the same shell, with the same settings. The runs stay on the menus, so they're a regression check only: they don't show a heap-window geometry shader being translated. `main` `9633138` (this PR's base) and this PR's head (no uncommitted changes): main: ``` xcl-smoke v1 commit: 963313835813f475037b3a9f5fcc3cb591696928 gpu: NVIDIA GeForce RTX 4070 Ti title: retail-title seconds: 60 exit: 0x0 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 60 60 57 device removals: 0 crashes: 0 peak commit: 16068 MB ``` PR: ``` xcl-smoke v1 commit: c1e6807941d8951c111900b14cce7cef2c2543c6 gpu: NVIDIA GeForce RTX 4070 Ti title: retail-title seconds: 60 exit: 0x0 frames shown: 1578 (PresentX 1578) presents per 2 s (last 3): 60 60 53 device removals: 0 crashes: 0 peak commit: 16488 MB ``` **Not tested** - The GPU output of a heap-window geometry shader with inputs. The direct GS GPU test (`gpu_geometry_direct_records`) runs one window only, and its program reads no inputs. This change only affects heap mode. - Whether the title draws differently in the world with these geometry shaders on the direct route. The smoke run stays on the menus. - AMD with heap windows in the title. **AI use** - Claude Code with Claude Opus 5.5: found the error in a shader-pack sweep, wrote the fix, the test and this description, and ran the tests and the runs on the hardware above.
itsSio commented 2026-11-25 13:05:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T12:07:04Z.


Tested

Independent Windows verification on clean c1e6807941d8951c111900b14cce7cef2c2543c6. Windows 11 Pro build 26200, x64 MSVC, unoptimized dev/test profiles with debug info off. cargo build --workspace --locked exited 0 on both PCs. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture exited 101 on both:

GPU / driver CPU, RAM, toolchain Passed / failed / ignored Runtime SKIPPED
RTX 5080 / 32.0.16.1088 Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 1242 / 2 / 46 25
RTX 2080 SUPER / 32.0.16.1088 Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 1242 / 2 / 46 27

On both PCs the failures were rerouted_disk_entries_follow_the_direct_translator (68 vs 1) and pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (format 85, got 28). These match the assertions reproduced on an earlier main revision, not an exact-parent rerun for this PR. Both workspace results remain failing. The RTX 2080 SUPER logged two additional skips for the unavailable D3D12 debug layer.

cargo test -p xcl --lib --locked gpu::dxil::geometry_tests:: -- --test-threads=1 --nocapture: 3 passed / 0 failed / 0 ignored, no runtime skips, on each RTX card and the Radeon RDNA2 iGPU (driver 32.0.21043.5001, on the same Ryzen 7 system). geometry_inputs_with_heap_windows_validate passed DXIL validation with heap-window inputs on both DXIL validator versions. gpu_geometry_direct_records passed separately; it is a one-window smoke and does not validate GPU output for heap-window inputs.

Not tested

Heap-window geometry GPU readback with inputs, the exact parent, full AMD workspace, Intel, and retail smoke or performance.

AI use

Ran via Samaritan:

  • OpenCode with OpenAI GPT-6.2 Sol (openai/gpt-6.2-sol): scoped and ran the Windows verification, checked both PCs' logs, and wrote this report. No subagents contributed to this check.
<!-- greyfinch-sync:ivall/xcl:comment:7161941156 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7161941156). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-25T12:07:04Z. --- **Tested** Independent Windows verification on clean `c1e6807941d8951c111900b14cce7cef2c2543c6`. Windows 11 Pro build 26200, x64 MSVC, unoptimized dev/test profiles with debug info off. `cargo build --workspace --locked` exited 0 on both PCs. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture` exited 101 on both: | GPU / driver | CPU, RAM, toolchain | Passed / failed / ignored | Runtime `SKIPPED` | | --- | --- | ---: | ---: | | RTX 5080 / `32.0.16.1088` | Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 | 1242 / 2 / 46 | 25 | | RTX 2080 SUPER / `32.0.16.1088` | Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 | 1242 / 2 / 46 | 27 | On both PCs the failures were `rerouted_disk_entries_follow_the_direct_translator` (68 vs 1) and `pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa` (format 85, got 28). These match the assertions reproduced on an [earlier main revision](https://github.com/xcl-dev/xcl/pull/2229#issuecomment-7160991433), not an exact-parent rerun for this PR. Both workspace results remain failing. The RTX 2080 SUPER logged two additional skips for the unavailable D3D12 debug layer. `cargo test -p xcl --lib --locked gpu::dxil::geometry_tests:: -- --test-threads=1 --nocapture`: **3 passed / 0 failed / 0 ignored**, no runtime skips, on each RTX card and the Radeon RDNA2 iGPU (driver `32.0.21043.5001`, on the same Ryzen 7 system). `geometry_inputs_with_heap_windows_validate` passed DXIL validation with heap-window inputs on both DXIL validator versions. `gpu_geometry_direct_records` passed separately; it is a one-window smoke and does not validate GPU output for heap-window inputs. **Not tested** Heap-window geometry GPU readback with inputs, the exact parent, full AMD workspace, Intel, and retail smoke or performance. **AI use** Ran via Samaritan: - OpenCode with OpenAI GPT-6.2 Sol (`openai/gpt-6.2-sol`): scoped and ran the Windows verification, checked both PCs' logs, and wrote this report. No subagents contributed to this check.
nnonno91 commented 2026-11-25 16:12:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T15:24:42Z.


Independent Windows check of c1e6807941d8951c111900b14cce7cef2c2543c6. The geometry translation tests passed, and the new heap-window test caught the original builder failure with the parent implementation.

Tested

  • Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, Radeon integrated graphics (32.0.21042.62), RTX 5090 (32.0.16.1742), Rust 1.100.0 x64 MSVC, Windows SDK DXC/DXIL 1.8.2502.11. Unoptimized test profile.
  • Clean head, cargo test --locked -p xcl --lib gpu::dxil::geometry_tests -- --nocapture --test-threads=1 on each selected adapter: 3 passed, 0 failed, 0 ignored, no logged skips per adapter. The new fixture checked translation with one window, four root windows, and four heap windows, in both native and split forms. The separate GPU test matched the expected geometry records on both adapters, using one window.
  • Temporarily used kernel.rs from parent 963313835813f475037b3a9f5fcc3cb591696928 with the PR's test source. cargo test --locked -p xcl --lib geometry_inputs_with_heap_windows_validate -- --nocapture --test-threads=1: 0 passed, 1 failed, 0 ignored, no logged skips. For native translation with windows 0x104, the old code rejected the shader with dx.op.rawBufferLoad.i32 redeclared with another type. Restored the clean checkout.

Not tested

GPU execution of the heap-window fixture, retail titles, or the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) prepared and ran the tests, verified the results, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7166800372 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7166800372). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T15:24:42Z. --- Independent Windows check of `c1e6807941d8951c111900b14cce7cef2c2543c6`. The geometry translation tests passed, and the new heap-window test caught the original builder failure with the parent implementation. **Tested** - Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, Radeon integrated graphics (32.0.21042.62), RTX 5090 (32.0.16.1742), Rust 1.100.0 x64 MSVC, Windows SDK DXC/DXIL 1.8.2502.11. Unoptimized test profile. - Clean head, `cargo test --locked -p xcl --lib gpu::dxil::geometry_tests -- --nocapture --test-threads=1` on each selected adapter: 3 passed, 0 failed, 0 ignored, no logged skips per adapter. The new fixture checked translation with one window, four root windows, and four heap windows, in both native and split forms. The separate GPU test matched the expected geometry records on both adapters, using one window. - Temporarily used `kernel.rs` from parent `963313835813f475037b3a9f5fcc3cb591696928` with the PR's test source. `cargo test --locked -p xcl --lib geometry_inputs_with_heap_windows_validate -- --nocapture --test-threads=1`: 0 passed, 1 failed, 0 ignored, no logged skips. For native translation with windows `0x104`, the old code rejected the shader with `dx.op.rawBufferLoad.i32 redeclared with another type`. Restored the clean checkout. **Not tested** GPU execution of the heap-window fixture, retail titles, or the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) prepared and ran the tests, verified the results, and wrote this report.
oni-swr commented 2026-11-25 16:12:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T16:06:25Z.


amd-win test report for head c1e6807941d8951c111900b14cce7cef2c2543c6 (exact PR head, not a merge; its merge-base with main is 96331383).

Hardware: AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 26200, Rust 1.100.0, debug for tests, release for the smoke runs.

Focused test

  • cargo test -p xcl --lib geometry_inputs_with_heap_windows_validate: 1 passed, 0 failed
  • cargo test -p xcl --lib gpu::dxil::: 147 passed, 1 failed (fuzz_validate_and_gpu_1, see below), 3 ignored

Full suite: cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 1240 passed, 4 failed, 46 ignored.

  • The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator, gpu::recomp::tests::gpu_image_get_resinfo_past_last_level and hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa. All 4 fail the same way on the merge-base 96331383 on this machine, so none is caused by this PR.
  • SKIPPED (adapter/semantics, not coverage): f16_programs_on_the_gpu and f32_programs_on_the_gpu (several forms, "unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32"), heap_window_out_of_memory_falls_back_to_the_switch_form ("no heap windows").

Regression run (retail title, 60 s, scripts/smoke.ps1 -Seconds 60, release builds of 96331383 and of the PR head; one run each, so run-to-run noise applies). These are not pasted xcl-smoke blocks: the script stamps the checkout's HEAD, and I ran both binaries from one checkout, so I quote the numbers instead.

frames shown presents per 2 s (last 3) device removals crashes peak commit
96331383 (main) 1506 61 59 61 0 0 17017 MB
PR head 1455 60 61 60 0 0 16608 MB

PR head is 97 % of main's frames, and its peak commit is 98 % of main's.

Not tested: NVIDIA, wave32-only GPUs, runs longer than 60 s, any title other than the one above. The change is to GS translation (ES inputs read from the heap view); I did not check whether the smoke run's title uses a direct-DXIL geometry shader, so the run is a regression check only.

AI use: this report was run and written by Claude Code (Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7167598998 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7167598998). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T16:06:25Z. --- **amd-win test report** for head `c1e6807941d8951c111900b14cce7cef2c2543c6` (exact PR head, not a merge; its merge-base with `main` is `96331383`). Hardware: AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 26200, Rust 1.100.0, debug for tests, release for the smoke runs. **Focused test** - `cargo test -p xcl --lib geometry_inputs_with_heap_windows_validate`: 1 passed, 0 failed - `cargo test -p xcl --lib gpu::dxil::`: 147 passed, 1 failed (`fuzz_validate_and_gpu_1`, see below), 3 ignored **Full suite**: `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1240 passed, 4 failed, 46 ignored. - The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, `gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator`, `gpu::recomp::tests::gpu_image_get_resinfo_past_last_level` and `hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa`. All 4 fail the same way on the merge-base `96331383` on this machine, so none is caused by this PR. - SKIPPED (adapter/semantics, not coverage): `f16_programs_on_the_gpu` and `f32_programs_on_the_gpu` (several forms, "unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32"), `heap_window_out_of_memory_falls_back_to_the_switch_form` ("no heap windows"). **Regression run** (retail title, 60 s, `scripts/smoke.ps1 -Seconds 60`, release builds of `96331383` and of the PR head; one run each, so run-to-run noise applies). These are not pasted `xcl-smoke` blocks: the script stamps the checkout's HEAD, and I ran both binaries from one checkout, so I quote the numbers instead. | | frames shown | presents per 2 s (last 3) | device removals | crashes | peak commit | |---|---|---|---|---|---| | `96331383` (main) | 1506 | 61 59 61 | 0 | 0 | 17017 MB | | PR head | 1455 | 60 61 60 | 0 | 0 | 16608 MB | PR head is 97 % of main's frames, and its peak commit is 98 % of main's. **Not tested**: NVIDIA, wave32-only GPUs, runs longer than 60 s, any title other than the one above. The change is to GS translation (ES inputs read from the heap view); I did not check whether the smoke run's title uses a direct-DXIL geometry shader, so the run is a regression check only. **AI use**: this report was run and written by Claude Code (Claude Sonnet 5.5).
DavidM1911 commented 2026-11-25 17:07:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T16:58:43Z.


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

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7168817750 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7168817750). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T16:58:43Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
throny commented 2026-11-25 19:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T18:29:16Z.


Two contributors checked independently and found that this PR makes the same change as #2383: #1607, group D108. They suggest keeping #2383. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.

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:7170974600 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7170974600). Originally posted by [throny](https://github.com/throny) on 2026-11-25T18:29:16Z. --- <!-- xcl-1607-hint:D108 --> Two contributors checked independently and found that this PR makes the same change as #2383: #1607, group D108. They suggest keeping #2383. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. 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.
raylitebull commented 2026-11-25 19:09:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T18:40:56Z.


Diff review, green CI, and AMD/NVIDIA verification look good, though holding merge per the #1607 triage note (group D108) preferring #2383 because #2383 also exercises live GPU execution (geometry_es_inputs_validate_and_run_with_heap_windows), unless there is a specific reason to take both.

<!-- greyfinch-sync:ivall/xcl:comment:7171246392 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7171246392). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T18:40:56Z. --- Diff review, green CI, and AMD/NVIDIA verification look good, though holding merge per the `#1607` triage note (group `D108`) preferring `#2383` because `#2383` also exercises live GPU execution (`geometry_es_inputs_validate_and_run_with_heap_windows`), unless there is a specific reason to take both.
ivall commented 2026-11-25 20:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:44:47Z.


#2383 is merged now (6d051da5), for the reason in the note above (it also runs the geometry path on the GPU). @joeypercia, does this PR still cover a case that #2383 does not? If so, please rebase down to that; otherwise it can be closed. Thanks for the fix and the tests either way.

AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf; it did not compare the two diffs line by line.

<!-- greyfinch-sync:ivall/xcl:comment:7172711313 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7172711313). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:44:47Z. --- #2383 is merged now (`6d051da5`), for the reason in the note above (it also runs the geometry path on the GPU). @joeypercia, does this PR still cover a case that #2383 does not? If so, please rebase down to that; otherwise it can be closed. Thanks for the fix and the tests either way. AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf; it did not compare the two diffs line by line.
bmjask commented 2026-11-25 20:41:34 +00:00 (Migrated from github.com)

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

Review: COMMENTED


No concrete source-level defect found. Heap-window base/raw-UAV semantics and split/native DXIL validation look correct; current Windows CI is green. This branch is dirty/non-mergeable and needs a rebase. Before merge, add a GPU geometry case that reads distinct ES input through heap windows; current coverage validates DXIL only, and the PR discloses no GPU-output, world-title, or AMD heap-window title validation.

<!-- greyfinch-sync:ivall/xcl:review:6064689974 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#pullrequestreview-6064689974). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:41:34Z. **Review:** COMMENTED --- No concrete source-level defect found. Heap-window base/raw-UAV semantics and split/native DXIL validation look correct; current Windows CI is green. This branch is dirty/non-mergeable and needs a rebase. Before merge, add a GPU geometry case that reads distinct ES input through heap windows; current coverage validates DXIL only, and the PR discloses no GPU-output, world-title, or AMD heap-window title validation.
upstream-sync closed this pull request 2026-11-26 02:07:47 +00:00
Prime1997 commented 2026-11-26 02:08:22 +00:00 (Migrated from github.com)

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


Closing because this fix is already on main through #2383 (merge commit 6d051da5). In crates/xcl/src/gpu/dxil/kernel.rs, geom_init on main takes window 0 from the descriptor heap (heap_raw_buffer_uav at MEM_HEAP_BASE) when heap_mem is set and falls back to mems[0] otherwise, the same as this PR. Main's geometry_es_inputs_validate_and_run_with_heap_windows validates the heap-window GS in split and native forms and checks the GPU output. The one case here that main does not test is 4 root windows with an ES input, which runs code this PR does not change.

Compared at head c1e68079 against main 08db802. Reviewed with Claude Code (Claude Fable 5.2); I checked the comparison before closing.

<!-- greyfinch-sync:ivall/xcl:comment:7179976241 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2254#issuecomment-7179976241). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T01:38:27Z. --- Closing because this fix is already on main through #2383 (merge commit 6d051da5). In `crates/xcl/src/gpu/dxil/kernel.rs`, `geom_init` on main takes window 0 from the descriptor heap (`heap_raw_buffer_uav` at `MEM_HEAP_BASE`) when `heap_mem` is set and falls back to `mems[0]` otherwise, the same as this PR. Main's `geometry_es_inputs_validate_and_run_with_heap_windows` validates the heap-window GS in split and native forms and checks the GPU output. The one case here that main does not test is 4 root windows with an ES input, which runs code this PR does not change. Compared at head c1e68079 against main 08db802. Reviewed with Claude Code (Claude Fable 5.2); I checked the comparison before closing.

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