Tests: the D32S8 target test waits at most 10 s for its list #1696

Open
Royalflamejlh wants to merge 1 commit from upstream-pr/1706 into main
Royalflamejlh commented 2026-11-24 19:28:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-24T19:28:04Z.


Under Wine + vkd3d-proton on NVIDIA, the lib test binary never finishes: hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory waits for its command list with SetEventOnCompletion(1, NULL), and the GPU never finishes that list. The test now waits with gpu::fence::wait and a 10 s limit, so it fails with Timeout(10000) and the run goes on.

Why the list never finishes here: once an earlier test in the same process has drawn something, the test's copy of the stencil plane to its read-back buffer faults on the GPU (kernel log: NVRM: Xid 31 … MMU Fault: ENGINE GRAPHICS), and after that the queue's fence was not signalled in the 5 minutes I let one run wait, and GetDeviceRemovedReason reported nothing. Two tests in this order are enough: gpu::recomp::tests::gpu_graphics_vs_ps_draw, then the D32S8 test. With a local copy of the test (on b7aa9f3, 1 run of each variant), leaving out the stencil plane's CopyTextureRegion removed the fault; keeping only that copy, or using committed textures instead of XCL's arenas, did not. This points below XCL (vkd3d-proton or the driver; I have not looked which), but every variant still ran on a device XCL had adopted and through its own CopyTextureRegion override, and a plain D3D12 device was not tried. This pull request only stops the test from waiting on it for good.

What is in it

  • crates/xcl/src/hle/d3d12x/vram.rs, in mod tests only: the wait after queue.Signal is crate::gpu::fence::wait(&fence, 1, &dev, None, 10_000).unwrap(), as in gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes (title_textures.rs). One line in, two out.

Tested

  • Linux through Wine and vkd3d-proton. NVIDIA GeForce RTX 4060 Ti 16 GB (driver 615.71.09), Ryzen 9 9950X3D, Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175, rustc 1.98.0, release, x86_64-pc-windows-gnu. The tests were pinned to that card with DXVK_FILTER_DEVICE_NAME and VKD3D_FILTER_DEVICE_NAME.
  • The two tests named above, --test-threads=1: on main c160d86 the run was still waiting after 60 s when I ended it (1 run; on b7aa9f3 1 run, ended after 45 s). On 121bfea it ended after 10.6 s: 1 passed, 1 failed with Timeout(10000) at vram.rs:1014 (1 run). The D32S8 test alone passes on 121bfea (1 run), as it did on b7aa9f3.
  • cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4 on 121bfea: the lib tests finished in 13.6 s, 807 passed, 2 failed, 22 ignored; the other test binaries 46 passed, 3 failed, 20 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • The same command on main c160d86: the lib test binary did not finish (the D32S8 test, and reservable_agrees_with_the_driver waiting for the lock it holds, "running for over 60 seconds"); I ended it. With those two skipped: 806 passed, 1 failed, 22 ignored; the other binaries 46 passed, 3 failed, 20 ignored.
  • Failures on both trees, for the same reason on each: gpu_depth_buffer_created_for_unordered_access_is_placed (lib), disk_free_space_ex_reports_pls_quota, set_predication_buffer_state_and_kickoff. test_title_runs_and_game_folder_is_untouched fails on both at the same check, W: not cloaked (Wine). In the suite run on 121bfea it had stopped at "build first", because the test title had not been built in that tree; run again with the workspace built (cargo test -p xcl --test e2e: 2 passed, 1 failed) it fails at that check, as on main. On 121bfea also the D32S8 test itself, with the timeout, where main waits.
  • The fault and the wait were also seen on an RTX 4070 12 GB on the same machine (1 full serial lib run on b7aa9f3).
  • Native Windows 11, 2 machines, cargo test --workspace --release --no-fail-fast -j 8 -- --test-threads=4 on 121bfea, MSVC toolchain, 1 run each, started over SSH: RTX 2070 SUPER 8 GB (driver 621.01, Ryzen 7 5700X3D, 25H2 build 26200.9711, rustc 1.100.0), and a Ryzen 7 9800X3D with an RTX 5070 Ti 16 GB (driver 621.24) and the processor's integrated AMD Radeon graphics (driver 32.0.21030.2001; 26H2 build 26300.9974, rustc 1.99.1). On each: 857 passed, 1 failed, 42 ignored (lib 809 / 0 / 22), SKIPPED the same three as above. d32s8_targets_take_their_own_size_of_video_memory passed on both machines: the GPU finished its list and the 10 s limit was not reached. On the second machine it ran on the integrated AMD graphics, not on the RTX 5070 Ti: the test takes DXGI adapter 0, which over SSH is the AMD adapter there (4K targets of 42,926,080 bytes each; 66,846,720 on the RTX 2070 SUPER). The one failure is test_title_runs_and_game_folder_is_untouched, for the way the run was started and not for the change: an SSH session has no desktop (session 0), and the test title's swap chain cannot be made (CreateSwapChainForHwnd … 0x887A0022). Started in the logged-in desktop session on the RTX 2070 SUPER machine, cargo test -p xcl --test e2e --release on 121bfea gave 3 passed, 0 failed (1 run). (On the other machine the suite ran before the workspace was built, so there that test stopped at "build first"; rerun after cargo build --workspace --release, still over SSH, it stopped at the swap chain as well: 2 passed, 1 failed. Started in the desktop session there too, the same command gave 3 passed, 0 failed, with the test title on the RTX 5070 Ti (1 run).)
  • The same command on 121bfea on the Ryzen 7 9800X3D machine, started in the logged-in desktop session (1 run): 858 passed, 0 failed, 42 ignored (lib 809 / 0 / 22), SKIPPED the same three. There d32s8_targets_take_their_own_size_of_video_memory ran on the RTX 5070 Ti and passed: its 4K targets were 41,811,968 bytes each, the size that card's driver reports for them (the integrated AMD graphics reports 42,926,080).

Regression run
Both blocks are from scripts/smoke.ps1, unchanged, run by PowerShell 7 on Linux with xcl.exe started through Wine, on a retail title, with XCL_PSO_PRELOAD=0. Under Wine "peak commit" reads 0 MB, and exit: 0x89 is the wrapper ending Wine after XCL's own process ends, not XCL's exit code. The blocks say RTX 4060 Ti 8GB because that is the name vkd3d-proton gives this 16 GB card. The change is inside mod tests, so xcl.exe is the same code in both.

main:

xcl-smoke v1
commit: c160d86ef2
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 7952987A
seconds: 60
exit: 0x89
frames shown: 1548 (PresentX 1548)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

PR:

xcl-smoke v1
commit: 121bfea746
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 7952987A
seconds: 60
exit: 0x89
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • The D32S8 test on native Windows on Intel graphics and on a discrete AMD card.
  • AMD and Intel under vkd3d-proton: whether the stencil-plane copy faults there too.
  • Which side the fault is on, vkd3d-proton or the NVIDIA driver, and whether a retail title's own stencil read-backs meet it.

AI use

  • Claude Code (Claude Fable 5.2) reproduced the hang, bisected it to the pair of tests and to the one copy, wrote the change, ran the suite and the regression runs on this machine, ran the suite on two Windows machines over SSH, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5478882939 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-24T19:28:04Z. --- Under Wine + vkd3d-proton on NVIDIA, the lib test binary never finishes: `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` waits for its command list with `SetEventOnCompletion(1, NULL)`, and the GPU never finishes that list. The test now waits with `gpu::fence::wait` and a 10 s limit, so it fails with `Timeout(10000)` and the run goes on. Why the list never finishes here: once an earlier test in the same process has drawn something, the test's copy of the stencil plane to its read-back buffer faults on the GPU (kernel log: `NVRM: Xid 31 … MMU Fault: ENGINE GRAPHICS`), and after that the queue's fence was not signalled in the 5 minutes I let one run wait, and `GetDeviceRemovedReason` reported nothing. Two tests in this order are enough: `gpu::recomp::tests::gpu_graphics_vs_ps_draw`, then the D32S8 test. With a local copy of the test (on `b7aa9f3`, 1 run of each variant), leaving out the stencil plane's `CopyTextureRegion` removed the fault; keeping only that copy, or using committed textures instead of XCL's arenas, did not. This points below XCL (vkd3d-proton or the driver; I have not looked which), but every variant still ran on a device XCL had adopted and through its own `CopyTextureRegion` override, and a plain D3D12 device was not tried. This pull request only stops the test from waiting on it for good. **What is in it** - `crates/xcl/src/hle/d3d12x/vram.rs`, in `mod tests` only: the wait after `queue.Signal` is `crate::gpu::fence::wait(&fence, 1, &dev, None, 10_000).unwrap()`, as in `gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes` (`title_textures.rs`). One line in, two out. **Tested** - Linux through Wine and vkd3d-proton. NVIDIA GeForce RTX 4060 Ti 16 GB (driver 615.71.09), Ryzen 9 9950X3D, Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175, rustc 1.98.0, release, `x86_64-pc-windows-gnu`. The tests were pinned to that card with `DXVK_FILTER_DEVICE_NAME` and `VKD3D_FILTER_DEVICE_NAME`. - The two tests named above, `--test-threads=1`: on `main` `c160d86` the run was still waiting after 60 s when I ended it (1 run; on `b7aa9f3` 1 run, ended after 45 s). On `121bfea` it ended after 10.6 s: 1 passed, 1 failed with `Timeout(10000)` at `vram.rs:1014` (1 run). The D32S8 test alone passes on `121bfea` (1 run), as it did on `b7aa9f3`. - `cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4` on `121bfea`: the lib tests finished in 13.6 s, 807 passed, 2 failed, 22 ignored; the other test binaries 46 passed, 3 failed, 20 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - The same command on `main` `c160d86`: the lib test binary did not finish (the D32S8 test, and `reservable_agrees_with_the_driver` waiting for the lock it holds, "running for over 60 seconds"); I ended it. With those two skipped: 806 passed, 1 failed, 22 ignored; the other binaries 46 passed, 3 failed, 20 ignored. - Failures on both trees, for the same reason on each: `gpu_depth_buffer_created_for_unordered_access_is_placed` (lib), `disk_free_space_ex_reports_pls_quota`, `set_predication_buffer_state_and_kickoff`. `test_title_runs_and_game_folder_is_untouched` fails on both at the same check, `W: not cloaked` (Wine). In the suite run on `121bfea` it had stopped at "build first", because the test title had not been built in that tree; run again with the workspace built (`cargo test -p xcl --test e2e`: 2 passed, 1 failed) it fails at that check, as on `main`. On `121bfea` also the D32S8 test itself, with the timeout, where `main` waits. - The fault and the wait were also seen on an RTX 4070 12 GB on the same machine (1 full serial lib run on `b7aa9f3`). - Native Windows 11, 2 machines, `cargo test --workspace --release --no-fail-fast -j 8 -- --test-threads=4` on `121bfea`, MSVC toolchain, 1 run each, started over SSH: RTX 2070 SUPER 8 GB (driver 621.01, Ryzen 7 5700X3D, 25H2 build 26200.9711, rustc 1.100.0), and a Ryzen 7 9800X3D with an RTX 5070 Ti 16 GB (driver 621.24) and the processor's integrated AMD Radeon graphics (driver 32.0.21030.2001; 26H2 build 26300.9974, rustc 1.99.1). On each: 857 passed, 1 failed, 42 ignored (lib 809 / 0 / 22), SKIPPED the same three as above. `d32s8_targets_take_their_own_size_of_video_memory` passed on both machines: the GPU finished its list and the 10 s limit was not reached. On the second machine it ran on the integrated AMD graphics, not on the RTX 5070 Ti: the test takes DXGI adapter 0, which over SSH is the AMD adapter there (4K targets of 42,926,080 bytes each; 66,846,720 on the RTX 2070 SUPER). The one failure is `test_title_runs_and_game_folder_is_untouched`, for the way the run was started and not for the change: an SSH session has no desktop (session 0), and the test title's swap chain cannot be made (`CreateSwapChainForHwnd` … `0x887A0022`). Started in the logged-in desktop session on the RTX 2070 SUPER machine, `cargo test -p xcl --test e2e --release` on `121bfea` gave 3 passed, 0 failed (1 run). (On the other machine the suite ran before the workspace was built, so there that test stopped at "build first"; rerun after `cargo build --workspace --release`, still over SSH, it stopped at the swap chain as well: 2 passed, 1 failed. Started in the desktop session there too, the same command gave 3 passed, 0 failed, with the test title on the RTX 5070 Ti (1 run).) - The same command on `121bfea` on the Ryzen 7 9800X3D machine, started in the logged-in desktop session (1 run): 858 passed, 0 failed, 42 ignored (lib 809 / 0 / 22), SKIPPED the same three. There `d32s8_targets_take_their_own_size_of_video_memory` ran on the RTX 5070 Ti and passed: its 4K targets were 41,811,968 bytes each, the size that card's driver reports for them (the integrated AMD graphics reports 42,926,080). **Regression run** Both blocks are from `scripts/smoke.ps1`, unchanged, run by PowerShell 7 on Linux with `xcl.exe` started through Wine, on a retail title, with `XCL_PSO_PRELOAD=0`. Under Wine "peak commit" reads 0 MB, and `exit: 0x89` is the wrapper ending Wine after XCL's own `process ends`, not XCL's exit code. The blocks say `RTX 4060 Ti 8GB` because that is the name vkd3d-proton gives this 16 GB card. The change is inside `mod tests`, so `xcl.exe` is the same code in both. main: xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 4060 Ti 8GB title: 7952987A seconds: 60 exit: 0x89 frames shown: 1548 (PresentX 1548) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB PR: xcl-smoke v1 commit: 121bfea74639318909661c6dd48f64426b872005 gpu: NVIDIA GeForce RTX 4060 Ti 8GB title: 7952987A seconds: 60 exit: 0x89 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB **Not tested** - The D32S8 test on native Windows on Intel graphics and on a discrete AMD card. - AMD and Intel under vkd3d-proton: whether the stencil-plane copy faults there too. - Which side the fault is on, vkd3d-proton or the NVIDIA driver, and whether a retail title's own stencil read-backs meet it. **AI use** - Claude Code (Claude Fable 5.2) reproduced the hang, bisected it to the pair of tests and to the one copy, wrote the change, ran the suite and the regression runs on this machine, ran the suite on two Windows machines over SSH, and wrote this description.
DavidM1911 commented 2026-11-24 23:08:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:09:45Z.


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

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7145883630 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706#issuecomment-7145883630). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:09:45Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!
Decodere commented 2026-11-27 11:35:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T11:35:11Z.


Independent desktop NVIDIA verification of PR #1706 at head 121bfea74639318909661c6dd48f64426b872005 (1 commit; exact parent & merge-base: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, 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 GPU tests & build (121bfea7)

Command Result
cargo test --release -p xcl --lib hle::d3d12x::vram:: -- --nocapture (3 consecutive runs) 9 passed; 0 failed; 0 ignored; 822 filtered out × 3 (2.36s, 2.38s, 2.36s, 0 skipped; live RTX 4060 execution of d32s8_targets_take_their_own_size_of_video_memory with the new 10 s bounded fence::wait alongside all 8 other vram:: tests)
cargo build --release -p xcl Clean build (1m 15s, exit 0, 0 new warnings in vram.rs)

Paired quiet 60 s retail smoke (title: 29640639)

(Note: scripts/smoke.ps1 at c160d86e predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)

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

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

PR #1706 (121bfea74639318909661c6dd48f64426b872005):

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

Limits of coverage

  • This PR is test-only (crates/xcl/src/hle/d3d12x/vram.rs #[cfg(test)], 0 production-code changes); d32s8_targets_take_their_own_size_of_video_memory and all 9/9 hle::d3d12x::vram:: tests executed and passed 3/3 (0 skipped) on live RTX 4060, exercising the happy-path bounded fence::wait(..., 10_000) completion (the 10 s timeout/device-loss failure branch itself was not fault-injected).
  • The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. the cached parent reflects normal startup variance).

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

<!-- greyfinch-sync:ivall/xcl:comment:7217244621 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706#issuecomment-7217244621). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T11:35:11Z. --- Independent desktop NVIDIA verification of **PR #1706** at head `121bfea74639318909661c6dd48f64426b872005` (`1` commit; exact parent & merge-base: `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`, 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 GPU tests & build (`121bfea7`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib hle::d3d12x::vram:: -- --nocapture` (3 consecutive runs) | `9 passed; 0 failed; 0 ignored; 822 filtered out` × 3 (`2.36s`, `2.38s`, `2.36s`, `0` skipped; live RTX 4060 execution of `d32s8_targets_take_their_own_size_of_video_memory` with the new 10 s bounded `fence::wait` alongside all 8 other `vram::` tests) | | `cargo build --release -p xcl` | Clean build (`1m 15s`, exit `0`, `0` new warnings in `vram.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) *(Note: `scripts/smoke.ps1` at `c160d86e` predates `9683e7a6` and printed the local folder basename on `title:`; replaced below with the standard `9683e7a6` title hash `29640639`, with all measured fields verbatim.)* Exact parent & merge-base (`c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`, cached baseline on the same machine): ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1533 (PresentX 1533) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14721 MB ``` PR #1706 (`121bfea74639318909661c6dd48f64426b872005`): ``` xcl-smoke v1 commit: 121bfea74639318909661c6dd48f64426b872005 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1523 (PresentX 1523) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14709 MB ``` ### Limits of coverage - This PR is test-only (`crates/xcl/src/hle/d3d12x/vram.rs` `#[cfg(test)]`, `0` production-code changes); `d32s8_targets_take_their_own_size_of_video_memory` and all `9/9` `hle::d3d12x::vram::` tests executed and passed `3/3` (`0` skipped) on live RTX 4060, exercising the happy-path bounded `fence::wait(..., 10_000)` completion (the 10 s timeout/device-loss failure branch itself was not fault-injected). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. the cached parent reflects normal startup variance). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Foniass commented 2026-12-01 06:32:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:32:35Z.


Triage (#1607) – head 121bfea

No open or merged PR makes the same change. On main, vram.rs::d32s8_targets_take_their_own_size_of_video_memory still waits with SetEventOnCompletion(1, HANDLE::default()), which never returns if the list hangs; gpu::fence::wait with a 10 s limit fails the test instead.
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:7302992989 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706#issuecomment-7302992989). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:32:35Z. --- **Triage (#1607)** – head 121bfea No open or merged PR makes the same change. On main, `vram.rs::d32s8_targets_take_their_own_size_of_video_memory` still waits with `SetEventOnCompletion(1, HANDLE::default())`, which never returns if the list hangs; `gpu::fence::wait` with a 10 s limit fails the test instead. 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.
grathepic commented 2026-12-02 22:59:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grathepic on 2026-12-02T22:59:16Z.


merge-check
base: 078358a058
head: 121bfea746
merge: clean (git diff --check origin/main..HEAD clean)
build: cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace -> ok
tests: cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4 (with XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin, XCL_SAMPLE_* unset) -> 3006 passed, 0 failed, 52 ignored across 44 harnesses; SKIPPED: 27 notices (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no dxil.dll, 1 cannot disable the driver cache (Windows Developer Mode required)); failing: none. The modified test hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory ran and passed.
title run: none (Tier 0 test-only diff; no production code outside #[cfg(test)] changed)
review: Full single-commit diff read (+1/-2, crates/xcl/src/hle/d3d12x/vram.rs:5666, strictly #[cfg(test)]). Replaces an unbounded fence.SetEventOnCompletion(1, HANDLE::default()).unwrap() with crate::gpu::fence::wait(&fence, 1, &dev, None, 10_000).unwrap(), matching other GPU tests in the crate. Audited gpu::fence::wait (fence.rs:56-97): fast-paths completed fences, creates and drops its own Win32 event, detects device removal (u64::MAX / GetDeviceRemovedReason), and fails with FenceError::Timeout(10_000) instead of hanging indefinitely. Untested: fault-injecting the 10 s timeout path itself, Wine/vkd3d-proton reproduction, and AMD/wave64 hardware.
performance: none (test-only bounded fence wait; no runtime frame-time or memory path changed)
verdict: safe to merge (clean merge, full workspace suite passes with 0 failures on NVIDIA RTX 3080, minimal test-only change using the standard gpu::fence::wait helper)
hardware / tool and model: NVIDIA GeForce RTX 3080 (driver 32.0.16.2140), AMD Ryzen 7 5800X3D, Windows 11 (10.0.26300.0), Rust 1.98.1-x86_64-pc-windows-msvc, DXC 1.9.0.5512 (VulkanSDK, no dxil.dll) / Antigravity, Gemini 4 Neon

<!-- greyfinch-sync:ivall/xcl:comment:7361417402 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706#issuecomment-7361417402). Originally posted by [grathepic](https://github.com/grathepic) on 2026-12-02T22:59:16Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 121bfea74639318909661c6dd48f64426b872005 merge: clean (`git diff --check origin/main..HEAD` clean) build: `cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace` -> ok tests: `cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4` (with `XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin`, `XCL_SAMPLE_*` unset) -> 3006 passed, 0 failed, 52 ignored across 44 harnesses; SKIPPED: 27 notices (22 `no wave64`, 2 `no heap windows`, 1 `no GPU_UPLOAD heaps`, 1 `no dxil.dll`, 1 `cannot disable the driver cache (Windows Developer Mode required)`); failing: none. The modified test `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` ran and passed. title run: none (Tier 0 test-only diff; no production code outside `#[cfg(test)]` changed) review: Full single-commit diff read (`+1/-2`, `crates/xcl/src/hle/d3d12x/vram.rs:5666`, strictly `#[cfg(test)]`). Replaces an unbounded `fence.SetEventOnCompletion(1, HANDLE::default()).unwrap()` with `crate::gpu::fence::wait(&fence, 1, &dev, None, 10_000).unwrap()`, matching other GPU tests in the crate. Audited `gpu::fence::wait` (`fence.rs:56-97`): fast-paths completed fences, creates and drops its own Win32 event, detects device removal (`u64::MAX` / `GetDeviceRemovedReason`), and fails with `FenceError::Timeout(10_000)` instead of hanging indefinitely. Untested: fault-injecting the 10 s timeout path itself, Wine/vkd3d-proton reproduction, and AMD/wave64 hardware. performance: none (test-only bounded fence wait; no runtime frame-time or memory path changed) verdict: safe to merge (clean merge, full workspace suite passes with 0 failures on NVIDIA RTX 3080, minimal test-only change using the standard `gpu::fence::wait` helper) hardware / tool and model: NVIDIA GeForce RTX 3080 (driver 32.0.16.2140), AMD Ryzen 7 5800X3D, Windows 11 (10.0.26300.0), Rust 1.98.1-x86_64-pc-windows-msvc, DXC 1.9.0.5512 (VulkanSDK, no dxil.dll) / Antigravity, Gemini 4 Neon
Pipodi commented 2026-12-03 00:52:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-03T00:52:37Z.


merge-check
base: 078358a058
head: 121bfea746
merge: clean (git merge --no-ff onto 078358a0, merge 541154a6; crates/xcl/src/hle/d3d12x/vram.rs +1/-2, inside mod tests)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3006 passed, 0 failed, 52 ignored; failing: none (SKIPPED 25: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache). hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory ran and passed, the GPU finished its list well inside the 10 s limit. That is the third of three suite runs of the merge here: in the first two the lib test binary ended abnormally, before any vram:: test had finished and with the changed test not among the running threads in the last thread dump: run 1 with 0xc0000005 inside the NVIDIA user-mode driver while gpu::agility::tests::create_device_sets_dred_first created a device (86 tests in), run 2 with exit code 130088963 right after D3D12.X: coherent window could not be restored at ... (Windows error 487) ... Map gave 0x..., wanted 0x...; stopping before guest memory is used from the uma_driver tests (the address was apparently taken between the unmap and the map). The base 078358a0 passed 2 of 2 full suite runs on this machine in the same hour, and cargo test -p xcl --lib -- --test-threads=4 passed 2 of 2 on the base and 2 of 2 on the merge. I read both as intermittent failures in tests this PR does not touch; reporting them since they happened only on this PR's runs.
title run: none (the change is inside #[cfg(test)] mod tests of vram.rs, so xcl.exe is built from the same code as main; the needs:title-run label comes from the path)
review: read the whole diff and gpu::fence::wait (fence.rs). No blocking findings. 1) The unbounded SetEventOnCompletion(1, NULL) (a blocking wait in the driver) becomes fence::wait(&fence, 1, &dev, None, 10_000), which returns at once when the fence is already reached, otherwise waits on its own event, and on the limit returns Removed(reason) or Timeout(10000); the unwrap turns that into a test failure instead of a hang, as the other GPU tests in the crate do (runner.rs, texture.rs, bind.rs). 2) Minor: after a timeout the test panics while the GPU may still own the command list, allocator and read-back buffer, which are then released; that only matters on the hung-driver path the PR is about, where the test fails either way.performance: none (test-only; nothing in the runtime changes)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4090 24 GB, driver 621.40; Intel Core i9-13900K, 32 GB; Windows 11 build 26300; rustc 1.100.0, debug; Claude Code, Claude Opus 5.5

<!-- greyfinch-sync:ivall/xcl:comment:7363695117 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1706#issuecomment-7363695117). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-03T00:52:37Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 121bfea74639318909661c6dd48f64426b872005 merge: clean (`git merge --no-ff` onto 078358a0, merge 541154a6; crates/xcl/src/hle/d3d12x/vram.rs +1/-2, inside `mod tests`) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3006 passed, 0 failed, 52 ignored; failing: none (SKIPPED 25: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache). `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` ran and passed, the GPU finished its list well inside the 10 s limit. That is the third of three suite runs of the merge here: in the first two the lib test binary ended abnormally, before any `vram::` test had finished and with the changed test not among the running threads in the last thread dump: run 1 with 0xc0000005 inside the NVIDIA user-mode driver while `gpu::agility::tests::create_device_sets_dred_first` created a device (86 tests in), run 2 with exit code 130088963 right after `D3D12.X: coherent window could not be restored at ... (Windows error 487) ... Map gave 0x..., wanted 0x...; stopping before guest memory is used` from the `uma_driver` tests (the address was apparently taken between the unmap and the map). The base 078358a0 passed 2 of 2 full suite runs on this machine in the same hour, and `cargo test -p xcl --lib -- --test-threads=4` passed 2 of 2 on the base and 2 of 2 on the merge. I read both as intermittent failures in tests this PR does not touch; reporting them since they happened only on this PR's runs. title run: none (the change is inside `#[cfg(test)] mod tests` of vram.rs, so xcl.exe is built from the same code as main; the `needs:title-run` label comes from the path) review: read the whole diff and `gpu::fence::wait` (fence.rs). No blocking findings. 1) The unbounded `SetEventOnCompletion(1, NULL)` (a blocking wait in the driver) becomes `fence::wait(&fence, 1, &dev, None, 10_000)`, which returns at once when the fence is already reached, otherwise waits on its own event, and on the limit returns `Removed(reason)` or `Timeout(10000)`; the `unwrap` turns that into a test failure instead of a hang, as the other GPU tests in the crate do (runner.rs, texture.rs, bind.rs). 2) Minor: after a timeout the test panics while the GPU may still own the command list, allocator and read-back buffer, which are then released; that only matters on the hung-driver path the PR is about, where the test fails either way.performance: none (test-only; nothing in the runtime changes) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4090 24 GB, driver 621.40; Intel Core i9-13900K, 32 GB; Windows 11 build 26300; rustc 1.100.0, debug; Claude Code, Claude Opus 5.5
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/1706:upstream-pr/1706'
git switch 'upstream-pr/1706'

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