D3D12.X: composite multi-plane PresentX overlays #615
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!615
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/615/head"
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?
@0x6461726B on GitHub · 2026-11-24 02:32 UTC · original
0x6461726B:d3d12x-presentx-multiplane→main· +572 −41 · 2 files · 3 commits · merged 2026-11-25 16:29 UTCStacked on #605; only the top commit belongs here.
In Xbox Series S (
lockhart) mode, a retail title presents two hardware overlay planes per frame toPresentX: plane 0 (1920x1080scene) and plane 1 (3840x2160UI/menu/HUD overlay). Because XCL previously copied only plane 0 to the swap chain, menus, loading screens, and HUD were invisible (solid black screen) even while the title ran at 30 fps.This parses all planes from
D3D12XBOX_PRESENT_PLANE_PARAMETERS(stride0x48, optionalpSourceRect) and, whenever 2+ planes are active, lazily composites them into a swap chain sized to the largest plane (plane 0 opaque, planes1..Npremultiplied-alpha over). Single-plane titles keep the existing directCopyResourcefast path.What is in it
extract_planes,source_uv_rect, lazy D3D12Compositor, and multi-planepresent_nowcompositing path + unit testparse_present_planes_and_uv_rectsand WARP GPU testcompositor_blends_ui_plane_over_scene_planeincrates/xcl/src/hle/d3d12x/present.rs.Tested
32.0.16.2135), Intel Core i5-10400F, Microsoft Windows 11 Pro (Build 26300),rustc 1.100.0 (0ef1bc386 2026-11-09)cargo test --workspace -- --test-threads=4(debug): 686 passed, 0 failed, 41 ignoredSKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64lockhart) smoke run (retail title, 60 s, release): log confirmedpresent: compositing 2 planes into 3840x2160 DXGI_FORMAT(28) (plane 0: 1920x1080 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0], plane 1: 3840x2160 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0])andpresent: first game frame shown (3840x2160), running the full 60 s withexit: 0x0, 975 frames shown (PresentX 975), 0 crashes, 0 device removals, and making the title's loading screens/menus visible.Regression run
Not tested
no wave64skipped the two wave64 GPU tests above).pDestinationRectscaling.AI use
PresentXblack screen from logs, implemented the plane parser, D3D12 compositor, and unit/WARP tests inpresent.rs, ran the test suite and smoke test, and drafted this description.@CryingLaughing on GitHub · 2026-11-24 02:47 UTC · original
Tested
2ca749ab53cd3848acf51d6c5197e97911d05b80with a scratch-only RGBA8 readback extension inpresent.rs. NVIDIA GeForce RTX 4080, driver 621.01, Intel Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, debug.XCL_ADAPTER=4080,XCL_REQUIRE_GPU=1, allXCL_SAMPLE_*variables unset. The hardware fixture checked the device LUID against the selected DXGI adapter.cargo test -p xcl --lib --locked -j 4 hle::d3d12x::present::frame_dump_tests::compositor_blends_ -- --show-output --test-threads=1passed 2/2, with zero skips. The adapted WARP fixture passed its existing two-plane case. The hardware fixture read the same scene and UI first with two planes, then with a third plane that was transparent except for a premultiplied red texel over the green half-alpha sample.[0, 128, 127, 255][64, 96, 95, 255][0, 128, 127, 255][0, 128, 127, 255][0, 0, 255, 255][0, 0, 255, 255][255, 0, 0, 255][255, 0, 0, 255]Not tested
PresentXplane parser, swapchain presentation, BGRA surfaces, retail titles, release builds, or a full workspace run. The readback exercisesCompositor::recorddirectly.AI use
@crosettiremi on GitHub · 2026-11-24 04:23 UTC · original
Native Windows 11 / Radeon RX 7900 XT, Series S profile, retail 1.0.2.1. I tested the compositor commit
2ca749aon a local integration. At the account picker the control presented 1920×1080 and sampled 129,600 zero texels per frame. With the compositor, the log identified a 1920×1080 scene plane plus a 3840×2160 UI plane. I inspected the composed 3840×2160 frame at 25.275 s and could read the Player 1 / account-picker prompt. A at 37.015 s advanced to full-colour loading artwork. This confirms that the second plane contributes visible UI on this Radeon.The comparison also added #495's scatter-unmap fix. The control stopped at its known breakpoint at 41.473 s. The combined run reached world streaming, recorded 1,736 presents, and later hit the separate world-loading watchdog at 168.731 s with zero device removals. No verified gameplay.
The combined workspace passed 730 tests, 0 failed, 41 ignored; the compositor blend fixture passed. One nominal pass skipped the debug-layer title check because xgameruntime.dll was missing. Commands: cargo build --workspace --offline --locked and cargo test --workspace --offline --locked -- --test-threads=4 --nocapture, followed by a release hardware run. Codex (GPT-6) ran the tests and inspected the frame captures.
@upipibi on GitHub · 2026-11-24 04:47 UTC · original
Two things in
2ca749a, found by reading the code (not run):1. The fallback copies plane 0 into a back buffer of a different size (
present.rs:954-976,:1028)With two or more planes, the swap chain is sized to the largest plane (
mw/mh). When the compositor is unavailable (compositor unavailable – falling back to plane 0), the!compositedpath doesCopyResource(&bb, plane0).CopyResourcerequires identical dimensions, so a 1920×1080 plane 0 with a 3840×2160 plane 1 makes an invalid copy: the debug layer reports it, and without the debug layer the behaviour is undefined. Sizing the swap chain fromresolved[0]whenever compositing isn't possible, or copying plane 0 withCopyTextureRegionand a box, would avoid it.2. A root-signature reference leaks per pipeline (
present.rs:702)pRootSignature: ManuallyDrop::new(Some(self.root_sig.clone()))AddRefs and never releases, so each compositor PSO created keeps one extra reference. That's small, since the PSOs are cached per format.real.rsusestransmute_copyfor this field, which takes no reference.Merge order: this rewrites the same present path as #555 (which sizes the swap chain to the window) and #604, so whichever lands second has to redo its logic on top of the other, not just resolve the text.
AI-assisted (Claude Code), read-only review.
@MesshM on GitHub · 2026-11-24 05:00 UTC · original
Test run of
2ca749ab53cd3848acf51d6c5197e97911d05b80on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge), so the tree tested includes the stack under it (#605).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 703 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 662 passed, 0 failed, 21 ignoredSKIPPED;compositor_blends_ui_plane_over_scene_planeandparse_present_planes_and_uv_rectspass.Review: This adds an RDNA4 suite run to the retail run on the RX 7900 XT above; I did not check @upipibi's two points (they need the code path to run with a title). Note that it is stacked on #605, whose R11G11B10 choice I commented on there (it loses precision against R9G9B9E5; #242 uses fp16 for the same targets).
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.
@MrEjecutor on GitHub · 2026-11-24 06:27 UTC · original
Test report on Windows + NVIDIA for
2ca749a(this PR's head): on the Series S profile the menus become visibleTested
stable-x86_64-pc-windows-msvc; DXC 1.8.2505.32 (SDK 10.0.28000); releasemaine50836b+ #605 (c3d350a) + #495 (3ae0841) =c096040; with this PR on top =fcf9b8a. Local merges, no conflicts. #495 is needed to get past+0xb18de7on this profile.cargo test --workspace --release --no-fail-fast -- --test-threads=4on the base: 705 passed, 0 failed, 41 ignored; with this PR on top (fcf9b8a): 707 passed, 0 failed, 41 ignored;SKIPPEDon both (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwaredevice_type = "lockhart",XCL_NETWORK=0,XCL_FRAME_DUMP=120,XCL_PRESS_A_AT=14,17,21,30,40,50,60,75,90, 120 s, same saved state:compositing 2 planes into 3840x2160Regression run (Series S profile; both from the local merges above, not from
main/ this PR's head alone)Not tested
AI use
@volkan12a-bot on GitHub · 2026-11-24 06:44 UTC · original
Test report: retail title, measurements on the two planes (for this PR's compositing)
Not a run of this PR's head (
2ca749a). These are measurements withXCL_TRACE_FRAME=1onmain7ebf1b8, then a run of a local patch that only shows the larger plane (no compositing). I post them because they show what the two planes hold.Hardware / build
cargo build --releaseWhat the title passes
PresentXgets 2 planes, 0x48 bytes apart:[1, 1, 1475e0de0, f16cdfdf80, f16cdfdf50, 0, 0, 0, 0 | 1, 1, 1475e0df8, f16cdfdf90, f16cdfdf50, 0, 0].0x00000000(alpha 0 too). So it is an overlay that stays transparent at the language menu.mainshows plane 0 only, so every frame was black: the same as #781.With plane 1 shown
main; nothing in the planes.Not tested
smoke.ps1blocks; AMD GPUs.AI use
@sander110419 on GitHub · 2026-11-24 10:37 UTC · original
Test report on Linux (Wine), the newer retail game in the README table, Series S (
lockhart) mode:x86_64-pc-windows-gnumainof today plus several open PRs (among them #605 and the vtable part of #867, without which the title does not start under vkd3d-proton). This PR (2ca749a) merged on top.Without this PR the start screen was black in every Series S run, at a steady 30 fps. The log had
PresentX now with 2 plane(s), plane 0 a 1920x1080 target and plane 1 a 3840x2160 one, andswap chain 1920x1080. A local switch that presented plane 1 alone showed the menu art, so the start screen lives only in the overlay plane.With this PR the start screen shows at its normal brightness (checked by eye in the window), and the title takes input and goes on into world loading. The runs end later, in the
+0x23cf683stop and the0xffffffffffffffffread from #505, which have nothing to do with presenting.Merge note: on today's
mainthis conflicts inpresent.rswith the Wine presenter queue (WineQueue). I kept both: the dedicated PC queue under Wine, withcopy_sourcestaken from the resolved planes after the submit.cargo testunder Wine ofd3d12x::present::,device_x::,title_textures::andvram::: 36 passed, 0 failed.Not tested: Windows, AMD, gameplay with the HUD over a 3D scene (the runs do not get that far yet).
AI use: Hermes agent with Claude Opus 5.5 (
claude-opus-5-5) ran the builds and the game, and wrote this report; I checked it.@0x6461726B on GitHub · 2026-11-24 17:21 UTC · original
@upipibi Good catch — fixed #1 in
9251d80(left #2 as-is since the PSOs are cached per backbuffer format, so it's at most 1–2 refs for the process lifetime).@shortside on GitHub · 2026-11-24 21:32 UTC · original
Test report from macOS (CrossOver, Apple's D3DMetal): the compositor works there, and it is what makes Series S mode usable on this host.
Tested
x86_64-pc-windows-msvc(clang-cl / lld-link 23.1.6, xwin SDK).mac7(dbd9d09, onmain930e8b4) with this PR's head9251d80merged in. It merges without conflicts.mainalone does not draw on this host (#258), so the port is the base.device_type = "lockhart"inxcl.toml, run throughscripts/smoke.ps1in the foreground,XCL_DXC_THREADS=2,XCL_FRAME_DUMP=600, the same data root for both runs.mac7as it is):PresentX – the title presents its own frames (2 plane(s)),swap chain 1920x1080, 30 fps, and every dumped frame up to frame 4220 is0x00000000in all sampled texels. The XCL window is black.present: compositing 2 planes into 3840x2160 DXGI_FORMAT(28) (plane 0: 1920x1080 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0], plane 1: 3840x2160 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0]). The menus are visible in the XCL window and take keyboard input; dumped frame 1220 is a menu page, frames 1820–3020 the loading artwork. No "compositor unavailable" line, no device removal, no crash. Presents per 30 s: 577, 432, 763, 900, 481, 100.xcl-smokeblock from this host.Not tested
mainwithout the Mac port.AI use
@thehollowedone on GitHub · 2026-11-24 21:35 UTC · original
Tested
I checked the clipped fallback copy from
9251d80aon native D3D12 with an RTX 3080 Ti. The fixture copied a patterned 4×4 scene texture into an initialized 8×8 destination and read back the destination itself. All 16 pixels in the overlap matched the scene exactly, and all 48 outside it kept their sentinel values. The debug layer reported zero errors or corruption messages, and the device stayed healthy.The scratch fixture called the PR’s copy block extracted into a helper. Substituting the old unconditional
CopyResourcein the same fixture triggered D3D12 debug error 944 for the unequal sizes.cargo test --offline --locked -p xcl --lib scratch_present_fallback_clips_copy_on_native_d3d12 -- --nocapture --test-threads=1passed 1/1 with clipping and failed 1/1 with the old copy. The five stockhle::d3d12x::present::tests::tests and the separate WARP compositor test also passed. Zero skips.Windows 11 build 26300, NVIDIA driver 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC debug, Graphics Tools enabled for the native fixture.
Not tested
The native fixture used an offscreen destination. Retail presentation and swap-chain resize behavior were outside the check.
AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the fixture and drafted this report.
@NAbobo101 on GitHub · 2026-11-24 22:06 UTC · original
Tested
9251d80merged locally ontomain1d027e5(clean merge, tree5204044), retail title in Series S mode (device_type = "lockhart"), on an 8 GB NVIDIA card.Tested
XCL_NETWORK=0,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=1; I walked the menus by hand.mainc4d37be, the window stays black in Series S mode the whole time. The log saysPresentX – the title presents its own frames (2 plane(s))while the title runs at 30 fps in its menus (7 minutes, no crash).present: compositing 2 planes into 3840x2160 DXGI_FORMAT(28) (plane 0: 1920x1080 …, plane 1: 3840x2160 …), and the menus and the loading screen are visible and correct.Not tested
AI use
@gavinnolan on GitHub · 2026-11-24 22:47 UTC · original
Tested on Series S (
device_type = "lockhart") with the retail title 1.0.2.1: this fixes the black screen on my machine.Setup: NVIDIA GeForce RTX 2060 Laptop 6 GB (driver 595.79), i7-10750H, 16 GB RAM, Windows 11 10.0.26200, Rust 1.97.1, release build, DXC 1.9.2609.
main689f2dbwith this PR (head9251d80) merged locally, plus #833, #751, #1792 (Series S boot freeze) and #495's change applied by hand.XCL_NETWORK=0,XCL_FRAME_DUMP=90.Before (same machine, earlier
mainwithout this PR): the title logsPresentX now with 2 plane(s)at ~20 s, and every frame dump for 208 s was 1920x1080 with0 of 129600 samples not black(42 of 42 dumps).With this PR: same 2-plane PresentX, frames are now 3840x2160 and the UI plane shows: the account picker prompts at ~139 s, the intro art at ~150 s, the Rockstar logo at ~163 s, and the world loading screens from ~218 s (11 of 44 dumps not black; the rest are black transitions and loading). No device removal from the compositor. Menus ran at about 20-25 fps (Series X: 30 on the same machine).
Not tested: AMD / Intel GPUs, Series X (one plane there, so the direct path).
@Filip722 on GitHub · 2026-11-24 23:37 UTC · original
Verified the two-plane compositor on Bazzite 44 with an RTX 5060 Laptop GPU (8 GiB), NVIDIA 615.78.08, Proton Experimental 11.0-20261112 and vkd3d-proton 3.1.0 (local build
4522cc1+).I applied the presenter changes through
9251d80to XCL main20cf130, which already includes the format prerequisite. The only additional change selected the physical NVIDIA adapter in the existing WARP fixture. The release-build test blended a 4×4 scene with an 8×8 UI and checked transparent, opaque and half-transparent pixels by GPU readback. 1 passed, 0 failed, 0 skipped in 0.86 s.An earlier unpatched Series S run on this laptop recorded two present planes and showed a black window. This check covers the compositor with synthetic textures. A patched retail Series S run and gameplay are still unverified here.
OpenAI Codex assisted with the source port, testing and report.
@raylitebull on GitHub · 2026-11-25 00:55 UTC · original
Diff and status check on
9251d80:PR descriptionis passing and this already has broad dual-vendor verification across AMD (RX 7900 XT,RX 9060 XT) and NVIDIA, plus Wine/CrossOver.Build and test (Windows, no GPU)has not run on the current head9251d80(makingmergeStateStatusUNSTABLE).Next step to unblock merge: Please rebase onto current
main(or push an updated commit) so CI runsBuild and test (Windows, no GPU)on the head.@raylitebull on GitHub · 2026-11-25 01:06 UTC · original
Update: \Build and test (Windows, no GPU)\ is now green on \
9251d80\ (\CLEAN). One quick independent AMD check on exact head \9251d80\ (the earlier AMD runs were on \2ca749a) is all that remains before merge.@JJAutoCompare on GitHub · 2026-11-25 01:49 UTC · original
PR #615 verification
PR head
9251d80a7a9e283f3f681a77f22f9ede3152491cfromrefs/pull/615/headonorigin.origin/mainwas3da2abb81606df622610e009f0430de99aa9881c. The PR checkout was clean before and after testing.git merge-tree --write-tree origin/main HEADexited 0 with treeaef93be58296f5fa3678171adc26a72fd3725458.What is in it
crates/xcl/src/hle/d3d12x/present.rscomposites multi-plane PresentX frames, applies per-plane source rectangles, and clips the plane-0 fallback copy when dimensions differ.Tested
32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0), Windows 11 Enterprise Evaluation build26200.9974.rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.9.2609.5, dev/test profiles with debug info and incremental compilation disabled.cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the GPU lock.cargo test -p xcl --lib parse_present_planes_and_uv_rects -- --show-outputpassed (1 passed, 0 failed, 0 ignored).cargo test -p xcl --lib compositor_blends_ui_plane_over_scene_plane -- --show-outputpassed (1 passed, 0 failed, 0 ignored). It uses D3D12 WARP and ran insideInvoke-ArcTest.ps1. Both targeted tests also passed in the workspace run.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-outputran once underInvoke-ArcTest.ps1withXCL_ADAPTER=A770. Cargo exited 101 after completing every target.The reported passes include 5 explicit
SKIPPEDresults and 15 additional logged test-level early returns. These tests provide no coverage of the skipped paths.XCL_SAMPLE_RPF,XCL_SAMPLE_TTPF, orXCL_SAMPLE_AWC), 4 audio tests without a device or endpoint, and 1 Gaming Services test without systemxgameruntime.dll.Failures
GPU recompiler tests
gpu_clamp_and_omod_per_instruction,gpu_f64_class_compare,gpu_f64_compares_with_nan,gpu_f64_literal_high_word,gpu_f64_math_random,gpu_f64_roots,gpu_f64_rounding_and_conversions,gpu_float_compares_random,gpu_frexp_f64_exp_and_mant,gpu_ldexp_f64, andgpu_rndne_f64all failed atCreateComputePipelineStatewith0x80070057.gpu_nonfused_mad_and_mac_prevent_fma_contractionfailed the fusedv_fma_f32overflow control assertion.gpu_ps_image_sample_offset_implicit_lod_between_mipsread 25.609375 at pixel (0,0), expected 26.gpu_valu_16_and_64_bitfailed the lane 0v_add_f16high-half preservation assertion.gpu_wave64_ps_whole_wave_reductionsread[2, 188, 2]for pixel 0, expected[2, 44, 2].In
e2e,test_title_runs_and_game_folder_is_untouchedfailed the dynamic depth-bias check forRSSetDepthBiasX. The top-right pixel was blue, expected green.Full output in
L:\XclTooling\neon-slot-5\tmp\pr615-suite.log.Not tested
main, the merged tree, or other hardware. The run establishes failures on this PR head and adapter. Attribution requires a baseline.mainand the PR head. The targeted overlay render used WARP and provides no direct hardware or retail-title coverage of multi-plane PresentX.AI use
T3 Code / Codex (
gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified the counts againstpr615-suite.logand published this report.@mikebuckets171 on GitHub · 2026-11-25 01:49 UTC · original
Apple Silicon datapoint for this PR: the composite fixes the black Series S window on CrossOver + D3DMetal, and the new WARP test cannot run there
Machine and builds. MacBook Pro M5 Pro (
Mac17,8), 48 GB, macOS 27.2.1 (26B131), Rosetta 2, CrossOver 26.3 with the D3DMetal backend — XCL selects the adapter it reports as "AMD Compatibility Mode (40960 MiB VRAM)". Rust 1.100.0, LLVM-MinGW 20261117,cargo build --release --locked -p xcl --target x86_64-pc-windows-gnullvm.mac7tipdbd9d09.pull/615/headbranch (tip9251d80) merged cleanly ontodbd9d09— 2 files, merge commit716e02a. This is an integration-branch comparison, not amain-versus-PR pair.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_BACKGROUND=0 XCL_DXC_THREADS=4andXCL_RUN_SECONDS=<bound>, inside asandbox-execprofile, each attempt in its own fresh data root; Series S selected withdevice_type = "lockhart"in that profile'sxcl.toml. Each run's XCL window was verified on screen on the current desktop Space before the run was accepted.1. The gap this PR fixes reproduces on Apple Silicon, and the PR closes it.
PresentXplanesdbd9d090x01920x1080(plane 0 only)716e02a0x03840x2160716e02a0x03840x2160anaconda), base0x03840x2160Head logs the new line:
present: compositing 2 planes into 3840x2160 DXGI_FORMAT(28) (plane 0: 1920x1080 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0], plane 1: 3840x2160 DXGI_FORMAT(28) uv [0.0, 0.0, 1.0, 1.0]).Measured window contents (XCL's own window captured locally on this Mac and compared numerically — percentages are whole-frame, colour counts are from a 1-in-11 pixel sample; no images are attached and none left this machine):
[1.6, 1.6, 1.7][30.1, 30.1, 39.8][30.1, 30.1, 39.8]Series S on the base build shows nothing: 96.35 % of the window is pure black, exactly the symptom described here. With this PR the same window is filled, and compared with the same title through the existing single-plane path on the same host, the composited frame differs by 0.75 % of pixels (max channel delta 51) — the compositor reproduces the picture this host already gets when the title presents one plane.
2. The composited output responds to input; it is not a stuck frame. In a 150 s Series S run the window was pixel-identical at 40 s and 60 s (0 of 263,211 sampled pixels differ). One
Returnkey was then sent once to the window, focused without clicking it — no other key, no click in the client area, no controller input. Captures at 85, 110 and 140 s are identical to each other and differ from the pre-key frame by 16.35 % of sampled pixels (max channel delta 255), distinct colours 360 → 613. That run stayed clean: 4060 frames / 4060 PresentX, exit0x0, 0 crashes, 0 device removals.One caution for anyone reading Mac results: on this host, in every mode and build tried, the presented image settles into an unchanging frame from ~20 s onward while no input is sent, even though
PresentXkeeps counting at 30 fps. A Macxcl-smokeblock showing "N frames shown, N PresentX calls" does not by itself show the title advancing.3. The new WARP test cannot run on this host, and it fails instead of skipping.
cargo test --release --locked -p xcl --target x86_64-pc-windows-gnullvm --no-run, each test run through the offline CrossOver bottle with a literal--exactname:0x887A0004is the missing-SDK-component code: the D3DMetal-backed DXGI that Wine gives XCL on a Mac has no WARP software rasteriser, soEnumWarpAdapter()cannot succeed here. Suggestion, following the skip idiom used elsewhere for host gaps:Verified on this host on a branch based on
9251d80: the parser test still passes and the compositor test now reportsSKIPPED hle::d3d12x::present::frame_dump_tests::compositor_blends_ui_plane_over_scene_plane: no WARP.scripts/test.ps1countsSKIPPEDlines and neither it nor the workflow setsXCL_REQUIRE_GPU(ci.ymlsets only Cargo environment values), sono WARPcounts as a skip;skip_testingpu/recomp/runner.rsstill turns it into a failure if someone runs withXCL_REQUIRE_GPU=wave64or=mesh. Note that the pre-existing sibling test named above fails identically at the sameEnumWarpAdapter().unwrap()on this host — that one predates this PR, so the Mac test lane needs the same treatment in both places. Happy to hand the commit over if you want it.Not tested. No Windows run and no
scripts/smoke.ps1pair (macOS only host, no Windows runner), no fullcargo test --workspace, and no comparison against what a real Series S display composes — the composite is compared with this host's own single-plane output, not with console hardware. Run bounds differ between rows, so the frame counts are not a performance comparison. The pixel numbers describe XCL's own window on this Mac; they do not establish correct pixels or playable gameplay.AI use: GPT-6 Luna (the runs, captures, measurements and this write-up).
@DavidM1911 on GitHub · 2026-11-25 12:58 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
@427001 on GitHub · 2026-11-24 13:03 UTC · original · edited 2026-11-25 14:07 UTC
Test report for
2ca749aon an RTX 3080 10 GB with 16 GB RAM, Series S profile: the menus become visible; loading starts, then the title's stall stop at+0x23cf683Tested
stable-x86_64-pc-windows-msvcmain47efa2e+ #605 (c3d350a) + #495 (3ae0841); with this PR (2ca749a) on top =a72b40c. #605 and this PR merge cleanly. #495 conflicts withmainin the tests ofkernelx.rsonly; I keptmain's side there, so #495's own test is not in these trees.cargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4ona72b40c(debug): 743 passed, 0 failed, 41 ignored;SKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.compositor_blends_ui_plane_over_scene_planeandparse_present_planes_and_uv_rectspass.main47efa2eon this machine: 741 passed, 0 failed, 41 ignored, the same two skipped.device_type = "lockhart"/console_type_raw = 5, both runs withXCL_NETWORK=0 XCL_RUN_SECONDS=300 XCL_ACTIVITY=1 XCL_FRAME_DUMP=150 XCL_PRESS_A_AT=30,36,60,68,…,220:compositing 2 planes into 3840x2160)0xc0000005at+0x23cf683(write at 0x0) at 226.9 sNot tested
smoke.ps1block; the Series X profile with this PR; AMD; the two points of @upipibi's review.Whether the lower present rate at 80–118 s comes from the 3840x2160 composite– it does not, see the update below: the two runs of the table were on different screens.Update (same day): a second pair of runs, and two corrections to the above
Same two trees, same settings, but only scripted presses, the same saved state restored before each run (first-run setup already done, so both go from the intro to loading), and Windows' memory counters read once a second.
+0x23cf683too: at 187.0 s, last present at about 158 s; with this PR at 229.1 s, last present at about 200 s. Peak commit 24 866 MB / 25 412 MB, peak local video memory 13 037 MB / 13 424 MB (base / this PR).+0x23cf683stop on a machine with memory to spare, and they do not show that 16 GB is too little either: that needs a run with the other programs closed.AI use
Update (2026-11-25): head
9251d80merged intomain379725a, and what the conflict withmainneedsmaingot a pipelined presenter after this PR's base (587d77b:PresentRing, two allocator slots,slot_sources), and9251d80no longer merges with it. What my local merge did inpresent.rs, for whoever rebases:struct Presenter(main:PresentRing…mark_pipe_drained; this PR:compile_fx…Compositor): both kept, one after the other.copy_sources: Vec<ID3D12Resource>replacescopy_source: Option<…>, somain'sslot_sourcesbecomesVec<Vec<ID3D12Resource>>:p.copy_source.take()→std::mem::take(&mut p.copy_sources),= None→.clear()(inprepare_pipelined_slot,mark_pipe_drainedand after a frame dump), andnew_presenterfills both.prepare_pipelined_slot(p, frame.is_some())→is_frame(this PR movesframebefore that line).main379725a, resolved this way, is the branchpr615-on-main-379725aof427001/xcl(91491a6;cargo test -p xcl --lib present: 9 passed, 0 failed) – take from it whatever helps.main's two present slots its own range of the compositor's SRV heap (MAX_PLANES * PRESENT_SLOTSdescriptors, a frame's base atslot * MAX_PLANES), because a present now waits only for frame N−2 and frame N−1 can still be on the GPU when frame N writes its descriptors. I did not run the merge without that, so I cannot say it shows in the picture.Tested (same machine as above; Windows 11 Pro 26200.9974, driver 616.92)
main379725a+ #495 (3ae0841) + this PR (9251d80), merged as described.cargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4(debug): 1257 passed, 0 failed, 46 ignored.compositor_blends_ui_plane_over_scene_planeandparse_present_planes_and_uv_rectspass. 27SKIPPEDlines of 17 tests: 20 "no wave64", 3 per-lane f16 forms refused, 1 "no heap windows", 2 without the D3D12 debug layer, 1 that cannot turn the driver cache off.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=100 XCL_PRESS_A_AT=40,55, the same saved state:main379725acompositing 2 planes into 3840x2160: plane 0 1920x1080, plane 1 3840x2160)0x80000003at+0xb18de7at 44.6 s (what #495 fixes)+0x193e00fwith0x8007000e(#333) at 118.2 s and 145.5 smain's window stayed black (seen by eye in an earlier run ofmain1a0bbe3, and all 8 dumps of this run are black).+0x193e00fis the one of #333, not this PR: a pool heap for title textures is refused with about 12.5 GB of local video memory in use on this 10 GB card. (Corrected: I first put it down to the system's commit, which was nearly used up in these runs; a later run with a larger page file and 31.8 GB of commit free stops the same way at 127.4 s.)Not tested (this update): the title on this PR alone on
main(the tree of the runs also has #495, without which the Series S profile stops at+0xb18de7a few seconds after the first button press); the merge without the per-slot SRV ranges;XCL_PRESENT_SYNC=1; AMD.AI use for this update: Claude Code (Claude Fable 5.2) made the merge, ran the builds, tests and runs and wrote it.
@ivall on GitHub · 2026-11-25 16:29 UTC · original
Merged into
main(65fc114), with one change at the conflict. Since the pipelined presenter, two presents are in flight, and this PR's shader-visible heap has one set of plane SRVs that every frame rewrites: the previous frame can still be reading it. The heap now has one set per present slot (MAX_PLANESxPRESENT_SLOTS) andrecordtakes the slot. The fallback copy path keepscopy_sourcesper slot.cargo test --workspace --no-fail-fast -- --test-threads=4: 1279 passed, 2 failed (#2115, as onmain), 46 ignored;XCL_DIRECT_DXIL=allongpu::: 643 passed, the same 2 failed. Your two tests pass.main; with this it is visible and the title loads. That was a tree with other open PRs on top; this exact merge has not been run in a title. Series X mode (one plane) uses the old path.AI use: Claude Code (Claude Opus 5.5) resolved the conflict, ran the tests and wrote this on the maintainer's behalf.