Repository navigation
Conversation
…ev#175) Under Wine + vkd3d-proton, creating the DXGI swap chain and submitting the present copy on the title's adopted command queue leaves the window black. When running under Wine (`util::under_wine()`), allocate a presenter-owned unadopted PC direct queue, allocator, command list, and sync fences via the raw device vtable, hand out the swap chain on that queue, and synchronize each present copy across the title queue and presenter queue with GPU fence Signal/Wait. Native Windows behavior is unchanged.
|
Test run of Tested
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 Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Clean-room build, audit, and native hardware test run on NVIDIA RTX 5080 (Windows 11 Pro 25H2
(Clean-room hardware check only; no retail title or |
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
crastinator
left a comment
There was a problem hiding this comment.
Tested on RDNA2 under Proton with a patched vkd3d-proton: the test suite shows no new failures.
Tested (head 6f4bef3, merged onto main 930e8b4: no conflicts)
- AMD Radeon RX 6700 XT (RDNA2, gfx1031, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS)
- Proton Experimental 11.0-20261112's Wine, vkd3d-proton v3.1 + #257's patch (
-Db_ndebug=true, dxil-spirv53aac418from #775), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5, libopus 1.5.2,XCL_REQUIRE_GPU=wave64,mesh(0 SKIPPED) - cross-built for
x86_64-pc-windows-msvc(clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug cargo test -p xcl --lib -- --test-threads=1plus every integration test (--test '*' -- --test-threads=1), compared per test with the same runs onmain930e8b4.mainhere: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e,pls_quota#810,predication_e2e#1272). Separately,title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted}andvram::d32s8_targets…fail together in 2 of 5mainruns (the #718 family), so I do not count a pass of those as a fix either way.- PR: 744 passed, 8 failed, 41 ignored (
main: 740 / 11 / 41, with the #718 flakes failing in that run). No test fails here that passes onmain. The e2e test title still fails here at itsuser32 … not cloakedcheck, as it does onmain; that check is #794's area, not this PR's.
Not tested
- Anything that needs game files: no
XCL_SAMPLE_*was set, so the tests that read them (about 66) pass without running. - What the PR fixes, a black window with a retail title: no game here. Real presentation on screen.
AI use
- Claude Code (Claude Opus 5.5) merged, built and ran this and wrote the report; I checked the results.
Use 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