From Fedora Project Wiki
No edit summary
(Add trackers)
 
(32 intermediate revisions by 2 users not shown)
Line 2: Line 2:


== Summary ==
== Summary ==
Proposal to replace defualt wined3d backend by DXVK, A Vulkan-based translation layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine.
Proposal to replace default wined3d backend with DXVK, A Vulkan-based translation layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine.
 
Currently, wine in Fedora uses wined3d and users can optionally install DXVK (be it wine-dxvk package or by any other means). With this change accepted, wine would use DXVK instead of wined3d on supported GPUs automatically.


== Owner ==
== Owner ==
* Name: [[User:frantisekz| Frantisek Zatloukal]]
* Name: [[User:frantisekz| Frantisek Zatloukal]] , [[User:Mooninite| Michael Cronenworth]]
* Email: fzatlouk@redhat.com
* Email: fzatlouk@redhat.com


== Current status ==
== Current status ==
[[Category:ChangePageIncomplete]]
[[Category:ChangeAcceptedF33]]
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
Line 27: Line 29:
CLOSED as NEXTRELEASE -> change is completed and verified and will be delivered in next release under development
CLOSED as NEXTRELEASE -> change is completed and verified and will be delivered in next release under development
-->
-->
* FESCo issue: <will be assigned by the Wrangler>
* FESCo issue: [https://pagure.io/fesco/issue/2456 #2456]
* Tracker bug: <will be assigned by the Wrangler>
* Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=1867215 #1867215]
* Release notes tracker: <will be assigned by the Wrangler>
* Release notes tracker: [https://pagure.io/fedora-docs/release-notes/issue/546 #546]


== Detailed Description ==
== Detailed Description ==


<!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. -->
DXVK is an alternative to wined3d providing more performant and more compatible way to run Windows applications and games using DirectX 9, 10 and 11.
 
More detailed description is available on [https://github.com/doitsujin/dxvk DXVK Github].
 
DXVK is available as a wine-dxvk package since Fedora 31. wine-dxvk package uses alternatives system for following wine dll files: d3d9, d3d10.dll and d3d11.dll .
 
Should this proposal be accepted, [https://src.fedoraproject.org/rpms/wine-dxvk/pull-request/4# a Pull Request] will be merged into the wine-dxvk package which ensures it gets set as default backend only on systems with Vulkan support. wine-dxvk will then get added as "Recommends: wine-dxvk" into the wine package itself.
 
Users can run 'dnf reinstall wine-dxvk' after changing hardware configuration to get alternatives to use DXVK or wined3d updated.
 
This proposal can be accepted in a "reduced form" of replacing the default wined3d backend only for DirectX 10 and 11 and leaving DirectX 9 to be handled by the current wined3d.


== Feedback ==
== Feedback ==


<!-- Summarize the feedback from the community and address why you chose not to accept proposed alternatives. This section is optional for all change proposals but is strongly suggested. Incorporating feedback here as it is raised gives FESCo a clearer view of your proposal and leaves a good record for the future. If you get no feedback, that is useful to note in this section as well. For innovative or possibly controversial ideas, consider collecting feedback before you file the change proposal. -->
<!-- Summarize the feedback from the community and address why you chose not to accept proposed alternatives. This section is optional for all change proposals but is strongly suggested. Incorporating feedback here as it is raised gives FESCo a clearer view of your proposal and leaves a good record for the future. If you get no feedback, that is useful to note in this section as well. For innovative or possibly controversial ideas, consider collecting feedback before you file the change proposal. -->
[https://www.reddit.com/r/linux/comments/hvbyyr/fedora_proposal_to_replace_default_wined3d/?utm_medium=android_app&utm_source=share Reddit thread on /r/linux]
* "Man, fedora 33 shaping up to be one incredible release"
* "wined3d doesn't have better compatibility at the moment"
* "I picked a bad time to install Leap 15.2. So many bugs. I should've waited a few months or just waited for the next Fedora release."
* "With this [https://src.fedoraproject.org/rpms/wine-dxvk/pull-request/4#_1__26 PR] added to check for compatibility, it sounds like a no-brainer to me."
[https://www.phoronix.com/forums/forum/software/desktop-linux/1195484-fedora-looks-to-make-dxvk-their-default-back-end-for-direct3d-9-10-11-on-wine Discussion on Phoronix Forum]
[https://www.gamingonlinux.com/2020/07/linux-distro-fedora-33-may-get-dxvk-as-the-default-for-wine/page=1#comments Article and Discussion on GamingOnLinux]


== Benefit to Fedora ==
== Benefit to Fedora ==


<!-- What is the benefit to the distribution?  Will the software we generate be improved? How will the process of creating Fedora releases be improved?
Fedora users running recent Windows games will get superior performance and compatibility. Steam already leverages DXVK but there are other Game Stores and standalone games which would benefit from DXVK. Users had to know about this project and install it manually (or use e.g. Lutris), whereas having DXVK included by default will make sure everybody gets the best possible performance and compatibility.
 
      Be sure to include the following areas if relevant:
      If this is a major capability update, what has changed?
          For example: This change introduces Python 5 that runs without the Global Interpreter Lock and is fully multithreaded.
      If this is a new functionality, what capabilities does it bring?
          For example: This change allows package upgrades to be performed automatically and rolled-back at will.
      Does this improve some specific package or set of packages?
          For example: This change modifies a package to use a different language stack that reduces install size by removing dependencies.
      Does this improve specific Spins or Editions?
          For example: This change modifies the default install of Fedora Workstation to be more in line with the base install of Fedora Server.
      Does this make the distribution more efficient?
          For example: This change replaces thousands of individual %post scriptlets in packages with one script that runs at the end.
      Is this an improvement to maintainer processes?
          For example: Gating Fedora packages on automatic QA tests will make rawhide more stable and allow changes to be implemented more smoothly.
      Is this an improvement targeted as specific contributors?
          For example: Ensuring that a minimal set of tools required for contribution to Fedora are installed by default eases the onboarding of new contributors.
 
    When a Change has multiple benefits, it's better to list them all.


    Consider these Change pages from previous editions as inspiration:
I haven't done benchmarking per se, there are multiple resources on the Internet comparing DXVK and wined3d. If necessary I will do additional testing on my hardware in the week of July 27th.
    https://fedoraproject.org/wiki/Changes/Annobin (low-level and technical, invisible to users)
    https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo (low-level, but visible to advanced users)
    https://fedoraproject.org/wiki/Changes/VirtualBox_Guest_Integration (primarily a UX change)
    https://fedoraproject.org/wiki/Changes/NoMoreAlpha (an improvement to distro processes)
    https://fedoraproject.org/wiki/Changes/perl5.26 (major upgrade to a popular software stack, visible to users of that stack)
-->


== Scope ==
== Scope ==
* Proposal owners:
* Proposal owners: Merge https://src.fedoraproject.org/rpms/wine-dxvk/pull-request/4 ; add Recommends: wine-dxvk into wine the package.
<!-- What work do the feature owners have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
<!-- What work do the feature owners have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->


Line 89: Line 88:
<!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported? -->
<!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported? -->


<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
The aim is to convert users with supported Hardware Configuration to DXVK as a part of Fedora 32 > Fedora 33 upgrade. There should not be any breakage since postinst script of wine-dxvk package would verify if the GPU supports Vulkan or not and set alternatives to wined3d or DXVK accordingly.
N/A (not a System Wide Change)
 
There is a slight possibility of user experience degradation compared to wined3d on old Intel iGPUs supporting just a subset of Vulkan specification (Ivy Bridge and Haswell generations). I haven't had any opportunity to test DXVK on such hardware, however, if issues are discovered, check for Vulkan from wine-dxvk package PR ( https://src.fedoraproject.org/rpms/wine-dxvk/pull-request/4#_1__26 ) could be improved to block certain GPU vendors/generations/models.
 
AMD and/or nVidia GPUs should not be affected, they either do not support Vulkan at all, or they support it fully.
 
On GPUs without Vulkan support, wine-dxvk would remain installed and unused, consuming about 167 MB of HDD space. Users would be able to opt-out from using DXVK by adding 'exclude=wine-dxvk*' into /etc/dnf/dnf.conf and removing wine-dxvk package.


== How To Test ==
== How To Test ==
<!-- This does not need to be a full-fledged document. Describe the dimensions of tests that this change implementation is expected to pass when it is done.  If it needs to be tested with different hardware or software configurations, indicate them.  The more specific you can be, the better the community testing can be.
1. Make sure you have Vulkan compatible GPU ('vulkaninfo' runs without errors)


Remember that you are writing this how to for interested testers to use to check out your change implementation - documenting what you do for testing is OK, but it's much better to document what *I* can do to test your change.
2. Install wine-dxvk package


A good "how to test" should answer these four questions:
3. Run some Windows game with wine


0. What special hardware / data / etc. is needed (if any)?
A testday will take place before Fedora 33 GA to determine and workaround (disable DXVK and fallback to wined3d) issues on potentially broken hardware and GPU drivers.
1. How do I prepare my system to test this change? What packages
need to be installed, config files edited, etc.?
2. What specific actions do I perform to check that the change is
working like it's supposed to?
3. What are the expected results of those actions?
-->


<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
In cases when something worked before installing wine-dxvk and stopped after (or regressed), bugs should be reported to [https://github.com/doitsujin/dxvk/issues DXVK Issue Tracker].
N/A (not a System Wide Change)  


== User Experience ==
== User Experience ==
Line 131: Line 128:


<!-- If you cannot complete your feature by the final development freeze, what is the backup plan?  This might be as simple as "Revert the shipped configuration".  Or it might not (e.g. rebuilding a number of dependent packages).  If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy.  -->
<!-- If you cannot complete your feature by the final development freeze, what is the backup plan?  This might be as simple as "Revert the shipped configuration".  Or it might not (e.g. rebuilding a number of dependent packages).  If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy.  -->
* Contingency mechanism: (What to do?  Who will do it?) N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Contingency mechanism: Obsolete wine-dxvk through base wine package
<!-- When is the last time the contingency mechanism can be put in place?  This will typically be the beta freeze. -->
<!-- When is the last time the contingency mechanism can be put in place?  This will typically be the beta freeze. -->
* Contingency deadline: N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Contingency deadline: N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
<!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? -->
<!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? -->
* Blocks release? N/A (not a System Wide Change), Yes/No <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Blocks release? No
* Blocks product? product <!-- Applicable for Changes that blocks specific product release/Fedora.next -->
* Blocks product? No


== Documentation ==
== Documentation ==

Latest revision as of 18:01, 7 August 2020

DXVK as default wined3d backend on VK capable hardware

Summary

Proposal to replace default wined3d backend with DXVK, A Vulkan-based translation layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine.

Currently, wine in Fedora uses wined3d and users can optionally install DXVK (be it wine-dxvk package or by any other means). With this change accepted, wine would use DXVK instead of wined3d on supported GPUs automatically.

Owner

Current status

Detailed Description

DXVK is an alternative to wined3d providing more performant and more compatible way to run Windows applications and games using DirectX 9, 10 and 11.

More detailed description is available on DXVK Github.

DXVK is available as a wine-dxvk package since Fedora 31. wine-dxvk package uses alternatives system for following wine dll files: d3d9, d3d10.dll and d3d11.dll .

Should this proposal be accepted, a Pull Request will be merged into the wine-dxvk package which ensures it gets set as default backend only on systems with Vulkan support. wine-dxvk will then get added as "Recommends: wine-dxvk" into the wine package itself.

Users can run 'dnf reinstall wine-dxvk' after changing hardware configuration to get alternatives to use DXVK or wined3d updated.

This proposal can be accepted in a "reduced form" of replacing the default wined3d backend only for DirectX 10 and 11 and leaving DirectX 9 to be handled by the current wined3d.

Feedback

Reddit thread on /r/linux

  • "Man, fedora 33 shaping up to be one incredible release"
  • "wined3d doesn't have better compatibility at the moment"
  • "I picked a bad time to install Leap 15.2. So many bugs. I should've waited a few months or just waited for the next Fedora release."
  • "With this PR added to check for compatibility, it sounds like a no-brainer to me."

Discussion on Phoronix Forum

Article and Discussion on GamingOnLinux

Benefit to Fedora

Fedora users running recent Windows games will get superior performance and compatibility. Steam already leverages DXVK but there are other Game Stores and standalone games which would benefit from DXVK. Users had to know about this project and install it manually (or use e.g. Lutris), whereas having DXVK included by default will make sure everybody gets the best possible performance and compatibility.

I haven't done benchmarking per se, there are multiple resources on the Internet comparing DXVK and wined3d. If necessary I will do additional testing on my hardware in the week of July 27th.

Scope

  • Other developers: N/A (not a System Wide Change)
  • Policies and guidelines: N/A (not a System Wide Change)
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

The aim is to convert users with supported Hardware Configuration to DXVK as a part of Fedora 32 > Fedora 33 upgrade. There should not be any breakage since postinst script of wine-dxvk package would verify if the GPU supports Vulkan or not and set alternatives to wined3d or DXVK accordingly.

There is a slight possibility of user experience degradation compared to wined3d on old Intel iGPUs supporting just a subset of Vulkan specification (Ivy Bridge and Haswell generations). I haven't had any opportunity to test DXVK on such hardware, however, if issues are discovered, check for Vulkan from wine-dxvk package PR ( https://src.fedoraproject.org/rpms/wine-dxvk/pull-request/4#_1__26 ) could be improved to block certain GPU vendors/generations/models.

AMD and/or nVidia GPUs should not be affected, they either do not support Vulkan at all, or they support it fully.

On GPUs without Vulkan support, wine-dxvk would remain installed and unused, consuming about 167 MB of HDD space. Users would be able to opt-out from using DXVK by adding 'exclude=wine-dxvk*' into /etc/dnf/dnf.conf and removing wine-dxvk package.

How To Test

1. Make sure you have Vulkan compatible GPU ('vulkaninfo' runs without errors)

2. Install wine-dxvk package

3. Run some Windows game with wine

A testday will take place before Fedora 33 GA to determine and workaround (disable DXVK and fallback to wined3d) issues on potentially broken hardware and GPU drivers.

In cases when something worked before installing wine-dxvk and stopped after (or regressed), bugs should be reported to DXVK Issue Tracker.

User Experience

Dependencies

N/A (not a System Wide Change)

Contingency Plan

  • Contingency mechanism: Obsolete wine-dxvk through base wine package
  • Contingency deadline: N/A (not a System Wide Change)
  • Blocks release? No
  • Blocks product? No

Documentation

N/A (not a System Wide Change)

Release Notes