Backport workaround for Ryzen 3000 CPU support
https://bugzilla.redhat.com/show_bug.cgi?id=1822835 https://trac.wildfiregames.com/changeset/23262
This commit is contained in:
parent
e566c2677d
commit
67e2fa2f0b
2 changed files with 22 additions and 1 deletions
12
0ad-ryzen-3000.patch
Normal file
12
0ad-ryzen-3000.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Index: trunk/source/lib/sysdep/arch/x86_x64/cache.cpp
|
||||
===================================================================
|
||||
--- trunk/source/lib/sysdep/arch/x86_x64/cache.cpp (revision 23261)
|
||||
+++ trunk/source/lib/sysdep/arch/x86_x64/cache.cpp (revision 23262)
|
||||
@@ -90,5 +90,6 @@
|
||||
{
|
||||
0, 1, 2, 0, 4, 0, 8, 0,
|
||||
- 16, 0, 32, 48, 64, 96, 128, x86_x64::Cache::fullyAssociative
|
||||
+ // TODO: The second '16' does not obey to the specifications and is only a workaround. For a correct implementation please look here: https://community.amd.com/thread/244207
|
||||
+ 16, 16, 32, 48, 64, 96, 128, x86_x64::Cache::fullyAssociative
|
||||
};
|
||||
|
||||
11
0ad.spec
11
0ad.spec
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
Name: 0ad
|
||||
Version: 0.0.23b
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
# BSD License:
|
||||
# build/premake/*
|
||||
# libraries/source/miniupnpc/* (not built/used)
|
||||
|
|
@ -147,6 +147,11 @@ Patch6: %{name}-mozjs38.patch
|
|||
# https://bugzilla.redhat.com/show_bug.cgi?id=1799112
|
||||
Patch7: %{name}-fcollada.patch
|
||||
|
||||
# Workaround for Ryzen 3000 CPU support
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1822835
|
||||
# https://trac.wildfiregames.com/changeset/23262
|
||||
Patch8: 0ad-ryzen-3000.patch
|
||||
|
||||
%description
|
||||
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform
|
||||
real-time strategy (RTS) game of ancient warfare. In short, it is a
|
||||
|
|
@ -177,6 +182,7 @@ sed -i "s/\(-fno-delete-null-pointer-checks\)/\1 -O0/" \
|
|||
#end Related to 0ad-mozjs38.patch
|
||||
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%if %{with system_nvtt}
|
||||
rm -fr libraries/source/nvtt
|
||||
|
|
@ -279,6 +285,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/0ad.desktop
|
|||
%{_mandir}/man6/*.6*
|
||||
|
||||
%changelog
|
||||
* Sat May 23 2020 Kalev Lember <klember@redhat.com> - 0.0.23b-15
|
||||
- Backport workaround for Ryzen 3000 CPU support (#1822835)
|
||||
|
||||
* Sun May 17 2020 Pete Walter <pwalter@fedoraproject.org> - 0.0.23b-14
|
||||
- Rebuild for ICU 67
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue