dxvk/dxvk.spec
Marcus Meissner 0123dae78f Accepting request 1090559 from home:Thaodan:branches:Emulators:Wine
- Update to 2.2
  * 3D11On12 support
  In order to enable D3D12 support in recent Unity Engine titles such
  as Lego Builder's Journey, this release introduces support for creating D3D11
  devices from a D3D12 device using D3D11On12CreateDevice, as well as
  the basic ID3D11On12Device interface. This is achieved by importing
  the Vulkan device and resource handles from vkd3d-proton into DXVK,
  and otherwise uses DXVK's existing D3D11 implementation.
  A vkd3d-proton build as of HansKristian-Work/vkd3d-proton@26c4fed
  or later is required for this to work.
  * D3D9 Partial Presentation
  DXVK now supports presenting to parts of a window by copying the contents of the backbuffer
  to system memory and then drawing them into the window on the CPU.
  This improves compatibility with game launchers, particularly those
  based on Microsoft's WPF toolkit, and some visual novels.
  It will however come with a noticable performance hit.
  Additionally, overall behaviour of D3D9 swap chains was improved and
  the d3d9.noExplicitFrontBuffer option was removed.
  * Logging changes
  When running on Proton or plain Wine, DXVK will no longer create
  log files by default and instead only write log messages to the console
  using wine-specific functionality, in order to avoid creating unnecessary extra files.
  This matches vkd3d-proton behaviour. Note that log file creation
  can be re-enabled by setting the environment variable DXVK_LOG_PATH to a valid path.
  When filing bug reports, users are encouraged to upload the full Proton log.
  * Warnings about unknown interfaces being queried via QueryInterface
    will only be logged once   in order to avoid growing log files
    indefinitely in some games. (#3231)
  * Fixed a regression when rendering YUY2 or UYUY texture formats.
    This fixes in-game videos in Jade Empire (#3182) and
    Sid Meier's Pirates (#3189) (PR #3342)
  * Fixed an issue wherein threads were not properly destroyed.
  * Fixed Vulkan validation errors caused by incorrect layout tracking
    when enabling feedback loops for a texture.
  * Fixed Vulkan validation errors caused by 0x0 sized clears in D3D9.
  * D3D9 StateBlocks now only allocate memory for the parts that are actually used.
    This fixes Total War: Shogun 2 running out of address space when
    using the D3D9 renderer. (#2703, PR #3248)
  * Improved usage of some VK_EXT_extended_dynamic_state3 features to
    avoid hitting slow paths on some drivers.
  * Improved enumeration of DXGI outputs on systems with multiple GPUs.
    This fixes performance issues with recent RE Engine games (D3D12) on such systems.
  * Significantly reduced memory usage in situations where games create unused D3D11 devices.
  * Battle Fantasia Revised Edition: Locked frame rate to 60 FPS
    to work around game bugs at higher frame rates. (PR #3256)
  * Cold Fear: Fixed missing geometry (#3293, PR #3390)
  * Dawn of Magic 2: Fixed a crash upon start (#3271, PR #3272)
  * DC Universe Online: Fixed a hang after alt-tabbing out and back in. (#3314, PR #3316)
  * Far Cry 2: Work around rendering issues on Intel hardware,
    as well as low performance on all GPUs. (PR #3241)
  * Halo: The Master Chief Collection: Fixed memory leak due to invalid
    query usage by the game (PR #3273)
  * Warhammer 40k: Space Marine: Fixed shadow rendering (#3298, PR #3305)

OBS-URL: https://build.opensuse.org/request/show/1090559
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/dxvk?expand=0&rev=38
2023-07-02 09:19:37 +00:00

112 lines
3.2 KiB
RPMSpec

#
# spec file for package dxvk
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: dxvk
Version: 2.2
Release: 0
Summary: Vulkan-based D3D11 implementation for Linux / Wine
License: zlib-acknowledgement
Group: System/Emulators/PC
URL: https://github.com/doitsujin/dxvk
Source0: %{name}-%{version}.tar.gz
Source1: baselibs.conf
Source2: setup_dxvk.sh
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glslang-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: wine
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
ExclusiveArch: %{ix86} x86_64
%description
Provides a Vulkan-based implementation of DXGI and D3D11 in order to run 3D applications on Linux using Wine
%prep
%setup -q
%build
export CFLAGS="%optflags -DNDEBUG -fPIC -O2 -pthread -fno-strict-aliasing -fpredictive-commoning -fuse-linker-plugin -fno-stack-protector -fno-stack-clash-protection -fno-lto"
export CXXFLAGS="${CFLAGS} -fpermissive"
export LDFLAGS="-fPIC -Wl,--sort-common -Wl,--gc-sections -Wl,-O1 -fuse-linker-plugin -fno-lto"
mkdir ../build
meson setup \
--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' \
%{SOURCE2}> %{buildroot}%{_libexecdir}/%{name}/bin/setup_dxvk.sh
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