EH: write final report on NtTerminateProcess under Wine (#1461) #1469

Open
hajduzsolt wants to merge 2 commits from upstream-pr/1479 into main
hajduzsolt commented 2026-11-24 16:45:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T16:45:37Z.


Runtime fix verified with unit tests and RX 9070 XT smoke run.

What is in it

  • crates/xcl/src/eh.rs:
  • In hk_nt_terminate_process, checks crate::util::under_wine() and dispatches crate::report::write_final(None) before process termination and log flushing.
  • Adds synthetic unit test terminate_process_report_invocation_is_safe_under_wine verifying that write_final(None) executes safely without panics or deadlocks in test environments.

Tested

  • Hardware: AMD Radeon RX 9070 XT 16GB, AMD Ryzen 7 9800X3D, Windows 11 x64, rustc 1.98.1, debug
  • cargo test --workspace -- --test-threads=2: passed
  • cargo test -p xcl --lib eh::tests: 7 passed, 0 failed
  • cargo test -p xcl --lib report::tests: 1 passed, 0 failed

Regression run

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1594 (PresentX 1594)
presents per 2 s (last 3): 49 48 14
device removals: 0
crashes: 0
peak commit: 20195 MB

PR:

xcl-smoke v1
commit: 70364190b9f5256d3612dfcfd456c3807bbc76c5
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1682 (PresentX 1682)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14837 MB

Not tested

  • macOS CrossOver environments.

AI use

  • Antigravity (Gemini 4 Hydrogen, low) identified the Wine termination hook path, implemented the fallback dispatch, and authored the unit tests.
<!-- greyfinch-sync:ivall/xcl:issue:5476444234 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479). Originally posted by [hajduzsolt](https://github.com/hajduzsolt) on 2026-11-24T16:45:37Z. --- Runtime fix verified with unit tests and RX 9070 XT smoke run. **What is in it** - `crates/xcl/src/eh.rs`: - In `hk_nt_terminate_process`, checks `crate::util::under_wine()` and dispatches `crate::report::write_final(None)` before process termination and log flushing. - Adds synthetic unit test `terminate_process_report_invocation_is_safe_under_wine` verifying that `write_final(None)` executes safely without panics or deadlocks in test environments. **Tested** - Hardware: AMD Radeon RX 9070 XT 16GB, AMD Ryzen 7 9800X3D, Windows 11 x64, rustc 1.98.1, debug - `cargo test --workspace -- --test-threads=2`: passed - `cargo test -p xcl --lib eh::tests`: 7 passed, 0 failed - `cargo test -p xcl --lib report::tests`: 1 passed, 0 failed **Regression run** main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1594 (PresentX 1594) presents per 2 s (last 3): 49 48 14 device removals: 0 crashes: 0 peak commit: 20195 MB ``` PR: ``` xcl-smoke v1 commit: 70364190b9f5256d3612dfcfd456c3807bbc76c5 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1682 (PresentX 1682) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14837 MB ``` **Not tested** - macOS CrossOver environments. **AI use** - Antigravity (Gemini 4 Hydrogen, low) identified the Wine termination hook path, implemented the fallback dispatch, and authored the unit tests.
Belox17 commented 2026-11-24 19:07:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Belox17 on 2026-11-24T18:48:53Z.


Test report for 9c400998 on Windows (RTX 3060 Ti): passes, but the new test also passes without the change

Tested

  • Ryzen 5 5600X, NVIDIA GeForce RTX 3060 Ti; Windows 11 build 26300; rustc 1.98.1 MSVC; debug build. PR head as is, clean tree.
  • cargo test --workspace -- --test-threads=4: 771 passed, 0 failed, 41 ignored (base b7aa9f3: 770). Merged into 9e3831e: 777 passed, 0 failed, 41 ignored.
  • With the five lines added to hk_nt_terminate_process removed (test kept), terminate_process_report_invocation_is_safe_under_wine still passes. It calls report::write_final(None) directly, which exists on main and returns at once when there is no boot state, so the new branch is never reached. On Windows, under_wine() is false, so nothing in the suite runs that branch.

For comparison, #1484 (same issue, #1461) moves this into on_nt_terminate(status, under_wine, write_final), and its test checks both branches with an injected write_final.

Not tested

  • Wine, which is the only place the change runs.

AI use: Claude Code (Claude Opus 5.5) ran the commands and wrote this report; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7141189148 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7141189148). Originally posted by [Belox17](https://github.com/Belox17) on 2026-11-24T18:48:53Z. --- **Test report for `9c400998` on Windows (RTX 3060 Ti): passes, but the new test also passes without the change** **Tested** - Ryzen 5 5600X, NVIDIA GeForce RTX 3060 Ti; Windows 11 build 26300; rustc 1.98.1 MSVC; debug build. PR head as is, clean tree. - `cargo test --workspace -- --test-threads=4`: 771 passed, 0 failed, 41 ignored (base `b7aa9f3`: 770). Merged into `9e3831e`: 777 passed, 0 failed, 41 ignored. - With the five lines added to `hk_nt_terminate_process` removed (test kept), `terminate_process_report_invocation_is_safe_under_wine` still passes. It calls `report::write_final(None)` directly, which exists on `main` and returns at once when there is no boot state, so the new branch is never reached. On Windows, `under_wine()` is false, so nothing in the suite runs that branch. For comparison, #1484 (same issue, #1461) moves this into `on_nt_terminate(status, under_wine, write_final)`, and its test checks both branches with an injected `write_final`. **Not tested** - Wine, which is the only place the change runs. **AI use:** Claude Code (Claude Opus 5.5) ran the commands and wrote this report; I checked it before posting.
DavidM1911 commented 2026-11-24 19:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:20Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7141292896 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7141292896). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T18:53:20Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
SzczepanGrela commented 2026-11-24 19:07:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-24T18:55:23Z.


Verified under real Wine (Linux / GE-Proton11-12, Wine Staging 11.0) against base b7aa9f3: PR head 9c40099 fixes #1461 for both clean (0) and non-zero (42) exits.

Setup. CachyOS, kernel 7.3.0-5-cachyos, AMD Radeon RX 9070 (RADV GFX1201, Mesa 26.2.5-arch3.1), GE-Proton11-12 (Wine Staging 11.0 + ntsync), vkd3d-proton v3.1-1-g8293130eb, DXC 1.9.2602.17. Built xcl.exe on base b7aa9f3 and PR 9c40099 with rustc 1.97.1 cross x86_64-pc-windows-gnu, release.

Test. Minimal synthetic console title (imports kernelx.dll!XclDefinitelyMissingFunction, calls it once, exits via ExitProcess(0) or ExitProcess(42)), run through xcl.exe run <dir> under Wine with XCL_NETWORK=0:

Exit path Base b7aa9f3 (report.json) PR #1479 9c40099 (report.json)
ExitProcess(0) exit_code: 0, called_stubs: [] exit_code: 0, called_stubs: [XclDefinitelyMissingFunction (1x)]
ExitProcess(42) exit_code: 42, called_stubs: [] exit_code: 42, called_stubs: [XclDefinitelyMissingFunction (1x)]

In both runs on 9c40099, the log shows report.json written inside hk_nt_terminate_process right before process ends (thread ...) with no crash and intact stack trace.

Not tested: full e2e test title (hits an unrelated Wine d3d11.dll 0x80000100 exception on this prefix), macOS CrossOver, or retail titles under Wine.

AI use: Antigravity (Gemini 4 Neon) cross-compiled b7aa9f3 and 9c40099, built the synthetic exit title, ran the Wine A/B checks on my machine, and drafted this report; I reviewed the results before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7141340630 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7141340630). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-24T18:55:23Z. --- Verified under real Wine (Linux / `GE-Proton11-12`, Wine Staging 11.0) against base `b7aa9f3`: PR head `9c40099` fixes #1461 for both clean (`0`) and non-zero (`42`) exits. **Setup.** CachyOS, kernel `7.3.0-5-cachyos`, AMD Radeon RX 9070 (RADV GFX1201, Mesa `26.2.5-arch3.1`), `GE-Proton11-12` (Wine Staging 11.0 + `ntsync`), `vkd3d-proton` `v3.1-1-g8293130eb`, DXC `1.9.2602.17`. Built `xcl.exe` on base `b7aa9f3` and PR `9c40099` with `rustc 1.97.1` cross `x86_64-pc-windows-gnu`, release. **Test.** Minimal synthetic console title (imports `kernelx.dll!XclDefinitelyMissingFunction`, calls it once, exits via `ExitProcess(0)` or `ExitProcess(42)`), run through `xcl.exe run <dir>` under Wine with `XCL_NETWORK=0`: | Exit path | Base `b7aa9f3` (`report.json`) | PR #1479 `9c40099` (`report.json`) | |---|---|---| | `ExitProcess(0)` | `exit_code: 0`, `called_stubs: []` | `exit_code: 0`, `called_stubs: [XclDefinitelyMissingFunction (1x)]` | | `ExitProcess(42)` | `exit_code: 42`, `called_stubs: []` | `exit_code: 42`, `called_stubs: [XclDefinitelyMissingFunction (1x)]` | In both runs on `9c40099`, the log shows `report.json` written inside `hk_nt_terminate_process` right before `process ends (thread ...)` with no crash and intact stack trace. **Not tested:** full `e2e` test title (hits an unrelated Wine `d3d11.dll` `0x80000100` exception on this prefix), macOS CrossOver, or retail titles under Wine. **AI use:** Antigravity (Gemini 4 Neon) cross-compiled `b7aa9f3` and `9c40099`, built the synthetic exit title, ran the Wine A/B checks on my machine, and drafted this report; I reviewed the results before posting.
hajduzsolt commented 2026-11-24 21:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T19:19:11Z.


Thank you for checking the test against the reverted change. The termination decision now accepts an injected report callback, and the regression covers Wine and native behavior, other-process handles, and repeated termination. cargo test --workspace -- --test-threads=2 passed (723 library tests passed, 21 ignored). Wine itself was not run in this revision.

<!-- greyfinch-sync:ivall/xcl:comment:7141921612 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7141921612). Originally posted by [hajduzsolt](https://github.com/hajduzsolt) on 2026-11-24T19:19:11Z. --- Thank you for checking the test against the reverted change. The termination decision now accepts an injected report callback, and the regression covers Wine and native behavior, other-process handles, and repeated termination. `cargo test --workspace -- --test-threads=2` passed (723 library tests passed, 21 ignored). Wine itself was not run in this revision.
pablogonz12 commented 2026-11-25 09:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pablogonz12 on 2026-11-25T08:17:19Z.


Test report: #1479 at its current head 7036419, under Wine. e2e goes from failing on #1461 to passing.

The earlier real-Wine report was on 9c40099; this one covers the reworked head.

Setup

  • RX 9070 XT, Mesa 26.3.1 (RADV), Ryzen 9 9900X, kernel 7.3.6-1-cachyos, Wine Staging 11.0 (GE-Proton11-14), vkd3d-proton 3.1 + XCL's patch, DXC 1.9.2609.5.
  • rustc 1.100.0, cargo xwin, x86_64-pc-windows-msvc, release, +crt-static.

Method

e2e stops under Wine before it checks the report, so both sides carry the same three open PRs:

  • A: main 568e7db + #794 (bee31d5) + #890 (76d2ff7) + #1462 (813615c), merged in that order
  • B: A + #1479 (7036419)

All merges were clean, and A and B differ only by this PR's eh.rs change. For the test title's Opus check I also put a locally built libopus opus.dll next to xcl.exe, on both sides.

Results

A B
e2e 2 passed, 1 failed: e2e.rs:164: report.called_stubs: [] (3 of 3 dedicated runs, and again in the integration pass) 3 passed, 0 failed (5 of 5 dedicated runs, and again in the integration pass)
xcl --lib, 4 threads 1090 passed, 6 failed, 26 ignored, 3 filtered out 1091 passed, 6 failed, 26 ignored, 3 filtered out
other integration binaries all pass except pls_quota, predication_e2e same
  • The six lib failures have the same names on both sides: fuzz_validate_and_gpu_2, directed_reference_basics, lower_dxil::tests::{f32,f64}_programs_on_the_gpu, gpu_nonfused_mad_and_mac_prevent_fma_contraction, gpu_depth_buffer_created_for_unordered_access_is_placed. (directed_reference_basics comes from our +crt-static build: the static UCRT's fmaf is not correctly rounded.)
  • The extra pass in B is termination_reports_once_for_the_current_process_under_wine.
  • The 3 filtered tests are skipped because they end the whole test process on this host: integer_ops_match_cpu, uaddc_and_usubb_match_cpu, jumps_to_outer_loop_heads_are_structured.
  • Mutation: with only the write_report(); call in begin_termination removed, the new unit test fails (left: 0, right: 1). So the point raised on the earlier version, that its test also passed without the change, no longer applies.
  • From reading the code: a crash recorded earlier should survive the later write_final(None), because CRASH is filled with get_or_insert and None doesn't touch it. I did not run a crashing title.

Not tested: a retail title under Wine (so no Wine smoke pair), a nonzero or crash exit on this head, native Windows, and the suite on #1479 without the three other PRs.

AI use: Written with Claude (Anthropic) assistance; tested by me on the hardware listed.

<!-- greyfinch-sync:ivall/xcl:comment:7156841194 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7156841194). Originally posted by [pablogonz12](https://github.com/pablogonz12) on 2026-11-25T08:17:19Z. --- **Test report: #1479 at its current head `7036419`, under Wine. `e2e` goes from failing on #1461 to passing.** The earlier real-Wine report was on `9c40099`; this one covers the reworked head. **Setup** - RX 9070 XT, Mesa 26.3.1 (RADV), Ryzen 9 9900X, kernel 7.3.6-1-cachyos, Wine Staging 11.0 (GE-Proton11-14), vkd3d-proton 3.1 + XCL's patch, DXC 1.9.2609.5. - rustc 1.100.0, `cargo xwin`, `x86_64-pc-windows-msvc`, release, `+crt-static`. **Method** `e2e` stops under Wine before it checks the report, so both sides carry the same three open PRs: - **A:** `main` `568e7db` + #794 (`bee31d5`) + #890 (`76d2ff7`) + #1462 (`813615c`), merged in that order - **B:** A + #1479 (`7036419`) All merges were clean, and A and B differ only by this PR's `eh.rs` change. For the test title's Opus check I also put a locally built libopus `opus.dll` next to `xcl.exe`, on both sides. **Results** | | A | B | |---|---|---| | `e2e` | 2 passed, 1 failed: `e2e.rs:164: report.called_stubs: []` (3 of 3 dedicated runs, and again in the integration pass) | 3 passed, 0 failed (5 of 5 dedicated runs, and again in the integration pass) | | `xcl --lib`, 4 threads | 1090 passed, 6 failed, 26 ignored, 3 filtered out | 1091 passed, 6 failed, 26 ignored, 3 filtered out | | other integration binaries | all pass except `pls_quota`, `predication_e2e` | same | - The six lib failures have the same names on both sides: `fuzz_validate_and_gpu_2`, `directed_reference_basics`, `lower_dxil::tests::{f32,f64}_programs_on_the_gpu`, `gpu_nonfused_mad_and_mac_prevent_fma_contraction`, `gpu_depth_buffer_created_for_unordered_access_is_placed`. (`directed_reference_basics` comes from our `+crt-static` build: the static UCRT's `fmaf` is not correctly rounded.) - The extra pass in B is `termination_reports_once_for_the_current_process_under_wine`. - The 3 filtered tests are skipped because they end the whole test process on this host: `integer_ops_match_cpu`, `uaddc_and_usubb_match_cpu`, `jumps_to_outer_loop_heads_are_structured`. - **Mutation:** with only the `write_report();` call in `begin_termination` removed, the new unit test fails (`left: 0, right: 1`). So the point raised on the earlier version, that its test also passed without the change, no longer applies. - From reading the code: a crash recorded earlier should survive the later `write_final(None)`, because `CRASH` is filled with `get_or_insert` and `None` doesn't touch it. I did not run a crashing title. **Not tested:** a retail title under Wine (so no Wine smoke pair), a nonzero or crash exit on this head, native Windows, and the suite on #1479 without the three other PRs. **AI use:** Written with Claude (Anthropic) assistance; tested by me on the hardware listed.
DavidM1911 commented 2026-11-26 06:06:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:27:36Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7183503895 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7183503895). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T05:27:36Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
futurepro62 commented 2026-11-26 09:07:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-26T08:49:09Z.


NVIDIA and AMD full-suite run, to go with the reports above by pablogonz12, since none of them covers NVIDIA. Tested exact head 70364190 (on its base b7aa9f3).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 771 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: termination_reports_once_for_the_current_process_under_wine.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 771 passed, 0 failed, 41 ignored, no skips.
  • --skip leaves out tests that fail on main b49be183 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7187058425 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7187058425). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-26T08:49:09Z. --- NVIDIA and AMD full-suite run, to go with the reports above by pablogonz12, since none of them covers NVIDIA. Tested exact head `70364190` (on its base `b7aa9f3`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **771 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `termination_reports_once_for_the_current_process_under_wine`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **771 passed, 0 failed, 41 ignored**, no skips. - `--skip` leaves out tests that fail on main `b49be183` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
vakaobr commented 2026-11-29 16:08:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-29T16:08:49Z.


Mac test of 7036419: fixes #1461 under CrossOver too. Same result as SzczepanGrela's Linux run, on another Wine.

Tested

  • MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3 (Wine) with D3DMetal; Rust 1.100, x86_64-pc-windows-gnu.
  • eh::tests::termination_reports_once_for_the_current_process_under_wine on this PR merged with main bc2cbb7 (debug): 1 passed, 0 failed.
  • The test title through xcl run, release. main cannot finish the test title on a Mac yet (it stops after the window check, #1462 / #794), so I ran it on my Mac branch (vakaobr/xcl mac/integration 7a78e50) without and with this PR's two commits cherry-picked. Both runs: 50 checks passed, failures: 0, exit 0. report.json after the exit:
without with this PR
called_stubs empty XclDefinitelyMissingFunction, ID3D12Device14::#47 (console extension)
d3d12.presents 0 1
vfs.redirected_writes 0 5

Not tested

  • Windows, the whole suite, a title that exits with a non-zero status (SzczepanGrela's run covers 42 on Linux).

AI use: Claude Code with Claude Opus 5.5 ran the tests and the two title runs on my Mac and drafted this report. I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7258653822 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7258653822). Originally posted by [vakaobr](https://github.com/vakaobr) on 2026-11-29T16:08:49Z. --- **Mac test of `7036419`: fixes #1461 under CrossOver too.** Same result as SzczepanGrela's Linux run, on another Wine. **Tested** - MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3 (Wine) with D3DMetal; Rust 1.100, `x86_64-pc-windows-gnu`. - `eh::tests::termination_reports_once_for_the_current_process_under_wine` on this PR merged with `main` `bc2cbb7` (debug): 1 passed, 0 failed. - The test title through `xcl run`, release. `main` cannot finish the test title on a Mac yet (it stops after the window check, #1462 / #794), so I ran it on my Mac branch (`vakaobr/xcl` `mac/integration` `7a78e50`) without and with this PR's two commits cherry-picked. Both runs: 50 checks passed, `failures: 0`, exit 0. `report.json` after the exit: | | without | with this PR | |---|---|---| | `called_stubs` | empty | `XclDefinitelyMissingFunction`, `ID3D12Device14::#47 (console extension)` | | `d3d12.presents` | 0 | 1 | | `vfs.redirected_writes` | 0 | 5 | **Not tested** - Windows, the whole suite, a title that exits with a non-zero status (SzczepanGrela's run covers `42` on Linux). **AI use:** Claude Code with Claude Opus 5.5 ran the tests and the two title runs on my Mac and drafted this report. I checked it before posting.
Foniass commented 2026-12-01 05:53:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:53:50Z.


Triage (#1607) – head 7036419

#1484 made the same change (call report::write_final from the NtTerminateProcess hook when util::under_wine()), but it is closed; this is the open PR for #1461 and it is not on main. begin_termination keeps the existing self-handle / once-only guard, and the test checks both the Wine path and the native path. The PR conflicts with main, which added pso_async::flush_used_bounded / flush_indirect_split_records to the same block; keep them when rebasing. 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:7302254610 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1479#issuecomment-7302254610). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:53:50Z. --- **Triage (#1607)** – head 7036419 #1484 made the same change (call `report::write_final` from the `NtTerminateProcess` hook when `util::under_wine()`), but it is closed; this is the open PR for #1461 and it is not on main. `begin_termination` keeps the existing self-handle / once-only guard, and the test checks both the Wine path and the native path. The PR conflicts with main, which added `pso_async::flush_used_bounded` / `flush_indirect_split_records` to the same block; keep them when rebasing. 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/1479:upstream-pr/1479'
git switch 'upstream-pr/1479'

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