2020-09-05 17:47:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package dxvk
|
|
|
|
#
|
- updated to 2.0
- Driver compatibility
A Vulkan 1.3 capable driver and wine version are required to run
this version of DXVK. See the driver support page for details.
Many features in this release, especially the shader compilation
changes detailed below, require the use of modern Vulkan features,
such as Dynamic Rendering, Extended Dynamic State, and Null
Descriptors. Due to the significant changes required to make use
of them, it was no longer practical to maintain and test code paths
for older drivers which do not support these features.
In practice, any system capable of running D3D11 and D3D12 games
using Proton Experimental right now will be able to run DXVK 2.0.
Note: Third-party Vulkan layers that were not updated for Vulkan 1.3 will no longer work.
D3D9 changes
- Memory management improvements
In order to reduce the likelihood of running out of address space in
32-bit D3D9 games, DXVK will now use memory-mapped files to store
shadow copies of textures. This allows us to unmap memory that is
not being used by the game, thus freeing up significant amounts of
address space, up to several hundred Megabytes. See PR #2663 for
implementation details.
Note: This change does not affect 64-bit games since address space
is not a concern there. It also does not affect D3D10 or D3D11 since
resource uploads work differently in those APIs and are much more
memory efficient.
Render target feedback loops
On drivers which support VK_EXT_attachment_feedback_loop_layout,
reading from an active render target in D3D9 games is now properly
supported, which previously caused rendering artifacts on newer AMD
hardware and required driver-level workarounds. This affects a number
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=33
2023-03-06 15:48:27 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-09-05 17:47:16 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-09-06 08:08:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-09-05 17:47:16 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dxvk
|
Accepting request 1085932 from home:Thaodan:branches:Emulators:Wine
- Keep setup_dxvk.sh script that was deleted by upstream.
For more context see:
https://github.com/doitsujin/dxvk/commit/64cb1ad208f80b11400eef779e99fec223754098
- Update to 2.1
* HDR support
On systems supporting HDR10 color spaces, HDR can now be
enabled by setting the environment variable DXVK_HDR=1,
or by setting the option dxgi.enableHDR = True in the configuration
file. When using vkd3d-proton 2.8 or newer, this will allow D3D12
games to detect and use the HDR10 color space if they support it.
No major Linux desktop environment currently supports HDR. In order
to use this on Linux, a Gamescope session with --hdr-enabled is required.
This is currently only supported under AMDGPU and requires kernel patches
from the josh-hdr-colorimetry branch.
* Shader compilation improvements
Use of pipeline libraries was extended to pipelines with tessellation or
geometry shaders in order to further reduce stutter. Additionally, more features
of the VK_EXT_extended_dynamic_state3 extension are leveraged to reduce stutter
in some situations when MSAA is used, provided that the Vulkan driver supports them.
* Sample rate shading
For older games that support MSAA, the d3d9.forceSampleRateShading and
d3d11.forceSampleRateShading options were added to let users enable
sample rate shading for all shaders. This will have a very high
impact on GPU-bound performance, but may increase overall image quality
in certain games that suffer from specular aliasing or shimmering alpha-tested geometry.
* Improved D3D11 command submission logic in order to make overall performance more consistent,
and to bring DXVK's behaviour more in line with native D3D11 drivers.
* Fixed D3D11 reference counting issues around 2D textures. (#3169)
* Fixed Vulkan validation errors when creating DXGI_FORMAT_A8_UNORM UAVs.
Note that UAVs of this format may not work as expected.
* Fixed Vulkan validation errors that would occur when allocating dedicated image memory
on Nvidia GPUs in some situations.
* Fixed Vulkan validation errors caused by broken timeline semaphores on 32-bit Proton.
* Worked around an issue with the Uplay overlay being stuck on screen. (#3146)
* Worked around a bug in AMD's Windows driver as well as AMDVLK that would
cause numerous games to crash since DXVK 2.0. (#3172)
* Fewer threads will be used to perform background optimization of graphics pipeines.
This may result in a smoother gameplay experience on some systems.
* Ashes of the Singularity: Fixed performance regression caused by suboptimal descriptor set allocation.
* Battlefield: Bad Company 2: Fixed flickering (#3078, PR #3079)
* Cardfight!! Vanguard: Fixed rendering (PR #3068).
* Gujian 3: Fixed rendering issues on some GPUs. (#1784)
* Resident Evil 4 HD: Fixed invalid Vulkan usage causing a GPU hang on RADV. (PR #3089)
* Saints Row: The Third: Fixed a severe performance issue with rain when using the D3D9 renderer.
(#2473, PR #3158)
* Sekiro: Shadows Die Twice: Fixed stuttering issues on Nvidia GPUs. (#3179)
* Sonic Frontiers: Worked around a game bug that would cause shadows to flicker when GPU-bound.
* Supreme Commander: Forged Alliance: Fixed a crash after loading (#3058, PR #3060)
* Note: Due to changes to our DXGI implementation, older versions of vkd3d-proton (prior to 2.8)
will no longer work with this version of DXVK.
I tried to cut down the changelog as much as possible to cover only the relevant sections.
OBS-URL: https://build.opensuse.org/request/show/1085932
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=36
2023-05-15 11:37:33 +00:00
|
|
|
Version: 2.1
|
2020-09-05 17:47:16 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Vulkan-based D3D11 implementation for Linux / Wine
|
|
|
|
License: zlib-acknowledgement
|
|
|
|
Group: System/Emulators/PC
|
2020-09-06 08:08:59 +00:00
|
|
|
URL: https://github.com/doitsujin/dxvk
|
2023-05-06 11:02:40 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2020-09-06 08:08:59 +00:00
|
|
|
Source1: baselibs.conf
|
Accepting request 1085932 from home:Thaodan:branches:Emulators:Wine
- Keep setup_dxvk.sh script that was deleted by upstream.
For more context see:
https://github.com/doitsujin/dxvk/commit/64cb1ad208f80b11400eef779e99fec223754098
- Update to 2.1
* HDR support
On systems supporting HDR10 color spaces, HDR can now be
enabled by setting the environment variable DXVK_HDR=1,
or by setting the option dxgi.enableHDR = True in the configuration
file. When using vkd3d-proton 2.8 or newer, this will allow D3D12
games to detect and use the HDR10 color space if they support it.
No major Linux desktop environment currently supports HDR. In order
to use this on Linux, a Gamescope session with --hdr-enabled is required.
This is currently only supported under AMDGPU and requires kernel patches
from the josh-hdr-colorimetry branch.
* Shader compilation improvements
Use of pipeline libraries was extended to pipelines with tessellation or
geometry shaders in order to further reduce stutter. Additionally, more features
of the VK_EXT_extended_dynamic_state3 extension are leveraged to reduce stutter
in some situations when MSAA is used, provided that the Vulkan driver supports them.
* Sample rate shading
For older games that support MSAA, the d3d9.forceSampleRateShading and
d3d11.forceSampleRateShading options were added to let users enable
sample rate shading for all shaders. This will have a very high
impact on GPU-bound performance, but may increase overall image quality
in certain games that suffer from specular aliasing or shimmering alpha-tested geometry.
* Improved D3D11 command submission logic in order to make overall performance more consistent,
and to bring DXVK's behaviour more in line with native D3D11 drivers.
* Fixed D3D11 reference counting issues around 2D textures. (#3169)
* Fixed Vulkan validation errors when creating DXGI_FORMAT_A8_UNORM UAVs.
Note that UAVs of this format may not work as expected.
* Fixed Vulkan validation errors that would occur when allocating dedicated image memory
on Nvidia GPUs in some situations.
* Fixed Vulkan validation errors caused by broken timeline semaphores on 32-bit Proton.
* Worked around an issue with the Uplay overlay being stuck on screen. (#3146)
* Worked around a bug in AMD's Windows driver as well as AMDVLK that would
cause numerous games to crash since DXVK 2.0. (#3172)
* Fewer threads will be used to perform background optimization of graphics pipeines.
This may result in a smoother gameplay experience on some systems.
* Ashes of the Singularity: Fixed performance regression caused by suboptimal descriptor set allocation.
* Battlefield: Bad Company 2: Fixed flickering (#3078, PR #3079)
* Cardfight!! Vanguard: Fixed rendering (PR #3068).
* Gujian 3: Fixed rendering issues on some GPUs. (#1784)
* Resident Evil 4 HD: Fixed invalid Vulkan usage causing a GPU hang on RADV. (PR #3089)
* Saints Row: The Third: Fixed a severe performance issue with rain when using the D3D9 renderer.
(#2473, PR #3158)
* Sekiro: Shadows Die Twice: Fixed stuttering issues on Nvidia GPUs. (#3179)
* Sonic Frontiers: Worked around a game bug that would cause shadows to flicker when GPU-bound.
* Supreme Commander: Forged Alliance: Fixed a crash after loading (#3058, PR #3060)
* Note: Due to changes to our DXGI implementation, older versions of vkd3d-proton (prior to 2.8)
will no longer work with this version of DXVK.
I tried to cut down the changelog as much as possible to cover only the relevant sections.
OBS-URL: https://build.opensuse.org/request/show/1085932
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=36
2023-05-15 11:37:33 +00:00
|
|
|
Source2: setup_dxvk.sh
|
2020-09-05 17:47:16 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glslang-devel
|
2020-09-06 08:08:59 +00:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: ninja
|
|
|
|
BuildRequires: wine
|
2020-09-05 17:47:16 +00:00
|
|
|
BuildRequires: xz
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: mingw64-cross-cpp
|
|
|
|
BuildRequires: mingw64-cross-gcc
|
|
|
|
BuildRequires: mingw64-cross-gcc-c++
|
|
|
|
BuildRequires: mingw64-headers
|
|
|
|
|
|
|
|
#Require 32bit version
|
|
|
|
Requires: %{name}-32bit
|
|
|
|
%else
|
|
|
|
BuildRequires: mingw32-cross-cpp
|
|
|
|
BuildRequires: mingw32-cross-gcc
|
|
|
|
BuildRequires: mingw32-cross-gcc-c++
|
|
|
|
BuildRequires: mingw32-headers
|
|
|
|
%endif
|
|
|
|
|
2021-06-22 09:10:56 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
|
2020-09-05 17:47:16 +00:00
|
|
|
%description
|
|
|
|
Provides a Vulkan-based implementation of DXGI and D3D11 in order to run 3D applications on Linux using Wine
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2021-06-19 13:42:51 +00:00
|
|
|
export CFLAGS="%optflags -DNDEBUG -fPIC -O2 -pthread -fno-strict-aliasing -fpredictive-commoning -fuse-linker-plugin -fno-stack-protector -fno-stack-clash-protection -fno-lto"
|
2020-09-05 17:47:16 +00:00
|
|
|
export CXXFLAGS="${CFLAGS} -fpermissive"
|
2021-06-19 13:42:51 +00:00
|
|
|
export LDFLAGS="-fPIC -Wl,--sort-common -Wl,--gc-sections -Wl,-O1 -fuse-linker-plugin -fno-lto"
|
2020-09-05 17:47:16 +00:00
|
|
|
|
|
|
|
mkdir ../build
|
|
|
|
|
|
|
|
meson \
|
|
|
|
--cross-file build-win$(arch | tail -c 3 | sed 's|86|32|g').txt \
|
|
|
|
--strip \
|
|
|
|
--buildtype "release" \
|
|
|
|
--unity off \
|
|
|
|
--prefix /%{name} \
|
|
|
|
../build
|
|
|
|
|
|
|
|
cd ../build
|
|
|
|
ninja
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
#install wrapper scripts
|
|
|
|
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}/%{name}/bin
|
|
|
|
sed \
|
|
|
|
-e 's|basedir=.*|basedir="%{_libexecdir}/%{name}"|g' \
|
|
|
|
-e 's|x32|lib|g' -e 's|x64|lib64|g' \
|
Accepting request 1085932 from home:Thaodan:branches:Emulators:Wine
- Keep setup_dxvk.sh script that was deleted by upstream.
For more context see:
https://github.com/doitsujin/dxvk/commit/64cb1ad208f80b11400eef779e99fec223754098
- Update to 2.1
* HDR support
On systems supporting HDR10 color spaces, HDR can now be
enabled by setting the environment variable DXVK_HDR=1,
or by setting the option dxgi.enableHDR = True in the configuration
file. When using vkd3d-proton 2.8 or newer, this will allow D3D12
games to detect and use the HDR10 color space if they support it.
No major Linux desktop environment currently supports HDR. In order
to use this on Linux, a Gamescope session with --hdr-enabled is required.
This is currently only supported under AMDGPU and requires kernel patches
from the josh-hdr-colorimetry branch.
* Shader compilation improvements
Use of pipeline libraries was extended to pipelines with tessellation or
geometry shaders in order to further reduce stutter. Additionally, more features
of the VK_EXT_extended_dynamic_state3 extension are leveraged to reduce stutter
in some situations when MSAA is used, provided that the Vulkan driver supports them.
* Sample rate shading
For older games that support MSAA, the d3d9.forceSampleRateShading and
d3d11.forceSampleRateShading options were added to let users enable
sample rate shading for all shaders. This will have a very high
impact on GPU-bound performance, but may increase overall image quality
in certain games that suffer from specular aliasing or shimmering alpha-tested geometry.
* Improved D3D11 command submission logic in order to make overall performance more consistent,
and to bring DXVK's behaviour more in line with native D3D11 drivers.
* Fixed D3D11 reference counting issues around 2D textures. (#3169)
* Fixed Vulkan validation errors when creating DXGI_FORMAT_A8_UNORM UAVs.
Note that UAVs of this format may not work as expected.
* Fixed Vulkan validation errors that would occur when allocating dedicated image memory
on Nvidia GPUs in some situations.
* Fixed Vulkan validation errors caused by broken timeline semaphores on 32-bit Proton.
* Worked around an issue with the Uplay overlay being stuck on screen. (#3146)
* Worked around a bug in AMD's Windows driver as well as AMDVLK that would
cause numerous games to crash since DXVK 2.0. (#3172)
* Fewer threads will be used to perform background optimization of graphics pipeines.
This may result in a smoother gameplay experience on some systems.
* Ashes of the Singularity: Fixed performance regression caused by suboptimal descriptor set allocation.
* Battlefield: Bad Company 2: Fixed flickering (#3078, PR #3079)
* Cardfight!! Vanguard: Fixed rendering (PR #3068).
* Gujian 3: Fixed rendering issues on some GPUs. (#1784)
* Resident Evil 4 HD: Fixed invalid Vulkan usage causing a GPU hang on RADV. (PR #3089)
* Saints Row: The Third: Fixed a severe performance issue with rain when using the D3D9 renderer.
(#2473, PR #3158)
* Sekiro: Shadows Die Twice: Fixed stuttering issues on Nvidia GPUs. (#3179)
* Sonic Frontiers: Worked around a game bug that would cause shadows to flicker when GPU-bound.
* Supreme Commander: Forged Alliance: Fixed a crash after loading (#3058, PR #3060)
* Note: Due to changes to our DXGI implementation, older versions of vkd3d-proton (prior to 2.8)
will no longer work with this version of DXVK.
I tried to cut down the changelog as much as possible to cover only the relevant sections.
OBS-URL: https://build.opensuse.org/request/show/1085932
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=36
2023-05-15 11:37:33 +00:00
|
|
|
%{SOURCE2}> %{buildroot}%{_libexecdir}/%{name}/bin/setup_dxvk.sh
|
2020-09-05 17:47:16 +00:00
|
|
|
ln -s %{_libexecdir}/%{name}/bin/setup_dxvk.sh %{buildroot}%{_bindir}/wine%{name}
|
|
|
|
|
|
|
|
#install dxvk proper
|
|
|
|
cd ../build
|
|
|
|
DESTDIR=%{buildroot}%{_libexecdir} ninja install
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
if [ -d %{buildroot}%{_libexecdir}/%{name}/lib ];then
|
|
|
|
mv %{buildroot}%{_libexecdir}/%{name}/lib %{buildroot}%{_libexecdir}/%{name}/%{_lib}
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
rm %{buildroot}%{_libexecdir}/%{name}/%{_lib}/*.dll.a && \
|
|
|
|
mv %{buildroot}%{_libexecdir}/%{name}/bin/*.dll %{buildroot}%{_libexecdir}/%{name}/%{_lib}/
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,root,root)
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{_bindir}/wine%{name}
|
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/%{_lib}
|
|
|
|
%attr(755, root, root) %{_libexecdir}/%{name}/bin
|
|
|
|
|
|
|
|
%changelog
|