Repository navigation
proton: unify driverstore hierarchy to CamelCase DriverStore to avoid case collision - #10276
ErenYeager1836 wants to merge 2 commits into
Conversation
|
The igdext loader is case sensitive and cannot be modified. |
c483375 to
cf6c435
Compare
|
Thanks for catching that, @damian-tomczak-intel! You're completely right—the loader in The reason for the collision in #10270 is that Wine ( I have updated the PR to do the reverse:
Both |
7a94df4 to
871b0bf
Compare
cf6c435 to
e61f363
Compare
871b0bf to
0764d29
Compare
e61f363 to
1dd79bc
Compare
0764d29 to
4ec46bc
Compare
Wine's setupapi creates drive_c/windows/system32/driverstore/filerepository in lowercase during prefix creation, while Proton creates drive_c/windows/system32/DriverStore/FileRepository/igd_faux.inf_1 for igdext64.dll. On case-sensitive Linux filesystems this produces duplicate directories differing only in case, causing Steam's "Move install folder" to fail with a file collision. Intel's igdext loader (d3dext-sdk) matches L"DriverStore\\FileRepository" case-sensitively via wcsstr and cannot be modified in shipped game binaries, so preserve CamelCase: - Normalize driverstore/filerepository to DriverStore/FileRepository in default_pfx.py at build time. - Migrate any existing lowercase driverstore/filerepository into DriverStore/FileRepository in setup_prefix() before update_builtin_libs(). Fixes ValveSoftware#10270 Related: ValveSoftware/steam-for-linux#12139
1dd79bc to
16af752
Compare
4ec46bc to
7d2df86
Compare
Summary
Fixes #10270 (and related to ValveSoftware/steam-for-linux#12139).
In
experimental_11.0(introduced with dxvk-igdext in #10115),intc_storeis defined as:"drive_c/windows/system32/DriverStore/FileRepository/igd_faux.inf_1"However, Wine creates its driverstore hierarchy in lowercase (
drive_c/windows/system32/driverstore/filerepository/igd_faux.inf_1). On case-sensitive Linux filesystems (ext4/btrfs), this leads to two folders that differ only by case:system32/driverstore/filerepository/igd_faux.inf_1/system32/DriverStore/FileRepository/igd_faux.inf_1/When a user tries to move a game via Steam's "Move install folder" UI, Steam compares paths case-insensitively, detects a file collision (
Can't overwrite existing file), and aborts the move operation with a file lock error.Furthermore, Intel's
igdextloader (d3dext-sdk) strictly checks forL"DriverStore\\FileRepository"viawcsstr(case-sensitive) and is compiled into existing game binaries, so the path must remain CamelCase.Solution
DriverStore/FileRepositoryin CamelCase sowcsstrin theigdextloader matches.proton(setup_prefix), migrate any files from the lowercasedriverstore/filerepository(e.g.igd10iumd64.dll) intoDriverStore/FileRepositoryand remove the duplicate lowercase folder on case-sensitive filesystems.default_pfx.py, normalize the driverstore directory to CamelCase at build time.Testing
python -m py_compile proton default_pfx.py.