XGameRuntime: implement XPersistentLocalStorageMountForPackage #839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/845"
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 mastrr9 on 2026-11-24T06:39:53Z.
Implements
XPersistentLocalStorageMountForPackage(slot 8 of41a4e10cingdk_table.rs, previously returningE_NOTIMPL) and registers it in bothapi.rsandmod.rsexports:pls_path()) as a standardXPackageMounthandle compatible withXPackageGetMountPathSize,XPackageGetMountPath, andXPackageCloseMountHandle(case-insensitive package identifier match).HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)for any other package identifier, andE_INVALIDARGfor a null out-pointer or null/empty identifier (clearing*outto null first).pls_mounts_for_the_running_package_only.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstallede024c8610a44732af7f7188a4e9e1e5bd30913f6cargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored (new testhle::xgameruntime::tests::pls_mounts_for_the_running_package_onlypassed)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 wave64Not tested
scripts/smoke.ps1) not yet run (no retail title available in this clean-room environment); opened as Draft pending a smoke run.AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T07:06:29Z.
Full-suite run, since this PR has no test report yet. Tested exact head
e024c86(on its basebeaa245).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.pls_mounts_for_the_running_package_only.Not tested
AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T08:09:50Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
e024c86onto main1ec4c98(lane mergec9e2fca).The first lane run died mid-lib with no panic (transient Wine/Wine-X hiccup - same rig artifact as my batch-1 #818 note). Isolated reruns are clean and this is the honest row:
--test-threads=4: 668 passed, 7 failed, 21 ignored - exactly the known Wine-lane set from my #42 rows, zero flakes.e2e,pls_quota,predication_e2etargets: each fails only on its known Wine-lane signature (test_title_runs...,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff).XPersistentLocalStorageMountForPackagetests green here.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:45:32Z.
Empirical test report (
1d99a186)Hardware / environment
1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Cargo test profile was unoptimized, with debug info and incremental compilation disabled.1d99a18670874eec996fa169fabab0c8b4b06155for xcl-dev/xcl PR #845. Both commands ran outsideInvoke-ArcTest.ps1, with no Arc GPU mutex held. The focused run usedXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1.Commands and results
cargo test --workspace --no-runexited 0. It built the workspace test executables without executing them.cargo test -p xcl --lib hle::xgameruntime::tests::pls_mounts_for_the_running_package_only -- --exact --nocaptureexited 0. Focused log counts were 1 passed, 0 failed, 0 ignored, 0 skipped. The harness filtered out 693 tests.Observed behavior
E_INVALIDARG. It checked that the output handle was null after the null-identifier call.HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)and left a null output handle. The runtime logged that the package was unavailable.S_OKand a non-null mount handle.XPackageGetMountPathSizeandXPackageGetMountPathretrieved the path, which matched the runtime's persistent local storage path. The test then calledXPackageCloseMountHandle.Not tested
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr845-focused.logand published.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:27:43Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:50Z.
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-01T04:18:03Z.
Triage (#1607) – head
1d99a18No open or merged PR implements XPersistentLocalStorageMountForPackage (main only lists it in
gdk_table.rs).The handle is the same boxed
Mountthat XPackageMount returns, so XPackageGetMountPath(Size) and XPackageCloseMountHandle work on it unchanged;*outis nulled on every failure path. No problems found in the diff.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.