VFS: keep XCL's SDK and DXC folders on a console drive outside the mount #1769
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!1769
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1769"
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?
@simplesmenterafael on GitHub · 2026-11-24 20:27 UTC · original
simplesmenterafael:vfs/xcl-folders-on-console-drives→main· +43 −2 · 2 files · 1 commits · openThe default config mounts the console drives
G:andD:on the game folder. XCL looks upXCL_D3D12_DIR,XCL_DXC_DIRand xcl.exe's folder after the file hooks are installed, so when those folders are on the PC'sG:orD:drive the lookups land in the game folder. The Agility SDK is then reported missing (XCL_D3D12_DIR=G:\... has no D3D12Core.dll) even though the file is there, and XCL falls back to the inbox D3D12 (SM 6.5 on Windows 10) and the Windows SDK's DXC. Only the shader cache was registered withVfs::own_folder; this registers XCL's other folders the same way.What is in it
crates/xcl/src/host.rs:xcl_folders()(xcl.exe's folder,XCL_D3D12_DIR,XCL_DXC_DIR), each passed toVfs::own_foldernext to the shader cache.crates/xcl/src/vfs.rs:own_folderignores the root of a drive (XCL_D3D12_DIR=G:\would otherwise turn off the wholeG:console mount), and a test: an SDK folder on a mounted drive stays the PC's, the console's paths on that drive still go to the game, and a drive root does not turn the mount off. The test fails without the drive-root check.Tested
G:drive..\scripts\test.ps1(cargo test --workspace -- --test-threads=4) on the tree of7fb113d: 859 passed, 0 failed, 42 ignored. 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).hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory(list.Close()→0x80004005after ~935 MB of 4K D32S8 targets); it passed alone 3 of 3 times and in the next full run. It does not go through the VFS; it looks like memory pressure on an 8 GB card with 4 test threads.Agility SDK unavailable (XCL_D3D12_DIR=G:\Claude\Tools\D3D12 has no D3D12Core.dll) – using inbox D3D12, DXC from the Windows SDK (1.9.2602.17), and 26,757D3D12SerializeVersionedRootSignaturefailures (Unsupported bit-flag set (root signature flags c00)). With this PR:Agility SDK v620 (G:\Claude\Tools\D3D12), DXC 1.9.2609.5 fromXCL_DXC_DIR, 0 root signature failures.exit 0xc0000005, no frame count logged); this PR runs the 60 s and exits normally (1051 frames, no crash, no device removal). The regression blocks below are 30 s runs, which end before main's crash, so the two can be compared.Regression run
main:
PR:
Not tested
D:mount with XCL's folders on the PC'sD:drive (the same code path asG:, not run).<exe>\D3D12(onlyXCL_D3D12_DIR/XCL_DXC_DIRwere run; xcl.exe was onG:too, intarget\release).AI use
The default config mounts the console drives G: and D: on the game folder. XCL resolves XCL_D3D12_DIR, XCL_DXC_DIR and xcl.exe's folder after the file hooks are in, so with them on the PC's G: or D: drive the lookups went into the game folder: the Agility SDK was reported missing ("has no D3D12Core.dll") and XCL ran on the inbox D3D12 (SM 6.5 on Windows 10) and the Windows SDK's DXC. Only the shader cache was registered with own_folder. Register these folders with own_folder too, and make own_folder ignore the root of a drive, which would turn off that drive's console mount. Measured on an RTX 3050, Windows 10 19045, with the SDK and DXC on G:: a retail title went from an access violation at ~40 s (26k root signatures refused with "Unsupported bit-flag set (root signature flags c00)") to 60 s without a crash, with the Agility SDK v620 and DXC 1.9.2609.5 loaded from G:. Co-Authored-By: Claude Opus 5.5 <[email protected]>@futurepro62 on GitHub · 2026-11-24 21:23 UTC · original · edited 2026-11-24 21:44 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
7fb113d(on its base9039900).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 858 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_console_drive_mount_leaves_xcls_sdk_folders_but_not_the_whole_drive.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@throny on GitHub · 2026-11-24 22:59 UTC · original
Two contributors checked independently and found that #1136 solves the same problem in a different way: #1607, group D62. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@DavidM1911 on GitHub · 2026-11-24 23:14 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!
@yeistark on GitHub · 2026-11-24 23:52 UTC · original
Test report for #1769: fixes
XCL_DXC_DIRon the PC'sD:drive here; it also explains why driver blobs fromxcl shaders --precompile --pipelineswere never used byxcl runon this machine.Tree:
9eaaf9b(local, no uncommitted changes) =main4178e88+ revert ofb8b1f49(#1307) + #1316 (f207df1) + #640 + #1429 + #1279 + this PR (7fb113d).Hardware / software: NVIDIA RTX A2000 12 GB (wave32), driver 621.14; Ryzen 7 5700; 16 GB RAM; Windows 11 26200; rustc 1.100.0 MSVC, release. DXC 1.9.2609.5 unpacked to
D:\dev\dxc\bin\x64; the Windows SDK 10.0.26100.0 onC:has DXC 1.9.2602.17. Defaultxcl.toml("D:" = "{game}"). Retail 1.0.2.1.Tests:
cargo test --workspace -- --test-threads=4on9eaaf9b: 920 passed, 0 failed, 42 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,gpu_compact_native_wave64_form(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off).Without this PR (
XCL_DXC_DIR=D:\dev\dxc\bin\x64):xcl runtoday loadedDXC: dxcompiler 1.9.2602.17 … from C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64(e.g. one617f1f), whilexcl shaderswith the same variable loaded 1.9.2609.5 fromD:\dev\dxc\bin\x64.dxc::load(not committed):D:\dev\dxc\bin\x64\dxcompiler.dll is not a fileinside the title process;\\?\D:\dev\dxc\bin\x64was redirected too.xcl shaders <pack> --precompile --only cs --pipelinesnever matched the title's pipelines.dxc -dumpbinof two DXIL files of the same program and size (one from each process) differs only in!{"dxcoob 1.9.2609.5"}vs1.9.2602.17and the shader hash. Before I noticed, a run reused 62 blobs and built 36 compute pipelines of > 1 s after#101.C:\xd → D:\. That loads the right DXC, but withXCL_DXIL_CACHE=C:\xd\XCL-data\dxilthe cache writes went to the overlay ([VFS] write to a game file redirected to the overlay: XCL-data\dxil\…), since the junction resolves toD:and the cache is registered under theC:path. So the junction is not a substitute for this PR.With this PR (
XCL_DXC_DIR=D:\dev\dxc\bin\x64,XCL_DXIL_CACHE=D:\XCL-data\dxil, no junction,XCL_RUN_SECONDS=25 XCL_NETWORK=0):DXC: dxcompiler 1.9.2609.5 (01b62ad4), dxil 1.9.2609.5, from D:\dev\dxc\bin\x64redirected to the overlay: XCL-data…lines; 725 compute pipelines came from the driver blobs written by the offline pass.#101and skipped 1 dispatch, against 36 builds and ~300 skipped without matching blobs.Not tested:
XCL_D3D12_DIRonD:/G:(I use the inbox D3D12); xcl.exe itself onD:running a title from that folder (mine is underD:\GTA\xcl\target\release, which this PR registers too, but I did not check a case where it mattered); AMD.@JJAutoCompare on GitHub · 2026-11-25 03:43 UTC · original
PR #1769 compatibility verification
Tested detached head
7fb113d32ca5e09c7d07d08827008b823e4c77d0on STOR-WINLAB (Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X). Intel Arc A770 16 GiB, driver 32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0. DXC and DXIL 1.9.2609.5 viaXCL_DXC_DIR, withXCL_ADAPTER=A770. Rust 1.100.0 (0ef1bc386 2026-11-09), unoptimized dev/test profiles with debug info disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runboth succeeded. Allcargo testcommands used the shared Arc lock, including test-binary compilation.cargo test -p xcl vfs -- --nocapturereturned 23 passed, 0 failed, 0 ignored, and 0SKIPPEDlines. The new regression test verified that an owned SDK DLL path passes through, ordinary paths on the mounted drive still map to the title, and offering the drive root as an exclusion preserves the mount. The same test passed in the full suite.cargo test --workspace --no-fail-fast -- --test-threads=4exited 101. Summed across 20 result summaries inpr1769-suite.log, libtest reported 841 passed, 18 failed, 42 ignored. The log contains 3SKIPPEDlines (2 no wave64, 1 no heap windows). These markers represent skipped coverage within the reported totals.Failures
CreateComputePipelineStateerror0x80070057, including FP64 cases. Four reported mismatches involving FMA overflow, implicit mip LOD, packed f16 writes, and wave reductions.RSSetDepthBiasX. The top-right pixel was blue and the test expected green.Not tested
Actual Agility SDK and DXC loading from a host directory on a mounted console drive, a retail-title smoke run or baseline on
main, other GPUs, Windows 10, the D3D12 debug layer (d3d12SDKLayers.dllabsent), or optional game samples (XCL_SAMPLE_*unset).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 againstpr1769-suite.logand published this report.@vakaobr on GitHub · 2026-11-25 09:38 UTC · original
Test report from macOS (CrossOver + D3DMetal), head
7fb113d. I opened #1136 for the same problem; this one covers more (the DXC folder and xcl.exe's folder too) and keeps the drive-root guard I'd added there, so I'll close #1136 in favour of this.Tested
x86_64-pc-windows-gnu, debug.vfs::tests: 13 passed.agilitytests: 8 passed.a_console_drive_mount_leaves_xcls_sdk_folders_but_not_the_whole_drive: passes, and fails (vfs.rs:840) with thedrive_rootcheck taken out, so it guards what it says.One difference from #1136, for you to decide:
agility::candidatesalso looks in%LOCALAPPDATA%\XCL\D3D12, andxcl_folders()doesn't own that folder. It only matters when the user's profile is on a drive letter a console mount names (a profile moved toD:, say), so it may well not be worth a line; #1136 covered it by owning each candidate'sD3D12Core.dll.Not tested: Windows, an end-to-end run with
XCL_D3D12_DIRon a mounted drive.AI use: Claude Code, Claude Opus 5.5 ran the tests on this machine and wrote this report.
@GodlyBDS on GitHub · 2026-11-26 02:31 UTC · original
Independent confirmation of the host-drive Agility failure on an RTX 3090 Ti
Windows 10 19045, NVIDIA 621.40, SDK v620, retail title 1.0.2.1. I reproduced this with the
nvidia-devintegration head22eb6f21, with the SDK on a native drive whose letter was also a console mount. XCL reported the DLL missing, used inbox D3D12, rejected heap-indexing root flags, and hit the #598 startup crash at 7.594 s.A small local change that uses native path resolution only during Agility initialization loaded the same SDK, produced translated draws, and reached texture loading before a separate #662 XG failure. The nested native path scope regression passed. This independently confirms the mount collision. The local test uses a different implementation from #1769, and I have not run this PR's exact head.
The complete NVIDIA branch cross-check is in #2572. Thanks for covering the wider configured tool-folder case here.
AI use: OpenAI Codex (GPT-6) helped with the local validation and this report.
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.