Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wine 9.0 flatpak not working with flatpaked dxvk #4064

Open
ColinKinloch opened this issue Jun 8, 2024 · 3 comments
Open

Wine 9.0 flatpak not working with flatpaked dxvk #4064

ColinKinloch opened this issue Jun 8, 2024 · 3 comments

Comments

@ColinKinloch
Copy link

Since the wine flatpak was updated to 9.0 the flatpaked version of dxvk no longer works (flathub/org.winehq.Wine#119).

The flatpak version works by marking the dlls as builtin using winebuild --builtin and using the WINEDLLPATH env var to have wine preferentially load them if the org.winehq.Wine.DLLs.dxvk package is installed.

Fiddling around with WINEPATH and WINEDLLOVERRIDES it seems that I can get it working so long as all the following are true:

  • The dll overrides are set to native: WINEDLLOVERRIDES='d3d9,d3d10core,dxgi,d3d11=n'
  • The dxvk dll locations are in wines PATH: WINEPATH='/app/dlls/lib32;/app/dlls/lib'
  • The dlls are not flagged as builtin
  • The the original dlls don't already exist in windows/system32 etc.

My question is firstly what changed between wine 8 and 9 that caused loading dxvk as builtin to not work.
And secondly whether there is a more appropriate way to package DXVK.

Personally I'd prefer being able to enable/disable them by editing only WINEDLLOVERRIDES rather than having them used whenever they're installed.

@ColinKinloch ColinKinloch changed the title Wine 9.0 flatpak not working with flatapaked dxvk Wine 9.0 flatpak not working with flatpaked dxvk Jun 8, 2024
@Blisto91
Copy link
Contributor

Blisto91 commented Jun 15, 2024

Just for clarity. None of the devs maintain the flatpak nor use it.

Builtin in the case of Wine usually means to use the DLLs shipped with Wine it self which for Direct3D would be wined3d not dxvk. But i don't personally know about flatpak terminology.

@ColinKinloch
Copy link
Author

Understand it's not maintained by the devs I just thought that posting here would have the highest likelihood of a insightful response.

The wine flatpak defines the env variable WINEDLLPATH and the dxvk extension places the dxvk dlls in that path.
So if the extension is installed wine loads dxvk as builtin and ignores wined3d.

Since Wine 9.0 this fails. Does dxvk depend on being builtin wined3d in some way?

@Blisto91
Copy link
Contributor

Gotcha. Didn't know about those.
I tried locally (not flatpak) to play with both winebuild --builtin and WINEDLLPATH but couldn't get Wine to load the dxvk DLLs as builtin with either Wine 7, 8 or 9.

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

No branches or pull requests

2 participants