Repository navigation
Conversation
…cl-dev#851, xcl-dev#864, xcl-dev#875-xcl-dev#876 and Wine raw fences Integrate clean upstream PRs on top of upstream/main (1ec4c98): - xcl-dev#849: direct move_away for remapped physical pages (avoids 4x sparse tile-mapping round-trips) - xcl-dev#838: FillMemoryWith*BitValueX uses list upload arena instead of leaked pattern buffers - xcl-dev#840: merge released ranges of the shared descriptor heap - xcl-dev#839: map queue-specific D3D12_BARRIER_LAYOUT values to legacy resource states - xcl-dev#841: preserve due frame-clock events when schedule changes at deadline - xcl-dev#851: split wrapped command lists before Wait64 GE after ordinary GPU work - xcl-dev#864: export XMemIsToolsMemAvailable returning 0 on retail - xcl-dev#875: tbuffer_load_format_* uses identity DST_SEL instead of V# DST_SEL - xcl-dev#876: implement IDXGIDevice2::EnqueueSetEvent Also add real::create_raw_fence for internal fences (late_release and EnqueueSetEvent) so Wine/vkd3d-proton never receives a FenceProxy on unadopted internal queues or SetEventOnMultipleFenceCompletion, and wrap list_x test exec with UnadoptGuard. Assisted-by: Antigravity (Google DeepMind)
… Linux PRs ivall#867/ivall#871/ivall#877 Update fork README for upstream/main 1ec4c98 (fenced late_release and queue-wait diagnostics), newly integrated PRs (ivall#838-ivall#841, ivall#849, ivall#851, ivall#864, ivall#875, ivall#876), live gameplay audio progress, and our three open upstream Linux PRs (ivall#867, ivall#871, ivall#877). Assisted-by: Antigravity (Google DeepMind)
… there EnqueueSetEvent returned E_NOTIMPL. A title calls it to learn when the GPU has done the work submitted so far (to keep the CPU at most a frame or so ahead); refused, it either waited on an event nobody set or ran ahead of the GPU without bound. Each queue the title gave work to on the device now signals a fence of XCL's, and the event is set when all of them are there (SetEventOnMultipleFenceCompletion). With nothing submitted yet the event is set at once. Assisted-by: Claude Code (Claude Opus 5.5)
e000303 to
acb4c2e
Compare
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. 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 AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
…cl-dev#864, xcl-dev#875-xcl-dev#876 Re-apply the 8 non-merged upstream PRs from our previous fork main onto upstream/main (930e8b4): xcl-dev#838 (upload-arena fills), xcl-dev#839 (queue-specific barrier layouts), xcl-dev#840 (coalesced shared descriptor heap), xcl-dev#841 (frame clock deadline reschedule), xcl-dev#851 (split before Wait64 GE after ordinary work), xcl-dev#864 (XMemIsToolsMemAvailable), xcl-dev#875 (tbuffer_load_format identity DST_SEL), and xcl-dev#876 (IDXGIDevice2::EnqueueSetEvent with create_raw_fence). Assisted-by: Antigravity (Google DeepMind)
|
Regression run of Against the limits in CONTRIBUTING.md: 100 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
Empirical test report (acb4c2e)Verified xcl-dev/xcl PR #876 at commit 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
Commands and results
Observed behavior The test rejected a null event handle with 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 |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
| let mut values = Vec::new(); | ||
| { | ||
| let mut g = QUEUE_FENCES.lock().unwrap_or_else(|e| e.into_inner()); | ||
| for q in super::present::known_queues() { |
There was a problem hiding this comment.
AI-assisted review (OpenAI GPT-6); I inspected the diff and test, but did not run tests.
The new contract says this event waits for every queue used by the title on this device, but the added test registers only one DIRECT queue. Could you extend it with two independently gated queues and verify that releasing just one leaves the event unsignaled? That would exercise the ALL multi-fence path and catch a regression that waits for only one queue.
Implements
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 (comment)
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