Tests: the D32S8 target test waits at most 10 s for its list #1706
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1706
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1706"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Royalflamejlh on GitHub · 2026-11-24 19:28 UTC · original
Royalflamejlh:fix/d32s8-test-wait→main· +1 −2 · 1 files · 1 commits · openUnder Wine + vkd3d-proton on NVIDIA, the lib test binary never finishes:
hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memorywaits for its command list withSetEventOnCompletion(1, NULL), and the GPU never finishes that list. The test now waits withgpu::fence::waitand a 10 s limit, so it fails withTimeout(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, andGetDeviceRemovedReasonreported 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 (onb7aa9f3, 1 run of each variant), leaving out the stencil plane'sCopyTextureRegionremoved 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 ownCopyTextureRegionoverride, 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, inmod testsonly: the wait afterqueue.Signaliscrate::gpu::fence::wait(&fence, 1, &dev, None, 10_000).unwrap(), as ingpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(title_textures.rs). One line in, two out.Tested
x86_64-pc-windows-gnu. The tests were pinned to that card withDXVK_FILTER_DEVICE_NAMEandVKD3D_FILTER_DEVICE_NAME.--test-threads=1: onmainc160d86the run was still waiting after 60 s when I ended it (1 run; onb7aa9f31 run, ended after 45 s). On121bfeait ended after 10.6 s: 1 passed, 1 failed withTimeout(10000)atvram.rs:1014(1 run). The D32S8 test alone passes on121bfea(1 run), as it did onb7aa9f3.cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4on121bfea: 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).mainc160d86: the lib test binary did not finish (the D32S8 test, andreservable_agrees_with_the_driverwaiting 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.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_untouchedfails on both at the same check,W: not cloaked(Wine). In the suite run on121bfeait 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 onmain. On121bfeaalso the D32S8 test itself, with the timeout, wheremainwaits.b7aa9f3).cargo test --workspace --release --no-fail-fast -j 8 -- --test-threads=4on121bfea, 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_memorypassed 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 istest_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 --releaseon121bfeagave 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 aftercargo 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).)121bfeaon 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. Thered32s8_targets_take_their_own_size_of_video_memoryran 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 withxcl.exestarted through Wine, on a retail title, withXCL_PSO_PRELOAD=0. Under Wine "peak commit" reads 0 MB, andexit: 0x89is the wrapper ending Wine after XCL's ownprocess ends, not XCL's exit code. The blocks sayRTX 4060 Ti 8GBbecause that is the name vkd3d-proton gives this 16 GB card. The change is insidemod tests, soxcl.exeis the same code in both.main:
xcl-smoke v1
commit:
c160d86ef2gpu: 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:
121bfea746gpu: 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
AI use
@DavidM1911 on GitHub · 2026-11-24 22:09 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.