Repository navigation
VFS: keep XCL's SDK and DXC folders on a console drive outside the mount - #1769
simplesmenterafael wants to merge 1 commit into
Conversation
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 <noreply@anthropic.com>
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test report for #1769: fixes Tree: Tests: Without this PR (
With this PR (
Not tested: |
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 of 7fb113d: 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