D3D12.X: IDXGIDevice2::EnqueueSetEvent sets the event when the GPU is there #876
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!876
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-876"
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?
@mastrr9 on GitHub · 2026-11-24 07:12 UTC · original
mastrr9:feat/d3d12x-enqueue-set-event→main· +105 −7 · 1 files · 1 commits · openImplements
IDXGIDevice2::EnqueueSetEventincrates/xcl/src/hle/d3d12x/dxgi_device.rs(previously returningE_NOTIMPL):present::known_queues) and registers the caller's Win32 event viaID3D12Device1::SetEventOnMultipleFenceCompletion(D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL).E_INVALIDARGon a null event handle.hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queuesverifying that a blocked queue holds the event unsignaled for 200 ms, signals it promptly once released, and an idle queue signals immediately.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstallede000303abf7b6c6afa519bd8ae9d911b3322c161cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored (hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queuesok)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: #876
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
e000303onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum).EnqueueSetEventtests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@Toons29 on GitHub · 2026-11-25 03:04 UTC · original
Regression run of
acb4c2e9on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 05:45 UTC · original
Empirical test report (
acb4c2e9)Verified xcl-dev/xcl PR #876 at commit
acb4c2e93bd5344bc7546220bdae784da4624334.Hardware / environment
Windows x64, build 26200, on an AMD64 Family 23 Model 113 host. The run held the Intel Arc A770 test lock and set
XCL_ADAPTER=A770. The fixture requests the default D3D12 device and falls back to WARP if device creation fails. It does not identify the selected device or driver.rustc 1.100.0 (0ef1bc386 2026-11-09), hostx86_64-pc-windows-msvc.dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).Commands and results
cargo test --workspace --no-runoutside the Arc lock completed with exit code 0.xcl-77aca8ccb20e299f.exe --exact hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queuesran directly from the workspace build underInvoke-ArcTest.ps1withRUST_TEST_NOCAPTURE=1. The wrapper exited 0. The harness reported 1 passed, 0 failed, 0 ignored, and 693 filtered out in 0.50 s. The log contained 0SKIPPEDlines.Observed behavior
The test rejected a null event handle with
E_INVALIDARG. With the direct queue held behind a fence, the event stayed unsignaled through the 200 ms check. After the CPU released the fence, the event signaled within the test's 10 s wait. A repeat enqueue on the idle queue also signaled within its 10 s wait.Not tested
The full GPU workspace suite and game smoke runs were omitted. The fixture exercised one direct queue. Multiple queues and the no-submission path were outside its coverage.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr876-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 09:52 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)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.