Skip to content

proton: unify driverstore hierarchy to CamelCase DriverStore to avoid case collision - #10276

Open
ErenYeager1836 wants to merge 2 commits into
ValveSoftware:experimental_11.0from
ErenYeager1836:fix/driverstore-case-collision
Open

ErenYeager1836 wants to merge 2 commits into
ValveSoftware:experimental_11.0from
ErenYeager1836:fix/driverstore-case-collision

Conversation

@ErenYeager1836

@ErenYeager1836 ErenYeager1836 commented Oct 17, 2026 •

Copy link
Copy Markdown

Summary

Fixes #10270 (and related to ValveSoftware/steam-for-linux#12139).

In experimental_11.0 (introduced with dxvk-igdext in #10115), intc_store is 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 igdext loader (d3dext-sdk) strictly checks for L"DriverStore\\FileRepository" via wcsstr (case-sensitive) and is compiled into existing game binaries, so the path must remain CamelCase.

Solution

  1. Preserve DriverStore/FileRepository in CamelCase so wcsstr in the igdext loader matches.
  2. In proton (setup_prefix), migrate any files from the lowercase driverstore/filerepository (e.g. igd10iumd64.dll) into DriverStore/FileRepository and remove the duplicate lowercase folder on case-sensitive filesystems.
  3. In default_pfx.py, normalize the driverstore directory to CamelCase at build time.

Testing

  • Validated syntax with python -m py_compile proton default_pfx.py.
  • Tested directory migration and cleanup on ext4 filesystem with both clean and existing prefixes.

@damian-tomczak-intel

Copy link
Copy Markdown

The igdext loader is case sensitive and cannot be modified.

@ErenYeager1836
ErenYeager1836 force-pushed the fix/driverstore-case-collision branch from c483375 to cf6c435 Compare October 20, 2026 19:01
@ErenYeager1836 ErenYeager1836 changed the title proton: use lowercase driverstore path for igdext64.dll and clean legacy directory proton: unify driverstore hierarchy to CamelCase DriverStore to avoid case collision Oct 20, 2026
@ErenYeager1836

Copy link
Copy Markdown
Author

Thanks for catching that, @damian-tomczak-intel! You're completely right—the loader in d3dext-sdk (Device_MatchDevicePath) uses wcsstr(Path, L"DriverStore\\FileRepository"), which is strictly case-sensitive and cannot be changed since it's already compiled into shipped game binaries.

The reason for the collision in #10270 is that Wine (wineboot / devinst.c) creates driverstore/filerepository/igd_faux.inf_1/ (containing igd10iumd64.dll), while Proton creates DriverStore/FileRepository/igd_faux.inf_1/ (containing igdext64.dll). On Linux's case-sensitive filesystem, both directories exist side-by-side, causing Steam's install mover to fail with a file collision error.

I have updated the PR to do the reverse:

  1. Keep DriverStore/FileRepository in CamelCase so wcsstr continues to match.
  2. Migrate any files from the lowercase driverstore/filerepository into DriverStore/FileRepository and remove the lowercase folder in setup_prefix().
  3. Normalize default_pfx in default_pfx.py so new prefixes start with CamelCase.

Both igd10iumd64.dll and igdext64.dll now reside in the expected CamelCase folder, igdext loading continues to work, and Steam's mover succeeds without collision.

@ErenYeager1836
ErenYeager1836 force-pushed the fix/driverstore-case-collision branch from cf6c435 to e61f363 Compare November 2, 2026 08:56
@ErenYeager1836
ErenYeager1836 force-pushed the fix/driverstore-case-collision branch from e61f363 to 1dd79bc Compare November 12, 2026 15:23
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
@ErenYeager1836
ErenYeager1836 force-pushed the fix/driverstore-case-collision branch from 1dd79bc to 16af752 Compare November 15, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants