D3D12.X: borderless fullscreen on Alt+Enter / F11, the image at its aspect #604
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!604
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/604/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?
@simnJS on GitHub · 2026-11-24 02:24 UTC · original
window-fullscreen→main· +1011 −33 · 7 files · 2 commits · closed without mergingStacked on #555; only the top commit (
a452faa) belongs here.The XCL window was a fixed
WS_OVERLAPPEDWINDOWand DXGI's Alt+Enter is off (DXGI_MWA_NO_ALT_ENTER), so a player could not fill the screen; and the area filter of #555 stretched the image over the whole client area whatever its shape. Alt+Enter or F11 now toggles borderless fullscreen on the window's monitor and back (previous style, size and position restored),fullscreen = trueinxcl.tomlstarts in it, and when the client's shape differs from the image's the image keeps its aspect ratio, centred, with black bars. Not exclusive fullscreen; Alt+Enter does not press A.What is in it
D3D12.X: borderless fullscreen on Alt+Enter / F11, the image at its aspect(one commit, +360 / -20):crates/xcl/src/hle/d3d12x/window_mode.rs(new): the key decision (Alt+Enter, F11; auto-repeat and the Alt+EnterWM_SYSCHAReaten), the toggle (WS_POPUPover the monitor's full rectangle,Get/SetWindowPlacementon the way back),letterbox(the largest centred rectangle of the image's aspect), the tests.present/downscale.rs:Scaler::recorddraws into that rectangle (viewport, scissor, its origin in the shader's constants) after clearing the back buffer to opaque black. The Copy route is unchanged.present.rs: the keys inwndproc, the start in fullscreen inwindow_thread, the rectangle on the Filter route.kbm.rs: Enter held with Alt is not A until Enter is released;config.rs:fullscreen(default false);README.md(Controls).Tested
scripts/test.ps1(debug) ona452faa: 687 passed, 0 failed, 41 ignored.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware.alt_enter_is_not_a), config (the new key).WS_POPUP; Alt+Enter: back to 1280x720 at its place with its frame; a 1280x1000 client (letterboxed); 1280x720; F11 twice. Each change loggedpresent: swap chain WxH, noResizeBuffersrefusal, no device removal, 1526 of 1526 PresentX shown.Regression run
Same title for 60 s,
XCL_NETWORK=0, a 1280x720 window (windowed: the fullscreen code path is not taken in this run), the title's save folder emptied before each run.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 03:59 UTC · original
Tested exact head
a452faa(on its base9ce2070).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4, twice:gpu_uma_import_check_at_init,gpu_typed_buffer_loads_and_stores,gpu_valu_16_and_64_bit,gpu_wave32_and_wave64_src_vccz_execz;mainhas it too, #443 fixes it); stopped after 900 s.title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels(cubemap extra_pages must be reused at same va, left 2359296, right 2555904), thentitle_textures::tests::transitions_apply_when_their_list_is_submittedandvram::tests::d32s8_targets_take_their_own_size_of_video_memoryon the lock it poisoned (PoisonError).XCL_REQUIRE_GPU=mesh cargo test -p xcl --lib -- --test-threads=4, 3 more runs: 1 passed (653 passed, 0 failed, 21 ignored), 2 hung on #344 as above.9ce2070), but in none of 15 later lib runs (5 each onmain9ce2070, #606 and #608). So I read the failure as intermittent in the title-texture test onmain, not caused by this PR.Not tested
scripts/smoke.ps1(no title on this machine), AMD, a release build.AI use
@MesshM on GitHub · 2026-11-24 05:00 UTC · original
Test run of
a452faa3c541ea61c753ba8d49dfc9ef3fb5d99con AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge), so the tree tested includes the stack under it (#555).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 710 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 669 passed, 0 failed, 21 ignoredSKIPPED;alt_enter_and_f11_toggle_plain_enter_does_notandfullscreen_covers_the_monitor_without_a_framepass.Review: It overlaps #734 in purpose (borderless fullscreen and the image at its aspect on top of #555), so the maintainer will want one of the two; I did not compare them line by line.
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.
Pull request closed