kernelx: LOAD_LIBRARY_AS_DATAFILE honors the VFS mount and whiteouts #1780
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!1780
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1780"
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?
@Luislariosss on GitHub · 2026-11-24 20:36 UTC · original
Luislariosss:kernelx-whiteouts→main· +52 −1 · 1 files · 1 commits · openLoadLibraryExWwithLOAD_LIBRARY_AS_DATAFILEreached the host copy of a game file even when the VFS had a whiteout for it, and a console path with no source left a path error instead ofERROR_FILE_NOT_FOUND.What is in it
load_as_datadelegates to a newload_as_data_in(vfs, ...), which resolves through the VFS first: a visible file loads from its source (console path and host path alike); a whited-out file fails withERROR_FILE_NOT_FOUNDbefore the host fallback is reached.load_library_ex_as_data_respects_vfs_mount_and_whiteouts: a DLL in the game folder loads through both the console path and the host path; afterdelete_filewhites it out, both paths fail withERROR_FILE_NOT_FOUND.Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib kernelxat the head: 37 passed, 0 failed, 1 ignored. The new test fails without the fix.cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
0c65342, clean tree):Not tested
AI use
@frenziedcoder on GitHub · 2026-11-24 20:55 UTC · original
NVIDIA test report for
0c65342: an NVIDIA run next to the RX 9060 XT one in the description. Full suite green, the PR's own test passing, and a clean smoke pair (1654 vs 1654 frames).Tested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head0c65342d87d6355b431b75bb1f17ef489830c9ea, no local changes.cargo build --workspace && cargo test --workspace -- --test-threads=4(debug): 876 passed, 0 failed, 42 ignored;load_library_ex_as_data_respects_vfs_mount_and_whiteoutspasses. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).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 (
4178e88, this PR's base; the same base run as in my report on #1747):this PR:
Not tested: a title loading a whited-out file as a data DLL; the world load; 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.
@DavidM1911 on GitHub · 2026-11-24 23:35 UTC · original
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 under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
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.