D3D12.X: use dedicated PC direct queue for PresentX under Wine (#175) #793
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!793
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-793"
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?
@gsucristo on GitHub · 2026-11-24 05:33 UTC · original
gsucristo:d3d12x/wine-present-dedicated-queue→main· +201 −17 · 1 files · 1 commits · openUse a dedicated presenter-owned unadopted PC direct command queue for DXGI swap-chain creation and
PresentXcopies when running under Wine, synchronized with the title's adopted queue via GPU fenceSignal/Wait. Under Wine + vkd3d-proton, presenting on the title's adopted queue leaves the output window black. Native Windows behavior is unchanged. Part of #175.What is in it
crates/xcl/src/hle/d3d12x/present.rs: addWineQueueand raw-vtable helpers (create_pc_queue,create_pc_allocator,create_pc_list,create_pc_fence) used only whenutil::under_wine()is true; bind the DXGI swap chain to the dedicated queue and fence-bridge title queue → presenter queue → title queue on each present.crates/xcl/src/hle/d3d12x/present.rs(frame_dump_tests): adddedicated_pc_queue_copies_across_fence_from_title_queueverifying cross-queue fence-synchronized render target copy and readback.Tested
rustc 1.98.1(x86_64-pc-windows-msvccross-compile), debug.cargo test --workspace --no-fail-fast --target x86_64-pc-windows-msvc -- --test-threads=4 --skip a_freed_block_is_decommitted_before_its_address_is_reused: 700 passed, 4 failed (pre-existing Wine-only failures:hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime,test_title_runs_and_game_folder_is_untouched,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff), 41 ignored, 1 filtered (a_freed_block_is_decommitted_before_its_address_is_reused).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 wave64).hle::d3d12x::present::frame_dump_tests::dedicated_pc_queue_copies_across_fence_from_title_queue.Regression run
scripts/smoke.ps1runs on a retail title (Linux/Proton environment only).Not tested
util::under_wine()), AMD RDNA, Intel GPUs,scripts/smoke.ps1retail regression run.AI use
@MesshM on GitHub · 2026-11-24 05:51 UTC · original
Test run of
6f4bef3c81a981d8c85a2bb7f153115ddb00e61con AMD RDNA4. I merged it onto currentmaine50836blocally (clean merge).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED; thepresenttests pass.Review: Under Wine it presents on a dedicated PC direct queue; on native Windows, which is what this run is, the behaviour is meant to be unchanged, and the suite agrees. I could not run it under Wine, so the black-window fix itself is not checked here.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@mastrr9 on GitHub · 2026-11-24 06:18 UTC · original
Clean-room build, audit, and native hardware test run on NVIDIA RTX 5080 (Windows 11 Pro 25H2
26200.9974, driver617.42/32.0.16.1742,rustc 1.100.0, DXC Windows SDK10.0.26100.0).6f4bef3c81a981d8c85a2bb7f153115ddb00e61ccargo build --workspace): clean (only the pre-existingfetch_updatedeprecation warning).cargo test --workspace -- --test-threads=4):705 passed; 0 failed; 41 ignored(SKIPPED: only the 2 hardwareno wave64tests).hle::d3d12x::present::frame_dump_tests::dedicated_pc_queue_copies_across_fence_from_title_queuepassed on real hardware.orig_fnslots (8/9/12/36) matchID3D12Devicevtable order and signatures (CreateCommandQueue,CreateCommandAllocator,CreateCommandList,CreateFence), and COM ownership viafrom_rawis balanced. One tiny non-blocking note:title_q.Wait(&p.fence, ...)ignores itsResult, though CPU waits still prevent corruption.(Clean-room hardware check only; no retail title or
smoke.ps1run. Assisted-by: Antigravity / Claude Sonnet 5.5 + Gemini 4 Neon)@Anon64 on GitHub · 2026-11-24 07:17 UTC · original
Regression runs for this PR's head
6f4bef3and for its basemaind208e14, on a retail title (same title, 60 s each), made withscripts/smoke.ps1(release, clean tree at each commit) and pasted unedited, for Regression run.main:
this PR:
Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@Filip722 on GitHub · 2026-11-25 05:08 UTC · original
On an RTX 5060 Laptop GPU (8 GB), the cross-queue regression passed under Proton in 1.16 s with no skip. It read the expected green texel after a clear on the title queue and a fenced copy on the presenter queue.
I also compared main
6987e496c35653f9ccc9dbdc1f1d342734306811with only this PR's patch from6f4bef3c81a981d8c85a2bb7f153115ddb00e61capplied. Each Series X run started from an independent copy of the same offline profile, shader and driver caches. The patched run confirmed it selected the dedicated PC direct queue.The input to presentation was already black on the three frames sampled by both builds. The patched run ended before frame 404. I couldn't verify a visible title screen in this workload with the queue change alone.
Bazzite 44, kernel 7.2.9-ogc2.1.fc44.x86_64, NVIDIA 615.78.08, Proton Experimental 11.0-20261112, vkd3d-proton 3.1.0 (
4522cc1a8b1347f+), Rust 1.98.1 Windows MSVC target. Codex (GPT-6.2-Sol, high reasoning) assisted with the builds, tests and this report.@ClosetPie107 on GitHub · 2026-11-25 10:53 UTC · original
Linux / AMD RDNA4 (RADV) test report on
6f4bef3merged locally ontomain568e7db(clean merge).Environment
experimental-11.0-20261112), vkd3d-proton v3.1 (#257+dxil-spirv53aac418), DXVKv3.1.1-209, DXC1.9.2609.5,x86_64-pc-windows-gnucross-compileUnit & GPU tests (debug test binary,
XCL_ADAPTER=9070 XCL_REQUIRE_GPU=wave64,--test-threads=1 --nocapture)hle::d3d12x::present: 7 passed, 0 failed, 0 ignored, 0 skipped (0.21 s), includingdedicated_pc_queue_copies_across_fence_from_title_queue.Short retail check under Wine/RADV (release
xcl.exe,XCL_RUN_SECONDS=35,XCL_NETWORK=0,XCL_COHERENT_MB=512,XCL_ADAPTER=9070)present: using a dedicated PC direct queue under Wine851 PresentX calls), exit0, 0 device removals, 0 crashes.XCL_DXC_DIRwas not passed in this 35 s run (no DXClogged), so this confirms the dedicated presenter queue lifecycle and frame pacing under Wine/RADV, not rendered pixel content.Not tested: full workspace suite, rendered pixel verification with DXC set, native Windows.
AI use: T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran these checks on this machine, and drafted this report.
@DavidM1911 on GitHub · 2026-11-25 10:58 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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.