XGameRuntime: save blobs beyond the Windows path limit #1836
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1846"
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?
Imported from ivall/xcl. Originally posted by gloger2003 on 2026-11-24T21:44:43Z.
Fixes #722. XGameSave could write the sibling temporary file, then fail to move it into place when the save path exceeded Windows' legacy path limit. Normalize the paths and pass their extended-length forms to the existing atomic replace.
What is in it
gamesave.rspreserves the existing replace and write-through flags, and tests creating and replacing a long-path blob and converting Windows path forms.README.mdnotes that long Windows save paths are supported.Tested
E_FAIL. All 12 XGameSave tests passed with the change.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output: 891 passed, 0 failed, 42 ignored. The heap-window fallback test skipped with the opt-in off and passed in a separate real-GPU run with heap windows enabled.Regression run
Minecraft Preview, the same 1× MSAA settings in both runs. The baseline's first run with default settings stopped at startup after a device removal.
Not tested
AI use
Imported from ivall/xcl. Originally posted by frenziedcoder on 2026-11-24T22:05:28Z.
NVIDIA test report for
20b51dc: full suite green, the PR's 2 own tests pass (atomic_save_creates_and_replaces_a_blob_past_max_path,move_paths_preserve_windows_path_forms), and a clean smoke pair on the retail title (1653 vs 1649 frames).Tested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head20b51dc577d68963b0ddfcce310952777fa5c63c, no local changes.cargo build --workspace && cargo test --workspace -- --test-threads=4(debug): 891 passed, 0 failed, 42 ignored; the PR's 2 own tests pass (atomic_save_creates_and_replaces_a_blob_past_max_path,move_paths_preserve_windows_path_forms). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).test_title_draws_with_a_root_signature_under_the_debug_layerreports ok, but this machine has no D3D12 debug layer (debug layer requested but unavailable … (0x887A002D)), so it ran without the layer and is no evidence either way.Regression run (
scripts/smoke.ps1 -Seconds 60, release, the retail title of #505 at its start screen;XCL_PSO_PRELOAD=0for both builds, because this machine's preload list holds the program of #1307)base (
b9b6ea6, this PR's merge base withmain):this PR:
Not tested: the world load (the smoke runs stop at the start screen, so code that only runs later is not exercised there); AMD.
AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.
upstream-sync referenced this pull request2026-11-25 00:08:32 +00:00
upstream-sync referenced this pull request2026-11-25 01:10:30 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:15:34Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:02:38Z.
PR #1846 — XGameRuntime long-path save verification
Verified
20b51dc577d68963b0ddfcce310952777fa5c63con STOR-WINLAB. The PR supplies absolute, extended-length Windows paths for both operands of the atomicMoveFileExWblob replacement.Environment
Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175,
DoublePrecisionFloatShaderOps=0, wave sizes 8–32). Rust 1.100.0 (0ef1bc386), DXC/DXIL 1.9.2609.5. Debug/test profiles with debug info and incremental compilation disabled.XCL_ADAPTER=A770.Tested
cargo build --workspaceandcargo test --workspace --no-runboth passed.cargo test -p xcl hle::xgameruntime::gamesave::tests:: -- --nocapture— 12 passed, 0 failed, 0 ignored. Both new tests also passed in the workspace suite.atomic_save_creates_and_replaces_a_blob_past_max_pathverified both writes returnedS_OKand read back the expected bytes at a path of at least 260 UTF-16 code units.move_paths_preserve_windows_path_formsverified drive-path normalization and conversion or preservation of UNC path strings.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock and exited 101. Summed across 20 harness summaries, Cargo reported 873 passed, 18 failed, 42 ignored. The log contains 4SKIPPEDlines. Those tests contributed to Cargo's pass count and provide no coverage.Failures and skips
0x80070057fromCreateComputePipelineState, including FP64 cases. Four had result mismatches in FMA, mip sampling, FP16 high-half preservation, and whole-wave reductions.0x80070490).Not tested
Live UNC writes, retail-title smoke on main or PR head, optional game samples, other GPUs, and D3D12 debug-layer coverage (missing
d3d12SDKLayers.dll). No baseline suite was run to establish whether the failures predate the PR.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1846-suite.logand published this report.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:29Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:58:16Z.
Triage (#1607) – head
20b51dcThe only other PR for #722 was #922, which is now closed. Main's
replace_fileingamesave.rsstill passes plain paths toMoveFileExW, so the fix is not on main yet.move_pathadds\\?\/\\?\UNC\afterstd::path::absoluteand leaves verbatim paths alone, and the long-path test creates and replaces a blob past 260 characters. No problems found in the diff. The branch conflicts with main and needs a rebase.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.