Repository navigation
Conversation
host_main previously registered only dxc::cache_dir() with Vfs::own_folder.
When XCL_DXC_DIR, XCL_D3D12_DIR, XCL_OPUS_DIR, or xcl.exe's own folder
lived on a drive mapped to a console mount (such as D: -> {game}),
vfs_hooks rewrote attribute probes inside the host process into the game
folder. Launcher preflight reported DXC as available, while every host
shader compile failed with dxcompiler.dll not found.
Exempt xcl.exe's directory and the configured tool DLL directories in
host::build_vfs, and ignore bare drive roots in Vfs::own_folder so a
misconfigured path cannot disable an entire console drive mount.
Assisted-by: Antigravity (Gemini 4 Neon)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with Tested
Regression run main (first run): this PR: The second Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
When
XCL_DXC_DIR,XCL_D3D12_DIR,XCL_OPUS_DIR, orxcl.exe's own directory sits on a drive letter mapped to a console mount (such asD:->{game}),vfs_hooksrewrites file-attribute probes inside the host process to the game folder. As a result, launcher preflight reports DXC as available, while every host shader compile fails withdxcompiler.dll not found.This registers
xcl.exe's directory and the configured tool DLL directories asVfs::own_folderinhost_main, and ignores bare drive roots inVfs::own_folderso a misconfigured path cannot disable a whole console drive mount.What is in it
Vfs::own_folder: ignore bare drive roots such asD:\(crates/xcl/src/vfs.rs)host::build_vfs& unit tests: exemptxcl.exe's parent folder andXCL_DXC_DIR,XCL_D3D12_DIR,XCL_OPUS_DIRfrom console drive mounts (crates/xcl/src/host.rs)Tested
cargo test) + release (smoke.ps1)cargo test --workspace -- --test-threads=4(withXCL_DXC_DIR=D:\Windows Kits\10\bin\10.0.26100.0\x64): 1156 passed, 0 failed, 46 ignored (24SKIPPEDGPU sub-checks on RTX 5080 wave32: 20no wave64, 3DIFFERS_ON_1426f16/V_CVT_F16_F32 per-lane refusals, 1no heap windows)9cc6a39e, 60 s,XCL_DXC_DIR=D:\Windows Kits\10\bin\10.0.26100.0\x64): onmain, launcher preflight found DXC onD:\while the host process failed 228/228 DXC compiles (translated_pipelines: 0, 0 translated draws); with this fix (46460b88), the host process loads DXC 1.8.2502.11 fromD:\Windows Kits\10\bin\10.0.26100.0\x64withtranslated_pipelines: 228, 0 compilation failures, and 32,768 translated draws (0 skipped)Regression run
Not tested
XCL_D3D12_DIRorXCL_OPUS_DIRon a console-mounted drive (covered by unit tests only)AI use