Project import/pcsx2 - Diff 4e9b743098...32a631c9b0
... | ... | --- /dev/null |
... | ... | +++ b/pcsx2-1.2.2-gsdx-sse4.patch |
... | ... | @@ -0,0 +1,54 @@ |
1 |
diff -urN pcsx2-1.2.2/plugins/CMakeLists.txt pcsx2-1.2.2-patched/plugins/CMakeLists.txt
|
|
2 |
--- pcsx2-1.2.2/plugins/CMakeLists.txt 2014-02-11 05:57:09.000000000 +1100
|
|
3 |
+++ pcsx2-1.2.2-patched/plugins/CMakeLists.txt 2015-01-12 19:15:55.363081118 +1000
|
|
4 |
@@ -56,6 +56,11 @@
|
|
5 |
add_subdirectory(GSdx)
|
|
6 |
endif(EXISTS "${PROJECT_SOURCE_DIR}/plugins/GSdx" AND GSdx)
|
|
7 |
|
|
8 |
+# make GSdx-SSE4
|
|
9 |
+if(EXISTS "${PROJECT_SOURCE_DIR}/plugins/GSdx-SSE4" AND GSdx)
|
|
10 |
+ add_subdirectory(GSdx-SSE4)
|
|
11 |
+endif(EXISTS "${PROJECT_SOURCE_DIR}/plugins/GSdx-SSE4" AND GSdx)
|
|
12 |
+
|
|
13 |
# make GSnull
|
|
14 |
if(EXISTS "${PROJECT_SOURCE_DIR}/plugins/GSnull" AND GSnull)
|
|
15 |
add_subdirectory(GSnull)
|
|
16 |
diff -urN pcsx2-1.2.2/plugins/GSdx-SSE4/CMakeLists.txt pcsx2-1.2.2-patched/plugins/GSdx-SSE4/CMakeLists.txt
|
|
17 |
--- pcsx2-1.2.2/plugins/GSdx-SSE4/CMakeLists.txt 2015-01-12 19:15:29.316079933 +1000
|
|
18 |
+++ pcsx2-1.2.2-patched/plugins/GSdx-SSE4/CMakeLists.txt 2015-01-12 19:16:49.025083560 +1000
|
|
19 |
@@ -7,7 +7,7 @@
|
|
20 |
|
|
21 |
|
|
22 |
# plugin name
|
|
23 |
-set(Output GSdx-0.1.16)
|
|
24 |
+set(Output GSdx-SSE4-0.1.16)
|
|
25 |
|
|
26 |
set(CommonFlags
|
|
27 |
-D_LINUX
|
|
28 |
@@ -18,6 +18,8 @@
|
|
29 |
-Wunused-variable
|
|
30 |
-std=c++0x
|
|
31 |
-fno-strict-aliasing
|
|
32 |
+ -msse3
|
|
33 |
+ -msse4
|
|
34 |
)
|
|
35 |
|
|
36 |
set(OptimizationFlags
|
|
37 |
@@ -48,6 +50,8 @@
|
|
38 |
add_definitions(-DENABLE_GLES)
|
|
39 |
endif()
|
|
40 |
|
|
41 |
+add_definitions(-D_M_SSE=0x401)
|
|
42 |
+
|
|
43 |
set(GSdxSources
|
|
44 |
GLLoader.cpp
|
|
45 |
GLState.cpp
|
|
46 |
@@ -219,7 +223,7 @@
|
|
47 |
|
|
48 |
################################### Replay Loader
|
|
49 |
if(BUILD_REPLAY_LOADERS)
|
|
50 |
- set(Replay pcsx2_GSReplayLoader)
|
|
51 |
+ set(Replay pcsx2_GSSSE4ReplayLoader)
|
|
52 |
|
|
53 |
add_executable(${Replay} linux_replay.cpp)
|
|
54 |
|
... | ... | --- a/pcsx2.spec |
... | ... | +++ b/pcsx2.spec |
... | ... | @@ -3,11 +3,12 @@ |
3 | 3 |
Summary: Sony PlayStation 2 Emulator
|
4 | 4 |
Name: pcsx2
|
5 | 5 |
Version: 1.2.2
|
6 |
Release: 3
|
|
6 |
Release: 4
|
|
7 | 7 |
License: GPLv2+
|
8 | 8 |
Group: Emulators
|
9 | 9 |
Url: http://pcsx2.net/
|
10 | 10 |
Source0: https://github.com/PCSX2/pcsx2/archive/%{name}-%{version}.tar.gz
|
11 |
Patch0: pcsx2-1.2.2-gsdx-sse4.patch
|
|
11 | 12 |
BuildRequires: cmake
|
12 | 13 |
BuildRequires: subversion
|
13 | 14 |
BuildRequires: bzip2-devel
|
... | ... | @@ -52,6 +53,8 @@ Very fast CPU is a must. Intel Core 2 Duo or better. |
… | … | |
53 | 53 |
|
54 | 54 |
%prep
|
55 | 55 |
%setup -q
|
56 |
cp -r plugins/GSdx plugins/GSdx-SSE4
|
|
57 |
%patch0 -p1
|
|
56 | 58 |
|
57 | 59 |
%build
|
58 | 60 |
cp -r 3rdparty/SoundTouch 3rdparty/soundtouch
|