Commit Graph

506 Commits

Author SHA1 Message Date
Henrik Rydgård
70488be450 Make as much as possible of the VR code build on all platforms 2022-10-17 20:12:48 +02:00
Henrik Rydgård
d4bfe9299d Track min and max GPU time, init time, render CPU time.
Mainly wanted to see if init time is a factor, there are optimizations
we can do there.
2022-10-10 10:53:27 +02:00
Henrik Rydgård
49097d359b More libretro buildfix, thanks stuken 2022-10-03 16:36:03 +02:00
Kingcom
e025629d4b Attempt to fix libretro build 2022-10-03 15:50:33 +02:00
Henrik Rydgård
cdee10fe86 Vulkan: Basic geoshader code generation. 2022-10-02 07:42:17 -07:00
Unknown W. Brackets
559fdd167f armips: Also update UWP and ARM64, etc. 2022-09-30 20:16:34 -07:00
Henrik Rydgård
fabd50b178 Move FrameData out of VulkanRenderManager 2022-09-17 01:34:38 +02:00
Henrik Rydgård
242efba6f7 Remove splitSubmit setting. Now we submit init commands before the acquire. 2022-09-17 01:07:30 +02:00
Unknown W. Brackets
c9780e7609 Build: Another attempt to fix libretro.
As per lib/common/portability_macros.h in zstd.
2022-09-07 20:44:45 -07:00
Henrik Rydgård
ad12aced6c Another attempt at fixing libretro, this time the win build failed 2022-09-07 21:55:22 +02:00
Henrik Rydgård
8782061539
Merge pull request #15980 from unknownbrackets/zstd-update
Build: Add additional zstd file for libretro
2022-09-07 14:45:43 +02:00
Unknown W. Brackets
35157e8762 Build: Add additional zstd file for libretro. 2022-09-06 18:48:33 -07:00
Henrik Rydgård
ae23c3c266
Merge pull request #15974 from unknownbrackets/debugger-gecond
Add breakpoint conditions to GE debugger
2022-09-06 23:39:26 +02:00
Unknown W. Brackets
14d45c2e77 Build: Include all zstd files in libretro.
This was previously commented out, and was intentionally changed in zstd
so you could use a different xxhash.
2022-09-05 17:43:58 -07:00
Henrik Rydgård
14ef126137 Correct libretro buildfix (hopefully) 2022-09-05 22:17:02 +02:00
Unknown W. Brackets
542e7aa555 GE Debugger: Add a table of register metadata.
So far, not used, but indicates info about each GE register.
2022-09-05 12:15:53 -07:00
Henrik Rydgård
97ad3c21b4 libretro build fix, see #15968 2022-09-05 19:21:04 +02:00
Henrik Rydgård
6b6271a53e
Merge pull request #15968 from hrydgard/remove-fast-matrix-asm
Remove the assembly implementation of 4x4 matrix mul, in favor of intrinsics.
2022-09-05 18:14:37 +02:00
Henrik Rydgård
a42807ea62 Fix case problem in libretro make file, see #15964 2022-09-05 12:40:38 +02:00
Henrik Rydgård
ed8c4e8758 Remove the assembly implementation of 4x4 matrix mul, in favor of intrinsics. 2022-09-05 10:33:05 +02:00
Henrik Rydgård
8c56abd3dc Remove setting "Disable slower framebuffer effects" 2022-09-03 11:06:43 +02:00
Henrik Rydgård
1cd34f9d2b Another buildfix attempt 2022-09-01 14:07:27 +02:00
Henrik Rydgård
7c5d36eca7 libretro buildfix 2022-09-01 13:33:46 +02:00
Henrik Rydgård
67d6549afd Rename Slow Framebuf effects to Shader Blending (might remove). Reassign readbacks to BlockTransferGPU. 2022-08-31 14:23:33 +02:00
Henrik Rydgård
82a6c42e17 DepalettizeCommon -> TextureShaderCommon. Simplifications. 2022-08-22 12:21:20 +02:00
Henrik Rydgård
de10c1fddd Buildfixes 2022-08-06 18:27:04 +02:00
Henrik Rydgård
7085861aad Switch over D3D9 as well. Buggy, will debug after unification 2022-08-06 18:27:03 +02:00
Henrik Rydgård
e345a6ba3c Works with D3D11, except the depth texturing case 2022-08-06 18:27:03 +02:00
Henrik Rydgård
37555fd442 Move to Common 2022-08-06 18:27:02 +02:00
ANR2ME
41de63f13c Moving sceNpMatching2-stuff to sceNp2.cpp/h.
PS: Register_sceNpMatching2 not being added to HLETables because currently the callback didn't work properly yet and could crash the game.
2022-08-04 16:12:29 +07:00
ANR2ME
dcf3ece8f4 Implement NP Signin Dialog (faked signin) 2022-08-04 16:12:25 +07:00
Henrik Rydgård
59b3df0643 Draw2D 2022-08-03 14:12:55 +02:00
Henrik Rydgård
9bead443c3 Unify stencil buffer upload using Draw. Only OpenGL tested yet (shaders need adaptation). 2022-08-03 13:31:13 +02:00
Henrik Rydgård
69c4b59edd libretro buildfix 2022-07-30 15:20:36 +02:00
Henrik Rydgård
f9a25458d5 Libretro fix 2022-07-24 14:10:12 +02:00
Henrik Rydgård
a831cab14c
Remove unmotivated check preventing texture ini creation on mobile. (#15647)
* Remove unmotivated check preventing  texture ini creation on mobile.

Fixes #15644

* Show a "toast" message on platforms that don't support opening a text editor, when you try to create/open a texture ini file.

* Avoid the need to ifdef around calls to SystemToast

* UWP buildfix (and some warning fixes).

And possibly libretro fix

* Rename for a bit more consistency
2022-07-10 22:34:44 +02:00
ANR2ME
43beb26896 Added psp.gameplayer.club public Adhoc Server. 2022-06-26 19:47:33 +07:00
jdgleaver
75bd828a5d (libretro) Add option to detect and notifiy frontend of internal frame rate changes (60 <-> 30 <-> 20 fps, etc.) + restore 'Duplicate Frames in 30 Hz Games' core option 2022-05-17 16:22:29 +01:00
Bram Verweij
2da2525414 Limit minimum timeout to [0, 100, 200, ..., 5000] 2022-05-15 11:06:34 +02:00
Bram Verweij
4dbeb5cd57 For Libretro -DUSE_DISCORD=1 is not added in CMakeLists.txt 2022-05-14 21:01:37 +02:00
Bram Verweij
f74b884526 Let port offset cover the entire range in steps of 1k 2022-05-14 19:44:59 +02:00
Bram Verweij
47a52d2db9 Remove options for network chat, since these only work for standalone 2022-05-14 11:17:28 +02:00
Bram Verweij
eab3320e20 Make MAC address configurable and randomize when not set 2022-05-14 00:34:25 +02:00
Bram Verweij
8a6c1f803f Fix update of chat screen position 2022-05-13 22:40:50 +02:00
Bram Verweij
25e380577a Disable UPnP by default 2022-05-13 20:21:20 +02:00
Bram Verweij
2b1d40706c Correct indentation and some strings 2022-05-13 16:59:21 +02:00
Bram Verweij
899efa4a45 Expose networking options in libretro core 2022-05-13 16:48:06 +02:00
Henrik Rydgård
3b9ab88b21 Add utility class VulkanBarrier 2022-05-01 10:20:11 +02:00
Henrik Rydgård
a68ddd0a8d Merge separate NEON functions into the normal functions.
We no longer support non-NEON ARM.

It's nice also to have the NEON and SSE implementations "close" to each
other, easier to port optimizations back and forth etc.
2022-04-12 23:43:21 +02:00
Unknown W. Brackets
b71f17586e Switch: Avoid loading Vulkan. 2022-04-02 16:34:13 -07:00
Stuart Kenny
c48680ccdb Add missing Config.h include 2022-02-09 11:39:05 +00:00
Unknown W. Brackets
ad2e380987 Display: Move listeners to separate HW file.
Mixing this in with the HLE management funcs was messy.
2022-01-30 09:41:08 -08:00
Stuart Kenny
1a3fed4344 Expose 2xBRZ texture filter option. 2022-01-27 08:27:04 +00:00
Unknown W. Brackets
a0a9b1e89b softgpu: Add class to manage and enqueue for bins.
For now, just forwarding.
2022-01-13 09:26:59 -08:00
Henrik Rydgård
55fe21db1e Add a simple GPU profiler to profile individual events, rather than full passes. 2021-12-12 12:11:54 +01:00
jdgleaver
cdbebc1898 (libretro) Force enable g_Config.bRenderDuplicateFrames + minor audio buffer tweaks 2021-12-07 16:21:59 +00:00
twinaphex
df8dbd8861 (Libretro) Reimplement audio -
* Move audio callback to the main thread (fixes the longstanding hang
  issues when using OpenGL)
* 64ms on desktop isn't enough due to excess buffering going on in this
  emulator. Set default to 128ms instead.
* Different audio approach is necessary due to the following: it sets a
  fixed framerate of 60, then sends either too many or too few audio
samples per frame in order to force the frontend to run at the correct
speed (.e.g. making the frontend run in slow motion for games that run
at 30fps) - this is undesirable for libretro, we want a consistent
amount of audio samples per batch. See further comments in libretro.cpp
for more information
2021-12-05 17:31:36 +01:00
Unknown W. Brackets
3d5bced296 softjit: Rename reg cache so it can be reused.
Intentionally just the name changes in this commit.
2021-11-28 08:03:15 -08:00
Unknown W. Brackets
ae3299ea04 softjit: Add stubbed DrawPixel for x64. 2021-11-26 08:21:11 -08:00
Stuart Kenny
c0e61c9658 Add review suggestion. 2021-11-25 16:03:23 +00:00
Stuart Kenny
d609a7c8bf Destroy backbuffer when shutting down vulkan conext. 2021-11-25 15:32:44 +00:00
Stuart Kenny
afdd51c0e6 Build with correct preprocessor flag 2021-11-24 16:37:29 +00:00
Henrik Rydgård
8f29d9542c Buildfixes 2021-11-22 19:53:00 +01:00
Unknown W. Brackets
09dc38080a softgpu: Move draw pixel code to separate file.
This separates things better anyway.  No major perf impact.
2021-11-21 08:23:32 -08:00
Unknown W. Brackets
953200c995 softgpu: Add func to calculate pixel func ID.
This normalizes some things, and eventually can be used for a jit key.
2021-11-20 15:27:04 -08:00
Stuart Kenny
6882070df2 Fix crash on close content after cached GPU pointer cleanup. 2021-11-17 20:33:44 +00:00
Unknown W. Brackets
5b5a8c9c05 libretro: Expose bool system properties. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets
9730251132 UI: Remove I/O on thread setting.
Still configurable in the ini if really needed, for now.
2021-10-12 20:40:24 -07:00
Unknown W. Brackets
be5c6306d2 libretro: Remove auto texture scaling option.
Functionality removed in 887f610.
2021-10-05 19:33:13 -07:00
Stuart Kenny
825a84a5d1 Wire inflight frames config setting to render managers. 2021-09-11 19:05:34 +01:00
Stuart Kenny
d88fec8950 Decouple Vulkan context object destruction from retroarch's ContextDestroy call 2021-09-10 20:38:52 +01:00
Stuart Kenny
f442f4012c Expose texture shader core option. 2021-09-08 16:42:11 +01:00
Stuart Kenny
6350b41d3f Expose new texture filtering option and fix runtime changing texture upscale mode 2021-09-08 09:27:15 +01:00
Unknown W. Brackets
bac7def66b
libretro: Fix typo. 2021-09-06 19:47:39 -07:00
Henrik Rydgård
be87acf62b libretro: Fix defaults for texture_scaling_level and inflight_frames 2021-09-07 00:51:28 +02:00
Stuart Kenny
feade27cd3 Review style fixes. 2021-09-06 21:01:17 +01:00
Stuart Kenny
c593da050c Expose inflight frames as core option. 2021-09-06 20:14:08 +01:00
Stuart Kenny
0f45c95d17 Fix capitalization in core option labels. 2021-09-06 20:13:07 +01:00
Stuart Kenny
6db91abf17 Move core initialization code out of retro_load_game method 2021-09-06 20:10:13 +01:00
Stuart Kenny
3b39b6fcaa Do not fast forward by default. 2021-09-06 20:03:57 +01:00
Stuart Kenny
da4652aa2a Do not skip SwapBuffer() when skipDrawReason set.
Fixes nothing being rendered with high frameskip ratios.
2021-09-06 20:00:50 +01:00
bslenul
5ba544ebab [Libretro] Small core options cleanup + create a new git-version.cpp instead of appending stuff in it 2021-08-30 16:38:37 +02:00
Henrik Rydgård
8cab56c948 Move keymap defaults to a separate file. Not exactly a clean separation though. 2021-08-28 15:12:10 +02:00
Henrik Rydgård
0c34c939ad
Merge pull request #14749 from amverweij/rename-vk-externals-v3
Rename Vulkan externals
2021-08-21 13:45:06 +02:00
Bram Verweij
a31cbe42d2 Rename namespace to PPSSPP_VK, remove indentation 2021-08-21 12:39:15 +02:00
Bram Verweij
cc00a4132d Prevent dlopen collisions between ppsspp_libretro.so and libvulkan.so 2021-08-20 11:22:57 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Autechre
308f74ddae
(Libretro) Switch back to earlier base_width/base_height values
We decided on fixing this issue at the frontend level instead of the core side. Our apologies for this secondary PR, we'd appreciate if it could be merged quickly.
2021-08-17 01:13:24 +02:00
Autechre
23f1443949
Set base_width/base_height to sane dimensions (480x272)
base_width/base_height should be set to the lowest/default PSP internal resolution, which in this case is 480x272. Setting base_width/height the same as max_width/max_height would create problems with windowed mode in RetroArch, it would try to create a huge window (often times far exceeding the desktop size).
2021-08-15 10:03:19 +02:00
Henrik Rydgård
43ae32e5b8
Merge pull request #14713 from amverweij/vulkan-display-khr
First pass on using Display KHR, needs proper init flags
2021-08-11 01:34:38 +02:00
Henrik Rydgård
d62899efcd
Merge pull request #14711 from unknownbrackets/reverb-volume
Sas: Add option to control reverb volume
2021-08-10 13:02:30 +02:00
Unknown W. Brackets
ff9b9f7321 Sas: Add option to control reverb volume.
This also allows you to turn it off.
2021-08-09 20:47:24 -07:00
Brian Blakely
379f075c85
Do not call methods on gpu if it is null. Fixes #13412 (sans video rewind). (#14674)
* Do not call methods on gpu if it is null. Fixes 13412 (sans video rewind).

* Do not call methods on gpu if it is null. Fixes #13412 (sans video rewind).

* Ensure PSP is init before measuring state size.

* Continue running core until GPU is ready.

* Libretro: Bypass state measure during init.

* Sync ffmpeg version with master.

* Do not call methods on gpu if it is null. Fixes #13412 (sans video rewind).

* Ensure PSP is init before measuring state size.

* Continue running core until GPU is ready.

* Libretro: Bypass state measure during init.

* Sync ffmpeg version with master.
2021-08-09 23:16:30 +02:00
Unknown W. Brackets
a1b88bedd9 SaveState: Validate size matches measured.
In #14653, a save state appears to have been generated truncated.
This attempts to detect that at generation time.
2021-08-07 13:55:29 -07:00
Henrik Rydgård
ff340b8183
Merge pull request #14561 from archanox/master
RISC-V Port
2021-08-07 13:36:13 +02:00
bslenul
0446608f4a Update libretro.cpp 2021-08-02 12:11:39 +02:00
Pierce Andjelkovic
8541c446d6 Merge branch 'master' of github.com:archanox/ppsspp-riscv 2021-07-28 21:59:11 +10:00
Pierce Andjelkovic
d9a3741fcb RISC-V CPU detect 2021-07-28 21:58:56 +10:00
Stuart Kenny
156ae2e81f Fix English language mapping after recent i18n additions. 2021-07-24 18:59:58 +01:00
opa
9d3caecc3f better formatting 2021-07-18 21:16:09 +09:00
opa
19721a0a5f Add i18n inifile load on libretro startup 2021-07-18 14:59:21 +09:00
Henrik Rydgård
cd8cfcfcd7 Merge __CtrlSetAnalogX/Y into one function. Always called together. 2021-07-09 10:41:26 +02:00
Henrik Rydgård
98372c465f Break out EmuScreen's key/axis inputs to ControlMapper.cpp/h
Additionally, break out the analog stick mapping to the same file.

This will make more sense soon when I change where the analog mapping
is called from, but want this refactor in separately for testing.
2021-07-08 22:24:00 +02:00
Stuart Kenny
02a24cdb7d Fix black screen on multiple libretro content loads.
Moves ThreadPool teardown to retro_unload_game. Gives ThreadPool threads some breathing room to terminate before game load starts spamming it with tasks.
2021-07-08 08:34:48 +01:00
bslenul
9539fb2ea0 [Libretro] Fix analog left direction for FFT 2021-07-01 12:18:57 +02:00
Henrik Rydgård
2d6a73792b Untested libretro fixes, misc 2021-06-12 23:42:52 +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
73871b9b7e Implement new thread manager, port stuff to it. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
9b32ea2f55 Split out AndroidStorage.cpp from android/jni/app-android.cpp, move to Common 2021-06-07 00:26:24 +02:00
Henrik Rydgård
a2fa724d8e Convert GetFileSize to use Path 2021-06-07 00:24:51 +02:00
Unknown W. Brackets
64678e0114 Reporting: Move message report interface to Common.
This makes it so we can call reporting from Common.
2021-06-06 09:22:03 -07:00
Henrik Rydgård
0328816870 Rename g_Config.externalDirectory to defaultCurrentDirectory - since that's what it was.
Also make currentDirectory a Path, and add support for Path config
parameters.

Buildfixes

More Qt buildfixes

Oops, didn't mean to change zstd ver
2021-05-30 00:49:47 +02:00
Henrik Rydgård
6dc602ad40
Merge pull request #14469 from unknownbrackets/dep-update
Update zstd and libpng
2021-05-16 22:58:13 +02:00
Unknown W. Brackets
f6a1ffdd14 Update zstd to 1.5.0.
This improves GE frame dump compression speed and ZIM load speed.
2021-05-16 11:15:24 -07:00
Unknown W. Brackets
7b175627b3 VFS: Use Path for DirectoryAssetReader. 2021-05-15 11:12:04 -07:00
Unknown W. Brackets
2558022afe Config: Move data path settings to Paths. 2021-05-15 11:11:37 -07:00
Unknown W. Brackets
15038bb663 Common: Remove File funcs redundant with Path.
Shouldn't use these anymore anyway.
2021-05-15 11:11:37 -07: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
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Henrik Rydgård
d775bf4e4c
Merge pull request #14442 from unknownbrackets/path-extension
Update path extension and PSP/GAME/ handling
2021-05-10 21:05:05 +02:00
Unknown W. Brackets
18a51b8e97 Update libzip to 1.7.3. 2021-05-09 20:45:53 -07:00
Henrik Rydgård
a40bb2eaa1 headless: Avoid empty string compares for mountIso. 2021-05-09 17:24:04 -07:00
Unknown W. Brackets
1e22966984 http: Separate out net buffer code from formatting. 2021-05-01 11:20:05 -07:00
Unknown W. Brackets
8a8328c431 Common: Move ColorConv to a more appropriate place. 2021-05-01 11:20:05 -07:00
Henrik Rydgård
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Henrik Rydgård
e6aa841b78 Common: Get rid of Executor.cpp/h.
There was only one implementation.
2021-04-30 22:33:34 -07:00
Henrik Rydgård
eb07a3e111 Buildfixes 2021-04-18 00:34:18 +02:00
Stuart Kenny
1846c62a85 Fix defaults for io threading and vertex cache 2021-04-15 13:22:59 +01:00
Stuart Kenny
24d20d3d2e Remove duplicate from hardcoded settings 2021-04-15 11:05:12 +01:00
Stuart Kenny
b51bd3b974 whitespace nit 2021-04-14 23:28:07 +01:00
Stuart Kenny
d2967962cc Reorder core options 2021-04-14 23:14:52 +01:00
Stuart Kenny
238c5d0cd7 Further core options and defaults 2021-04-13 23:01:46 +01:00
Stuart Kenny
916176bd5d Add defaults and core options 2021-04-13 21:07:48 +01:00
twinaphex
6d9879769b Fix libretro build 2021-04-12 20:00:49 +02:00
Henrik Rydgård
a7d7631feb
Merge pull request #14369 from unknownbrackets/zstd
Use zstd for save states, GE frame dumps, and ZIMs
2021-04-12 08:35:58 +02:00
Unknown W. Brackets
d3e2aa6d28 Build: Add libzstd to build. 2021-04-11 09:13:10 -07:00
Stuart Kenny
c06035aa31 Enable save encryption to bring libreto in line with standalone configuration defaults.
Fixes issue with saving in Toca Race Drive 2 and 3
2021-04-11 11:52:10 +01:00
twinaphex
35e743c685 (Libretro/Gitlab) Add osx x64 target 2021-03-26 18:06:36 +01:00
Unknown W. Brackets
ff98d81e33 Build: Simplify by always including FakeCPUDetect. 2021-03-20 17:25:50 -07:00
Henrik Rydgård
dc873bbd42 Add missing -DWITH_UPNP in a couple more places. 2021-03-20 13:46:45 +01:00
Unknown W. Brackets
d9aecffd72 Build: Remove old ARM define. 2021-03-02 21:26:03 -08:00
Unknown W. Brackets
5119d79082 Build: Remove IOS define. 2021-03-02 21:04:03 -08:00
Unknown W. Brackets
13ec384dbe Build: Explicitly include ppsspp_config.h.
This adds it to all files that use it.  Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
jdgleaver
ab7bdbaac2 (libretro) Fix static makefile 2021-02-22 10:10:08 +00:00
Unknown W. Brackets
e4ef9cd4f5 libretro: Always use CONTINUOUS flipping. 2021-02-17 21:08:55 -08:00
Henrik Rydgård
19bd943adc
Merge pull request #13865 from unknownbrackets/unthrottle
Display: Change default unthrottle mode on non-Windows
2021-02-16 08:42:56 +01:00
Henrik Rydgård
b0fdc7a300 Turn funcreplacments on in libretro builds. See #12322 2021-02-16 00:19:10 +01:00
Unknown W. Brackets
4df04056ba libretro: Always use SKIP_FLIP.
This was probably preventing fast forward.
2021-02-15 14:16:50 -08:00
Henrik Rydgård
978d8cff82 libretro: Remove "Unsafe FuncReplacements" option. See #12322
Also, fixes #14108 by adding a frame duplication option.
2021-02-15 09:35:35 +01:00
jdgleaver
580c0d3e61 (.gitlab-ci.yml) Add linux-i686 and windows-i686 targets (+ prevent creation of 'null' file when building Windows libretro cores) 2021-02-03 15:26:40 +00:00
jdgleaver
32aa4bfdd0 (.gitlab-ci.yml) Add windows-x64 target 2021-01-29 10:29:13 +00:00
Henrik Rydgård
1c753e4a22 Use hacky methods to retrieve SD card directory if available.
This will disappear in future Android versions but can be useful for
older devices.

Fixes (or at least tries to) #10199, at least for some devices.

Might help #13827 ?

Tested on Pocophone F1.
2021-01-07 00:55:35 +01:00
Unknown W. Brackets
3c9ab13672 GPU: Remove NULL GPU.
We can use the software GPU without a backend now, and this is in every
way superior and will result in better tests/headless behavior.
2021-01-02 09:36:13 -08:00
Conrad Kreyling
e3540ccd17 First pass on using Display KHR, needs proper init flags 2020-12-16 13:15:39 -05:00
Henrik Rydgård
81bddf268a
Merge pull request #13598 from tbocek/master
Fix issue in #12145
2020-11-27 23:04:36 +01:00
Henrik Rydgård
ded92e51dd libretro: Remove VertexShaderGeneratorHLSL from Makefile.common. Fixes #13696 2020-11-23 00:36:30 +01:00
Henrik Rydgård
37e939fcf2 Expose the "Lower resolution for effects" setting in libretro. Fixes #11099 2020-11-11 00:04:02 +01:00
Henrik Rydgård
766dbc5a9f Move ShaderTranslation.cpp/h to Common/GPU. 2020-11-09 11:18:43 +01:00
Henrik Rydgård
19b4febbbf More reinterpret shader gen and test work.
More work on reinterpret

Buildsystem fixes
2020-11-08 10:41:20 +01:00
Henrik Rydgård
733a152c54 Move ShaderWriter to Common/GPU, along with some stuff from ShaderCommon.h. 2020-11-04 09:18:35 +01:00
Henrik Rydgård
97e8d5b93b Buildfix the rest of the platforms 2020-11-02 10:37:11 +01:00
Henrik Rydgård
f4ea3ccf22 Move the generic vertex shader generator into GPU/Common and rename it. 2020-11-01 19:58:54 +01:00
Henrik Rydgård
0b1b36921e Move the now-renamed fragment shader generator to GPU/Common. 2020-10-31 19:03:14 +01:00
Henrik Rydgård
3d0630c04a Remove the HLSL fragment shader generator. The GLSL one can now do its job. 2020-10-31 18:32:43 +01:00
Henrik Rydgård
f3c05cb81a
Merge pull request #13575 from Florin9doi/android_audio_record2
[Android] Audio record using OpenSL
2020-10-31 10:25:14 +01:00
Henrik Rydgård
5ee9cfef0d Remove support for D3D11_level_9 (previously only really used for Windows Phone, probably).
Can always fall back to D3D9, which is not going away anytime soon and
still needs to be there. One less HLSL variant to care about.
2020-10-29 00:52:19 +01:00
Henrik Rydgård
2977c56a12 Complete the vertex shader merge, deleting the Vulkan-specific vertex shader generator. 2020-10-25 08:34:35 +01:00
Florin9doi
6531c7f4f8 [Android] Retrieve isMicStarted from AndroidAudio state 2020-10-24 20:16:22 +03:00
Henrik Rydgård
020fb55a65 Completes the merge, deleting the Vulkan-specific fragment shader generator. 2020-10-23 10:03:44 +02:00
Henrik Rydgård
77ec537d1f
Merge pull request #13569 from hrydgard/shader-refactor-prep
Automatic shader generation tester
2020-10-22 01:10:39 +02:00
Henrik Rydgård
3d36049b65 Rename shader generator functions, a bit of moving around and adding an errorString param. 2020-10-21 23:20:25 +02:00
Unknown W. Brackets
53ba351797 Headless: Define consistent memstick size. 2020-10-19 21:44:46 -07:00
aliaspider
2a6e4dfe7d Libretro: set Memory Stick Size config value. fixes #13552. 2020-10-17 17:09:47 +01:00
Henrik Rydgård
1405e28166 More buildfixes 2020-10-16 00:24:12 +02:00
aliaspider
b5f7f5350a Libretro: add SYSPROP_DISPLAY_SAFE_INSET* properties. fixes screen frame
size.
2020-10-15 00:10:36 +01:00
Henrik Rydgård
61567796a2 libretro: Fix screen size problem in Vulkan.
(Still something is slightly off, there are duplicated lines on screen.
Can't figure out what)
2020-10-11 20:26:39 +02:00
Henrik Rydgård
dffc36b854 Get Vulkan going again with libretro. Rendering is the wrong size and crashes on exit, but it's a start.
Only tested on Windows.
2020-10-11 19:06:09 +02:00
Henrik Rydgård
ced83b4785 Libretro/VK: Add a README for debugging, so I don't forget. Minor cleanups. 2020-10-11 19:06:09 +02:00
Henrik Rydgård
ed3b99d921 Fix libretro makefile build 2020-10-05 23:05:25 +02:00
Henrik Rydgård
886a8b1ac6 Remove Timer.cpp/h. Move various collections into Common/Data/Collections. 2020-10-05 21:05:23 +02:00
Henrik Rydgård
8761bf2bc9 Move text rendering to Common. 2020-10-05 00:05:28 +02:00
Henrik Rydgård
0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård
71ecd62ab4 KeyMap fix (libretro) 2020-10-04 23:31:34 +02:00
Henrik Rydgård
3d69132ef1 Libretro buildfixes 2020-10-04 23:30:56 +02: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
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +02:00
Henrik Rydgård
b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård
989e353482 Common.h shouldn't include Log.h.
Buildfixes

More buildfixes. Move JSON code to common.
2020-10-04 11:42:14 +02:00
Henrik Rydgård
9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård
7a26be4131
Merge pull request #13483 from barbudreadmon/glcore_context
glcore context switching
2020-10-01 13:18:19 +02:00
Henrik Rydgård
342ed97291 Move input utilities from native to Common/Input. 2020-10-01 09:42:32 +02:00
Henrik Rydgård
15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +02:00
Henrik Rydgård
ef08c0237f
Merge pull request #13491 from hrydgard/merge-ext-directories
Merge ext/native/ext/... directly into ext.
2020-09-30 10:37:15 +02:00
Henrik Rydgård
97df3148eb Libretro buildfix 2020-09-30 08:39:39 +02:00
Henrik Rydgård
65617889dd Merge ext/native/ext/... directly into ext. 2020-09-30 00:30:42 +02:00
Henrik Rydgård
d9edc68966 Remove unnecessary use of thread local storage 2020-09-29 15:51:51 +02:00
Henrik Rydgård
311fe431d0 Move buffer.cpp/h from base to Common 2020-09-29 15:51:51 +02:00
Henrik Rydgård
ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
db9cc41a1a Delete unused math code 2020-09-29 10:07:53 +02:00
Henrik Rydgård
204fbe463e Delete unused backtrace.cpp 2020-09-29 00:36:29 +02:00
barbudreadmon
b41d20dd82 glcore context switching 2020-09-27 16:19:04 +02:00
Unknown W. Brackets
37d7096703 SaveState: Update to latest Snappy v1.1.8. 2020-09-12 18:16:27 -07:00
Unknown W. Brackets
e383b0279f Plugins: Support for loading game-specific plugins. 2020-09-08 09:12:19 -07:00
Henrik Rydgård
26ba65f385 Some minor logging improvements that get to tag along the previous commit 2020-08-22 00:32:51 +02:00
Henrik Rydgård
9561a4f80a Move MsgHandler into Log.cpp/h 2020-08-16 14:48:54 +02:00
Henrik Rydgård
8db6599e77 Buildfixes 2020-08-16 12:48:09 +02:00
Henrik Rydgård
ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Henrik Rydgård
f0d2f24658 Finally delete base/logging.cpp/h. Carefully preserve behaviour on Android.
There's more cleanup to do ...
2020-08-15 19:09:09 +02:00
Henrik Rydgård
3c412ea21e Fix build of ZimTool/AtlasTool. Had to break the ugly backwards dependency from LogManager to g_Config. 2020-08-15 19:09:09 +02:00
Unknown W. Brackets
df969a6c31 libretro: Buildfix. 2020-08-10 08:04:53 +00:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Henrik Rydgård
58ef0c8e80 Texture from framebuffer: Logging improvements 2020-08-04 14:45:14 +02:00
Henrik Rydgård
cb568b8f5e Rename FramebufferDX9.cpp/h to FramebufferManagerDX9.cpp/h 2020-08-03 23:24:50 +02:00
Henrik Rydgård
882cc6295e Rename FramebufferVulkan.cpp/h to FramebufferManagerVulkan.cpp/h 2020-08-03 23:22:11 +02:00
Henrik Rydgård
d57edfbdac Rename FramebufferCommon.cpp/h to FramebufferManagerCommon.cpp/h for consistency 2020-08-03 23:17:22 +02:00
Filippo Scognamiglio
cbdb9cc5dc Expose SYSPROP_SYSTEMVERSION to Libretro Android core. This fixes crashes with targetSdk 29. 2020-08-03 19:06:22 +02:00
Filippo Scognamiglio
9f7839c96a Fix Android Libretro build issues. 2020-08-03 19:06:08 +02:00
Henrik Rydgård
3869ade72a libretro buildfix 2020-08-02 17:54:03 +02:00
twinaphex
20d10187cd (Libretro Windows) Buildfix 2020-07-24 08:54:51 +02:00
Henrik Rydgård
dd8dd2c15d Libretro: Update minimum windows version to Vista. Committed on behalf of twinaphex
To fix a build error.
2020-07-23 22:37:42 +02:00
Henrik Rydgård
c5d912baa2 Further libretro buildfix 2020-07-22 22:49:03 +02:00
Henrik Rydgård
a6d49af668 libretro buildfix? 2020-07-22 21:24:07 +02:00
Henrik Rydgård
fa0b9dc1bc Make the instance counter global and initialized at startup.
Turn off config saving for secondary instances.
2020-07-20 11:40:54 +02:00
Unknown W. Brackets
4ef63843d2 Display: Allow unthrottle to skip only flipping.
Before, it either flipped continuously, or forced frameskip on.  This
makes it so you can still draw frames, but skip actual flips.

This is useful when games draw things only in a single frame and reuse
later.  It's also useful when measuring speed improvements if you already
get 100% speed on a device.
2020-07-19 13:57:04 +02:00
Henrik Rydgård
1897eed9b4 More buildfixes 2020-07-18 21:43:13 +02:00
Henrik Rydgård
626d173d10 Split the fault handling from MemMap.cpp to MemFault.cpp. 2020-07-15 12:12:57 +02:00
twinaphex
d4e1f87487 (Libretro) Buildfix - add missing file x64Analyzer.cpp 2020-07-14 14:09:50 +02:00
Henrik Rydgard
1fce6de8b1 Simple exception handler so we can ignore accesses that happen within the PSP memory space. 2020-07-14 09:25:45 +02:00
twinaphex
b8ad9c4d38 (Libretro) Add MSVC 2019 target 2020-07-13 21:12:41 +02:00
twinaphex
5a3e955a5b Change libretro.cpp to confirm to libretro code formatting conventions 2020-07-13 21:11:26 +02:00
twinaphex
20d85e57c9 (Libretro) Add optimal input read codepath - bitmasks 2020-07-13 19:13:18 +02:00
twinaphex
f958ed5817 Add custom GLEW - interfaces with libretro get_proc_address -
we need this for compatibility with DRM/KMS and Wayland contexts -
otherwise we're limited to GLX context
2020-07-12 23:51:57 +02:00
twinaphex
d203f30445 (Libretro) Makefile build fixes 2020-07-10 20:12:06 +02:00
twinaphex
649f12f8ab (Libretro) Buildfixes 2020-07-10 06:48:20 +02:00
tbocek
b009ec8f52 No need to call video_cb if there is no image 2020-05-31 11:32:24 +02:00
tbocek
8162d0ff66 fixed issue with: [libretro ERROR] [G3D] glewInit() failed
I looked at https://github.com/hrydgard/ppsspp/issues/12145 and used part of the logic from SDL headless -> 1ba7e01548/headless/SDLHeadlessHost.cpp and removed the return, as the comment below mentions that glew can fail, as well as the QT code also does not check for the return value: 1c8ac05b06/Qt/QtMain.cpp (L450)
2020-05-31 11:31:48 +02:00
Unknown W. Brackets
8f2fb0530c UWP: Stub new inputbox system func. 2020-05-25 09:57:18 -07:00
Henrik Rydgård
5e27612efe Buildfix 2020-05-17 19:27:57 +02:00
Henrik Rydgård
cbb9b32271
Merge pull request #12883 from unknownbrackets/softgpu-postshader
Refactor postshader handling to apply for softgpu / D3D9
2020-05-14 23:24:31 +02:00
Unknown W. Brackets
03c661294b Libretro: Add libpng17 to include flags.
We compile in libpng17, so we should be using those headers.

May fix libretro compile on Windows.  Not tested.
2020-05-13 18:32:13 -07:00
Unknown W. Brackets
d39b0bdca2 GPU: Split FramebufferCommon into two classes.
Only some things moved over so far.

FramebufferCommon does too much, we want to share it with softgpu without
all the buffer management stuff.
2020-05-13 18:07:22 -07:00
Henrik Rydgård
bf73d3d663 Address Unknown's feedback
https://github.com/hrydgard/ppsspp/pull/7965/files
2020-04-26 11:19:31 +02:00
Unknown W. Brackets
580c74c3e7 Audio: Remove latency setting.
This setting only changes some internal values that are shown in tests not
to match PSP behavior.  Removed, it now matches how the PSP works.

This setting wasn't really affecting any actual audio latency.
See #11844.
2020-04-08 00:08:19 -07:00
tbocek
1f49141c30 Setting the width and height to 0 made the frameskip unusable on lakka/libretro with a XU4 with a MALI GPU T628. The result was that bad flickering happened when in frameskip mode. Once it reached 60fps, no flickering, below that flickering. This change fixes the flickering and calls video_cb with the correct height and width. 2020-04-04 11:59:27 +02:00
Aaron Kling
a7f2415469 libretro: Fix Android builds
Text Drawer functionality is not available in libretro as it
depends on standalone jni calls. InputBox is also standalone only
gui functionality.
2020-04-03 09:59:16 -05:00
Henrik Rydgård
4219ce01d7 libretro makefile fix 2020-03-11 13:14:43 +01:00
Henrik Rydgård
62420e32c8 Possible fix for libretro build issue. (blind commit, untested) 2020-03-09 21:33:46 +01:00
Henrik Rydgård
271f79ea63 UI: Break out the hierarchy functions into ui/root.cpp/h 2020-03-08 14:49:29 +01:00