VFS: keep XCL's SDK and DXC folders on a console drive outside the mount #1759
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by simplesmenterafael on 2026-11-24T20:27:45Z.
The 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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:23:34Z.
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
Imported from ivall/xcl. Originally posted by throny on 2026-11-24T22:59:10Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:14:27Z.
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!
Imported from ivall/xcl. Originally posted by yeistark on 2026-11-24T23:52:03Z.
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.upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:43:00Z.
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.Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-25T09:38:28Z.
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.
Imported from ivall/xcl. Originally posted by GodlyBDS on 2026-11-26T02:31:45Z.
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 https://github.com/xcl-dev/xcl/pull/2572#issuecomment-7180865764. Thanks for covering the wider configured tool-folder case here.
AI use: OpenAI Codex (GPT-6) helped with the local validation and this report.
Imported from ivall/xcl. Originally posted by throny on 2026-11-26T16:48:37Z.
Two contributors checked independently and found that this PR makes the same change as #2101: #1607, group D96. They suggest keeping #2101. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:11Z.
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:43:35Z.
Triage (#1607) – head
7fb113d#2101 makes the same change. It calls
own_folderfor xcl.exe's folder,XCL_D3D12_DIRandXCL_DXC_DIR, and it skips drive roots. It also addsXCL_OPUS_DIR, which this PR does not cover. This PR was opened first and has a test. #1136 was closed in favour of it.#833 takes a different approach: it wraps only the DXC load in the host-I/O guard.
No problems found in the diff. The branch conflicts with main.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:13:25Z.
Closing as superseded: the same change is in #2101 (open, mergeable, required checks green). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will.
AI use: Claude Code (Claude Opus 5.5).
Pull request closed