Commit Graph

68 Commits

Author SHA1 Message Date
Henrik Rydgård
8397fd6791 Also disable the GPU JIT tests on ARM64, not applicable 2024-04-29 11:13:35 +02:00
Henrik Rydgård
1f129b6dca Replace "ReadFileToString" with a few semantically clearer wrappers. 2024-01-25 09:55:54 +01:00
Herman Semenov
315340fc62 Using const reference for C++17 range-based loop and freq used objects 2023-12-13 17:33:01 +01:00
Ethan O'Brien
8426b35a80 Cleanup emscripten libretro build target 2023-08-12 14:38:35 -05:00
Unknown W. Brackets
09eb509df4 Common: Expose CPU extension list directly.
A bit silly to rely on the specific string formatting of a summary.
2023-01-29 15:13:44 -08:00
Unknown W. Brackets
368aba3c8d Common: Detect x86 features with cpu_features. 2023-01-29 15:13:44 -08:00
Unknown W. Brackets
9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
10bf375712 softjit: Use BMI2 to speed up dst color loads.
This is about 1% overall gain in some games.
2022-01-31 21:27:51 -08:00
Henrik Rydgård
a40b1dec5f Use Path for fullName in dirlisting. Bugfixes.
Buildfixes

UWP: Buildfix.

headless: Buildfix.

Common: Buildfix.

iOS: Buildfixes.

libretro: Buildfix.

Qt: Buildfix.
2021-05-13 10:39:16 +02:00
Unknown W. Brackets
e725eddf13 CPUDetect: Ensure we never get zero cores. 2021-05-11 22:02:42 -07:00
Sean McGovern
4cc34e384c CPUDetect: saturate lower bound of CPU count to 1 2021-05-11 23:56:45 -04:00
Sean McGovern
328074e9bc CPUDetect: prevent a divide-by-zero when ParseCPUList() fails 2021-05-11 23:56:45 -04:00
Henrik Rydgård
a2a0551a83 Buildfix, and more renaming while we're at it. 2021-04-25 22:25:29 +02:00
Unknown W. Brackets
4178f09e57 Build: More consistently avoid _M_ defines.
We use PPSSPP_ARCH in several places already, this makes it more complete.
2021-03-02 21:49:21 -08:00
Unknown W. Brackets
e621aca9ba Build: Remove MIPS define.
We shouldn't want to use that anyway, for conflicts...
2021-03-02 21:14:09 -08:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets
7aa4b53422 Common: Fix AVX check on mingw/lower targets. 2021-02-14 10:30:10 -08:00
Henrik Rydgård
9c8feefcdc M1: Correctly detect core count. 2020-12-02 21:59:18 +01:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
3162f30158 Merge base/basictypes.h into Common/Common.h (mostly). 2020-09-29 15:51:51 +02:00
Henrik Rydgård
b43698a13d Remove most instances of base/logging.h from Common, Core, GPU, more 2020-08-15 19:08:44 +02:00
Vũ Minh Quân
49e2a2db6e Add TSX Extension
Add logic for TSX Check
2018-09-14 13:09:27 +02:00
Vũ Minh Quân
2c92ad5888 Add some extension
Need to add some check extension
2018-09-14 13:09:27 +02:00
Unknown W. Brackets
36f298dbcb x86: Use OS for cores on Mac OS X too. 2018-09-13 20:36:31 -07:00
Unknown W. Brackets
9351146a28 x86: Use OS to detect core count.
On Windows and Linux, at least.  This should be more reliable than what we
used before.
2018-09-13 19:51:47 -07:00
twinaphex
4855b2d6f1 mingw patches 2017-08-31 22:15:05 +02:00
LunaMoo
5e0f8141d2 Corrections, some %i->%d around other code as well. 2017-05-30 13:52:29 +02:00
Henrik Rydgard
ff2b6b3fca Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit. 2017-03-23 10:02:28 +01:00
Henrik Rydgard
b0bd7e3c6f Minor changes for compatibility with VS2017 2017-03-12 17:33:00 +01:00
Florent Castelli
70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli
83aaf30207 cmake: Use preprocessor for conditional compilation in Common
CommonExtra is gone!
Still need to fix CommonFake later though.
2016-10-11 16:55:29 +02:00
gmvbif
ae1c1a0295 Fixed some errors from PVS-Studio in Common project
Color conversion assigned 'a' twice.
Console listener use local variable with the same name a class member.
Some additionals to nocopy for FileUtils and mutex
2015-12-25 09:49:26 +03:00
Henrik Rydgard
1c67de0c21 We don't need a third set of sized integer typedefs, get rid of it. 2015-09-06 19:10:08 +02:00
Jan Beich
05e5085f68 Common: drop bogus #ifdef for FreeBSD
Common/CPUDetect.cpp:70:2: error: use of undeclared identifier '__cpuidex'; did you mean 'do_cpuidex'?
        __cpuidex((int *)regs, cpuid_leaf, ecxval);
        ^~~~~~~~~
        do_cpuidex
Common/CPUDetect.cpp:69:6: note: 'do_cpuidex' declared here
void do_cpuidex(u32 regs[4], u32 cpuid_leaf, u32 ecxval) {
     ^
Common/CPUDetect.cpp:70:12: error: cannot initialize a parameter of type 'u32 *' (aka 'unsigned int *') with an rvalue of type 'int *'
        __cpuidex((int *)regs, cpuid_leaf, ecxval);
                  ^~~~~~~~~~~
Common/CPUDetect.cpp:69:21: note: passing argument to parameter 'regs' here
void do_cpuidex(u32 regs[4], u32 cpuid_leaf, u32 ecxval) {
                    ^
Common/CPUDetect.cpp:73:2: error: use of undeclared identifier '__cpuid'; did you mean 'do_cpuid'?
        __cpuid((int *)regs, cpuid_leaf);
        ^~~~~~~
        do_cpuid
Common/CPUDetect.cpp:72:6: note: 'do_cpuid' declared here
void do_cpuid(u32 regs[4], u32 cpuid_leaf) {
     ^
Common/CPUDetect.cpp:73:10: error: cannot initialize a parameter of type 'u32 *' (aka 'unsigned int *') with an rvalue of type 'int *'
        __cpuid((int *)regs, cpuid_leaf);
                ^~~~~~~~~~~
Common/CPUDetect.cpp:72:19: note: passing argument to parameter 'regs' here
void do_cpuid(u32 regs[4], u32 cpuid_leaf) {
                  ^
4 errors generated.
2015-05-26 15:20:11 +03:00
Henrik Rydgard
cae58cafee Revert "Merge pull request #7361 from hrydgard/color-conv-centralize"
This reverts commit f1b57dabf5, reversing
changes made to 41001637ce.
2015-01-22 19:53:32 +01:00
Henrik Rydgard
4d1c1e41f3 Optimize and consolidate color conversion a bit 2015-01-20 17:32:55 +01:00
Henrik Rydgard
fb251c9a5c Merge Intel Atom detection from Dolphin's CPU detect 2014-12-06 11:35:01 +01:00
Henrik Rydgard
9e0aa8eaa3 Drop silly way of doing CPUID on Android, the right way seems to work 2014-11-12 00:29:16 +01:00
Henrik Rydgard
784bf82b58 Improve AVX check in CPUDetect. Warning fix.
Keeping the ifdef for zenfone - still doesn't work without it
2014-11-11 23:48:58 +01:00
Henrik Rydgard
7409263eb0 Make CPUDetect.cpp not blow up on Zenfone devices.
Don't really know what's going on here, but this seems like the easiest way out. Appears that CPUID really is buggy on this hardware, which seems weird. Alternate explanations would be that we are checking the wrong bits for xgetbv support or something...
2014-11-11 23:08:28 +01:00
Henrik Rydgård
7bde976069 Merge x64 emitter from a newer Dolphin version.
This one can generate slightly smaller code by exploiting some EAX-only
encoding and various other short forms, and adds support for many newer
CPU instructions.
2014-10-12 19:46:58 +02:00
Unknown W. Brackets
9e97206c5f Actually buildfix Linux / Android x86. 2014-06-13 23:42:28 -07:00
Unknown W. Brackets
b3541084c1 Buildfix for Linux/Android x86. 2014-06-13 23:10:02 -07:00
Henrik Rydgard
af9bfaed9c Attempt fix for cpuid on x86
Sign extension would be bad.

(couldn't test it right now, adb driver issues :/)
2014-06-14 00:55:02 +02:00
Henrik Rydgård
a0c6b18134 CPUDetect x86: Detect FMA support 2013-11-13 10:47:05 +01:00
Sacha
04b338f39e Buildfix for sse2 builds. 2013-11-13 12:08:46 +10:00
Unknown W. Brackets
443c719744 Support i386 PIC Linux builds (for Qt.) 2013-10-27 16:40:44 +00:00
Sacha
0282b505b0 Fix CPUDetect for i386 devices. Thanks @Sonic1. Confirmed by ganoo. 2013-10-26 01:18:59 +10:00
Unknown W. Brackets
a1c280f46b Simplify __cpuidex().
Wasn't building 32-bit for me on Ubuntu.
2013-10-20 23:45:56 -07:00
Henrik Rydgård
4426f84067 Merge pull request #4238 from skardach/master
Fix i386 crash at Qt startup
2013-10-19 15:19:18 -07:00