Commit graph

29972 commits

Author SHA1 Message Date
Henrik Rydgård
15a2373f04 Implement thread debug id with the syscall instead of gettid().
See #14545
2021-06-21 01:27:17 +02:00
Henrik Rydgård
efb32b5694
Merge pull request #14548 from sum2012/osk_patch
Add some PPSSPP's Japanese keyboard
2021-06-20 20:49:10 +02:00
sum2012
664f02114a Add some PPSSPP's Japanese keyboard
fix #14311
2021-06-20 22:38:25 +08:00
Henrik Rydgård
ca7c14e512
Merge pull request #14545 from hrydgard/gettid-fix-redux
An attempt at cleaning up the checks in ThreadUtil
2021-06-19 16:08:06 +02:00
Henrik Rydgård
692a54ea74 An attempt at cleaning up the checks in ThreadUtil 2021-06-19 14:54:36 +02:00
Henrik Rydgård
906b38e1bf
Merge pull request #14537 from hrydgard/android-opensl-error-global
Store the OpenSL error in a global to avoid "No context"
2021-06-16 07:39:46 +02:00
Henrik Rydgård
942958c7d8 Store the OpenSL error in a global to avoid "No context"
Followup to #14536
2021-06-16 07:28:45 +02:00
Henrik Rydgård
5ccac17123
Merge pull request #14536 from hrydgard/opensl-error-handling
Remove asserts from OpenSL init. Expose error inside audio settings
2021-06-15 23:45:04 +02:00
Henrik Rydgård
90cb284837 Remove asserts from OpenSL init. Expose error inside audio settings 2021-06-15 23:13:07 +02:00
Henrik Rydgård
c92775d26b Try a slightly rougher fix for libretro builds
(our builds work, but not their CI)
2021-06-14 22:44:27 +02:00
Henrik Rydgård
727b84ce5e Possible fix for reported problem with gettid() in libretro 2021-06-14 18:07:24 +02:00
Unknown W. Brackets
8ae3f5eb41 Android: Fix logical CPU count.
Otherwise bad things happen.
2021-06-13 12:47:11 -07:00
Unknown W. Brackets
cdcd77a931 Core: Correct relocation error check. 2021-06-13 10:51:51 -07:00
Unknown W. Brackets
87716a158f
Merge pull request #14391 from hrydgard/new-threadpool
New ThreadManager, replacing threadpools and "PrioritizedWorkQueue"
2021-06-13 07:08:32 -07:00
Henrik Rydgård
6d634f0c96 Mailbox: Address feedback 2021-06-13 11:27:12 +02:00
Henrik Rydgård
e7b3afbc7a Minor cleanups 2021-06-13 10:28:27 +02:00
Henrik Rydgård
81f0c3a8e4 Address feedback (except the mailbox refcount) 2021-06-13 10:16:53 +02:00
Henrik Rydgård
1d59560409 Make use of hyperthreading for worker threads. Still cap to 16 workers. 2021-06-13 00:05:18 +02:00
Henrik Rydgård
62eadd2dac typo, unnecessary 2021-06-12 23:47:34 +02:00
Henrik Rydgård
b07d9073db
Merge pull request #14528 from unknownbrackets/postshader
Postshader: Let shaders use the previous frame
2021-06-12 23:44:19 +02:00
Henrik Rydgård
2d6a73792b Untested libretro fixes, misc 2021-06-12 23:42:52 +02:00
Henrik Rydgård
09ec15e78b un-revert zstd 2021-06-12 23:29:43 +02:00
Henrik Rydgård
77908cb9e5 atomic include buildfix 2021-06-12 23:20:47 +02:00
Unknown W. Brackets
7f8144494e Draw: Use constants for texture slots.
GL actually had a check for 16 but then an array for 8.  This should make
it easier to figure out if we ever hit those limits.
2021-06-12 14:10:57 -07:00
Henrik Rydgård
ac9cc26a6d Simplifiy WaitableCounter. Fixes it on Mac/ARM.
Not completely sure why it didn't work before...
2021-06-12 23:08:07 +02:00
Henrik Rydgård
50d9d7ea6f Unittest buildfixes on mac 2021-06-12 22:42:10 +02:00
Henrik Rydgård
b42e49d49d Kill the pesky goto 2021-06-12 22:16:03 +02:00
Henrik Rydgård
5b64a41a97 ParallelLoop: A bit smarter straggler handling. 2021-06-12 22:04:55 +02:00
Henrik Rydgård
3be5c7bd9a Make the minimum items per thread explicit. Found some bugs, optional arguments are evil. 2021-06-12 21:21:28 +02:00
Henrik Rydgård
0fa27ff9d7 Autodetect number of threads (remove setting). Fix some bugs. 2021-06-12 21:06:59 +02:00
Unknown W. Brackets
17071e7fec Postshader: Add uniform for delta since last frame.
Useful mainly when using previous frame output.
2021-06-12 11:27:26 -07:00
Unknown W. Brackets
7bbaae492b Postshader: Let shaders use the previous frame.
This is useful for i.e. simulating the slow update speed of the PSP's LCD
screen, but could in theory be used for other effects.
2021-06-12 10:54:36 -07:00
Unknown W. Brackets
1ca1a8bbeb Postshader: Correct sampler binding translation. 2021-06-12 10:14:44 -07:00
Unknown W. Brackets
44d2d8a2a3 Draw: Assert sampler bindings are in valid ranges. 2021-06-12 10:10:42 -07:00
Unknown W. Brackets
5abec6ca18 Font: Prevent a crash on invalid data. 2021-06-12 10:09:47 -07:00
Henrik Rydgård
03c79ae055 Additional android buildfix 2021-06-12 13:03:54 +02:00
Henrik Rydgård
75fb783433 Android.mk buildfix 2021-06-12 13:03:54 +02:00
Henrik Rydgård
dc94cb8b04 Fix memory leak 2021-06-12 13:03:54 +02:00
Henrik Rydgård
a9e9929a72 Change the policy for number of threads 2021-06-12 13:03:54 +02:00
Henrik Rydgård
5fd15c06a3 Code cleanup 2021-06-12 13:03:54 +02:00
Henrik Rydgård
0f6a90098b Remove experimental unused stuff. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
06663c478d Rename setCurrentThreadName to SetCurrentThreadName 2021-06-12 13:03:53 +02:00
Henrik Rydgård
78f068d7ea Fix a way the threadmanager could get stuck. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
1b0ac23a69 Get rid of Executor.cpp/h.
There was only one implementation.
2021-06-12 13:03:53 +02:00
Henrik Rydgård
446c2c027e Get rid of the PrioritizedWorkQueue. Instead just queue tasks on the ThreadManager. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
34f8fc557f GameInfoCache: Don't expose the workqueue. Was unused anyway. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
73871b9b7e Implement new thread manager, port stuff to it. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
3d5c387b3b Minor cleanup 2021-06-12 13:03:53 +02:00
Henrik Rydgård
8ac06eed12 iOS: don't add a slash to the save path.
Might help #14524, but kinda doube it.

It works here.
2021-06-12 12:21:39 +02:00
Unknown W. Brackets
39f479025e Io: Correct CreateFullPath() on Linux.
Fixes #14519.
2021-06-09 23:09:04 -07:00