Commit Graph

1706 Commits

Author SHA1 Message Date
Unknown W. Brackets
1e2c3f7f30 Android: Explicitly allow content URI intents. 2023-05-06 23:47:19 -07:00
Henrik Rydgård
03bf19c47e
Merge pull request #17398 from lvonasek/cleanup_openxr_android12
OpenXR - Cleanup unsupported features, support Android 12
2023-05-03 20:05:16 +02:00
Lubos
0447b2b78a OpenXR - Cleanup unsupported features, support Android 12 2023-05-03 19:41:23 +02:00
Henrik Rydgård
ee7e8d7c06 Add a unit test, fix listing zip directories 2023-05-02 11:35:45 +02:00
Henrik Rydgård
e0a67c7703 Don't use the cpu_features library on Android arm32.
Unbreaks Xperia Play, yay.

Also bumps the compile tools version in the gradle, unrelated but
doesn't hurt.
2023-04-29 23:54:47 +02:00
Henrik Rydgård
91be4cfeb6 typo fix 2023-04-29 16:15:48 +02:00
Henrik Rydgård
6945deec01 Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy 2023-04-28 21:04:05 +02:00
Henrik Rydgård
67754e3c99 Android: Upgrade to the latest gradle version.
Android Studio got an upgrade, and as usual comes with new gradle and
integration plugin.
2023-04-18 10:47:36 +02:00
Henrik Rydgård
075ccc0821 Android: Update target version to SDK 33
Which corresponds to Android 13.

Additionally removes redundant version lines from the manifest, and
includes a small warning fix.
2023-04-18 10:27:06 +02:00
Henrik Rydgård
9d98947a9d Remove excessive camera preview framerate throttle 2023-04-16 10:21:53 +02:00
Henrik Rydgård
449d68a43d Camera on Android: Choose the preview framerate closest to 30fps.
Might help #17283
2023-04-16 10:19:23 +02:00
Henrik Rydgård
5a1e9ed8f1 Add ConfigSettings.cpp/h 2023-04-08 09:22:02 +02:00
Henrik Rydgård
aba026f7e9 Add back our older VFPU approximations, as fallbacks if files are missing.
PR #16984 added more accurate versions of these functions, but they require
large lookup tables stored in assets/.

If these files are missing, PPSSPP would simply crash, which isn't good.

We should probably try to warn the user somehow that these files are
missing, though...
2023-04-03 11:33:41 +02:00
Henrik Rydgård
38f4cc4cc9 Make reverse mapping lookup work for the simple PSP buttons. 2023-03-31 11:05:29 +02:00
Unknown W. Brackets
00d84695d8 headless: Rename collectEmuLog for clarity.
This is still used when running tests outside headless, so leaving in
CoreParameter.
2023-03-26 10:21:07 -07:00
Unknown W. Brackets
76ef95a841 headless: Remove printfEmuLog, simplify output. 2023-03-26 10:17:34 -07:00
Henrik Rydgård
5c36aec484 More renaming 2023-03-26 11:21:34 +02:00
Unknown W. Brackets
42f64e34e8 headless: Rename StubHost to HeadlessHost.
It's had that weird name forever, get rid of it.
2023-03-25 17:49:05 -07:00
Unknown W. Brackets
0ade62d264 Core: Remove Host entirely. 2023-03-25 17:47:25 -07:00
Henrik Rydgård
d586ec0d5e Don't create Host objects except in headless/unittest 2023-03-25 10:47:01 +01:00
Henrik Rydgård
9e125eeba7 Remove NotifyUserMessage from Host 2023-03-25 10:32:09 +01:00
Henrik Rydgård
349b73acec
Move the resampler usage to a common file, AudioCommon. (#17176)
* Move the resampler usage to a common file, AudioCommon.

Ports that don't want to use the resampler can now simply exclude that
file and provide their own implementation. Next up, libretro will be
converted to do it that way.

* Android.mk typo

* libretro makefile fix

* libretro buildfix

* libretro: try a different approach for the temporary solution

* duh

* double duh
2023-03-24 17:19:57 +01:00
Henrik Rydgård
a5fdf3d05b Add samplerate argument to NativeMix 2023-03-24 14:48:53 +01:00
Henrik Rydgård
b440e28e38 Remove System_SendMessage!
iOS, Qt buildfixes
2023-03-22 23:52:51 +01:00
Henrik Rydgård
4c99712b60 And "immersive", "audio_resetDevice" 2023-03-22 23:52:38 +01:00
Henrik Rydgård
ac47476253 And share_text, toast, recreate 2023-03-22 23:52:25 +01:00
Henrik Rydgård
87d0c21f14 Make proper requests for the external hardware commands (gps, microphone, camera) 2023-03-22 23:52:25 +01:00
Henrik Rydgård
2c9787643d Move the twitter special-case URL handling to java 2023-03-22 23:52:25 +01:00
Henrik Rydgård
5a55fd5fd3 And replace "graphics_restart", "toggle_fullscreen", etc 2023-03-22 23:52:15 +01:00
Henrik Rydgård
410b35fba3 Get rid of "finish" and "setclipboardtext" messages, replace with requests. 2023-03-22 22:17:26 +01:00
Henrik Rydgård
b7350f3cbf Fix folder browser on Android and Windows 2023-03-22 19:25:35 +01:00
Henrik Rydgård
7718c06dd1 Port UWP file browser, fix UWP image browser 2023-03-22 15:36:14 +01:00
Henrik Rydgård
70f0ac04af Port the file browser spawned by the Load button to the new request stuff 2023-03-22 15:36:14 +01:00
Henrik Rydgård
0403bbf084 Make the new image selection path work on Android as well. 2023-03-22 14:53:07 +01:00
Henrik Rydgård
e9f5394f59 Move the Windows open file dialog to the new system, switch the background image selector over. 2023-03-22 14:53:07 +01:00
Henrik Rydgård
8bbb9e7c95 Buildfixing 2023-03-22 13:22:10 +01:00
Henrik Rydgård
de064e210e Replace the inputbox queue with a more generic RequestManager. 2023-03-22 12:41:11 +01:00
Henrik Rydgård
06fcc9ccd7 Add System_Notify 2023-03-21 13:37:16 +01:00
Henrik Rydgård
d3955b42bb Rename some system functions, merge the Launch* ones.
android launchurl buildfix
2023-03-21 12:22:59 +01:00
Henrik Rydgård
a9eaa4fdc8 Get rid of an ifdef 2023-03-21 10:24:36 +01:00
Henrik Rydgård
32e8ab3b5d Import all of basisu_transcoder, set up build 2023-03-13 12:37:43 +01:00
Henrik Rydgård
f936a6e9ce Structs and enums and build files 2023-03-11 11:19:33 +01:00
Henrik Rydgård
cb10862510 Move texture replacer to GPU/Common.
Add new files ReplacedTexture.cpp/h too.
2023-03-09 21:11:53 +01:00
Lubos
0fe5bd79c4 OpenXR - Manifest merge fail fixed 2023-03-08 22:13:55 +01:00
Henrik Rydgård
a43b62537a Buildfixes 2023-03-07 20:22:28 +01:00
Henrik Rydgård
ac94d3febf VFS: Add support for opening zip files through a Content URI 2023-03-06 16:44:48 +01:00
Henrik Rydgård
53172eff63 Renaming and file splitting 2023-03-06 16:42:50 +01:00
Henrik Rydgård
3b39e9e068 Turn the VFS into a class, to be able to reuse it for other purposes. 2023-03-06 16:42:47 +01:00
Henrik Rydgård
1a577eea3c
Merge pull request #17041 from hrydgard/new-app-icon
New app icons
2023-03-02 14:13:28 +01:00
Henrik Rydgård
cf6b00e3aa Also add new gold icon 2023-03-02 13:15:30 +01:00
Henrik Rydgård
ab5172cd6e Gradle updates 2023-03-02 13:14:24 +01:00
Henrik Rydgård
055ac2b697 Add new default icon 2023-03-02 11:45:47 +01:00
Henrik Rydgård
31d796e769 Vulkan on Android: In non-debug mode, avoid devices that were rejected by VulkanMayBeAvailable.
Fixes #16931

Can still use these devices in debug builds by modifying the ini.
2023-02-28 18:18:19 +01:00
Henrik Rydgård
18999c3687 Create the GPUCommonHW class. 2023-02-25 14:42:10 +01:00
Henrik Rydgård
8b431b39ba
Wrap the display globals in a struct (#16998)
* Wrap the display globals in a struct

Makes it easier to search/replace these, for future refactorings.

* Some renaming

* Qt buildfix, also fix the Qt build on Mac (got broken with battery changes)

* Attempt at buildfixing ios

* UWP buildfix
2023-02-25 13:09:44 +01:00
Lubos
7bbb5eac51 Comment fixed 2023-02-08 17:41:50 +01:00
Lubos
abf76bd212 OpenXR - One APK for both Pico and Quest 2023-02-08 17:26:36 +01:00
Henrik Rydgård
d502198aa3 Move GLFrameData out of GLRenderManager.
Small refactor to prepare for adding delayed readback support to the
OpenGL backend.
2023-02-07 12:12:00 +01:00
Henrik Rydgård
fb8aff5a8c Split out the depth stuff from the file, move to GPU/Common 2023-02-03 21:06:43 +01:00
Henrik Rydgård
3b36a1bb66 TiltEventProcessor belongs in Core, not UI. 2023-02-01 15:04:32 +01:00
Henrik Rydgård
a88bafff4d Break out the JoystickHistoryView 2023-02-01 14:58:16 +01:00
Henrik Rydgård
c8dce81ff0
Merge pull request #16156 from hrydgard/opengl-thread-refactor
OpenGL threading refactor
2023-01-31 11:14:01 +01:00
Henrik Rydgård
d43452f0ce Fix to shutdown sequence 2023-01-30 11:49:31 +01:00
Henrik Rydgård
2659fd6f66 Android work. Make the Android OpenGL exit prodecure make more sense 2023-01-30 11:49:31 +01:00
Unknown W. Brackets
489411359e Common: Add cpu_features library. 2023-01-29 14:35:58 -08:00
Henrik Rydgård
f38dd95368 Why not just schedule directly... 2023-01-12 12:24:45 +01:00
Henrik Rydgård
241d867ed7 Android: Take the key change from PR #16583, updating display measurements form the right thread 2023-01-12 12:20:17 +01:00
Henrik Rydgård
ea0eaa31e6 Remove the Android display resolution selector
I think its benefit is absolutely tiny if any, and causes a lot more
problems than it's worth. Bye.

Note that this isn't the rendering resolution selector, that will of
course still be there, but it's the "hardware scaler" resolution.
2023-01-11 22:53:42 +01:00
Henrik Rydgård
c27689910e Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h 2023-01-11 10:56:31 +01:00
Henrik Rydgård
07114c6aaf Remove return value from axis functions in API 2023-01-10 10:12:37 +01:00
Henrik Rydgård
fdfc4cbe40 Android: Remove return value from touch event functions 2023-01-10 10:12:33 +01:00
Henrik Rydgård
ab6fafb6eb Invert dependency to avoid compile issues 2023-01-05 08:38:53 +01:00
Henrik Rydgård
a3e5e475cd Revert "buildfix attempt"
This reverts commit 97328620f16efdad7733994a0c825963675186c0.
2023-01-05 08:38:53 +01:00
Henrik Rydgård
7e374c9324 Address feedback, more fixes 2023-01-05 08:38:53 +01:00
Henrik Rydgård
d352340f77 buildfix attempt 2023-01-05 08:38:52 +01:00
Henrik Rydgård
b56eef487c Strict mode checking - no way to forget detaching now.
And if we forget to attach, boom. Hopefully I caught all of them.
2023-01-05 08:38:52 +01:00
Henrik Rydgård
916404f0e4 Try to get a bit better at detaching threads that have used JNI from the VM. 2023-01-05 08:38:49 +01:00
Henrik Rydgård
830f1064e6
Merge pull request #16676 from unknownbrackets/riscv-disasm
Add disassembler for RISC-V
2023-01-04 09:52:56 +01:00
Henrik Rydgård
cd535263c1 Update version number 2023-01-03 11:14:31 +01:00
Henrik Rydgård
bd6cdeb4ce Remove "toast" message on failure in displayInit, not allowed from that thread. 2023-01-02 16:31:30 +01:00
Henrik Rydgård
0f4f9997fd Update version number 2023-01-02 10:19:53 +01:00
Unknown W. Brackets
77849d3eed riscv: Add disassembler.
From https://github.com/anthony-coulter/riscv-disassembler.
Modified slightly to pull in less headers in the h, prefix funcs.
2023-01-01 10:28:53 -08:00
Henrik Rydgård
fd5a27f985 Some more paranoia. Name the EmuThread on Android, just because. 2022-12-31 15:18:14 +01:00
Henrik Rydgård
492c0b4ab3 Update version number 2022-12-30 13:37:04 +01:00
Henrik Rydgård
10c0b3f2ae Comment improvements 2022-12-29 00:39:59 +01:00
Henrik Rydgård
463d703feb More assorted cleanup 2022-12-29 00:39:59 +01:00
Henrik Rydgård
6927c44fba Remove unused functions, log and comment fixes 2022-12-29 00:39:59 +01:00
Henrik Rydgård
31d5881c90 Enable support for Android Vulkan validation. Fix a minor validation error. 2022-12-22 11:13:52 +01:00
Henrik Rydgård
db98ed9b7a More simplification. 2022-12-22 10:46:09 +01:00
Henrik Rydgård
fe0f19fa31 Fix JNI leak in Android_GetInputDeviceDebugString, affecting TouchScreenTest 2022-12-22 10:35:34 +01:00
Henrik Rydgård
a3bbaeb31d Simplify some more code in app-android.cpp 2022-12-22 10:35:18 +01:00
Henrik Rydgård
afbf732d7e Delete even more dead code in app-android.cpp 2022-12-22 10:17:52 +01:00
Henrik Rydgård
f0c6510727 Remove redundant variables 2022-12-22 10:05:21 +01:00
Henrik Rydgård
f17f2f5bb5 Remove more dead code in app-android.cpp 2022-12-22 10:03:28 +01:00
Henrik Rydgård
182fb5c373 Add .gitignore to ignore Vulkan validation layers on Android if added locally 2022-12-20 23:19:15 +01:00
Henrik Rydgård
e209227be1 Delete dead code path (initialize EGL from C++ on Android) 2022-12-20 23:17:51 +01:00
Henrik Rydgård
2d1f8f03fa Update version number in AndroidManifest.xml 2022-12-20 14:25:46 +01:00
Henrik Rydgård
aad5d7542e Update version number in AndroidManifest.xml 2022-12-15 14:01:38 +01:00
Henrik Rydgård
d8cf7ce30c Add stub symbol for 'utimensat', making it work on Android 2.3 again 2022-12-14 16:10:21 +01:00
Lubos
3cc979859c OpenXR - Release keys on activation of camera adjust 2022-12-10 21:31:39 +01:00
Lubos
38c4774f4a Change package of the Android VR builds 2022-12-04 18:14:05 +01:00
Henrik Rydgård
31af24a230 Break out VKRFramebuffer/VKRRenderpass from VulkanRenderManager 2022-11-27 10:22:37 +01:00
Henrik Rydgård
d38019ee6a Add basic CI support for build-testing the Android-based VR build.
Note: Doesn't do APK generation, to keep things simple, instead using
the old NDK build.

Later should run gradle on github CI too, I guess.

Fixes #15981
2022-11-25 10:49:59 +01:00
Henrik Rydgård
57864f62ce Rework the display layout editor to ditch the preview thing.
We lose the snapping in the refactor because I ended up rewriting the
whole dragging mechanism, might reintroduce later.
2022-11-22 20:10:20 +01:00
Henrik Rydgård
ec6d330ae4 Move AsyncImageFileView to Common, which required some more shuffling around of stuff. 2022-11-21 20:38:20 +01:00
Lubos
db8b159d9e OpenXR - Force PSP menu aspect ratio 2022-11-17 17:30:29 +01:00
Lubos
ddad6b3760 OpenXR - Support axis 2022-11-17 10:52:12 +01:00
Lubos
32c0f19df6 OpenXR - Freezing on Pico 4 fixed 2022-11-10 22:16:36 +01:00
Henrik Rydgård
dd0409d68c OpenGL ES: Crash as early as possible if things are bad
There's a huge variety of crash report in the Play Console of various
opengl failures. Try to concentrate them to early points in
initialization
2022-11-08 10:43:38 +01:00
Henrik Rydgård
ecd62e7eb2 Lift length limit on Android logging 2022-11-08 00:21:37 +01:00
Henrik Rydgård
0ef39d11d8 Add a dynamic loader for OpenXR so the VR code can link. Make it all build on Windows. 2022-11-06 15:37:58 +01:00
Henrik Rydgård
b4507cd5cc Make a lot more code VR build for all platforms 2022-11-06 14:36:51 +01:00
Henrik Rydgård
4d81506046 Upgrade gradle, specify NDK version in android/build.gradle
Also fix a warning.
2022-11-06 09:44:06 +01:00
Henrik Rydgård
0010ccb43e
Merge pull request #16336 from lvonasek/hotfix_android_intent
Support Android file intents with up to 3 dots in path
2022-11-05 22:43:57 +01:00
Lubos
a5100d2de0 Support Android file intents with up to 3 dots in path 2022-11-05 21:44:21 +01:00
Lubos
aacbe4f4a3 OpenXR - Get platform flags in runtime 2022-11-04 14:53:07 +01:00
Lubos
d2a79f9ea3 OpenXR - Workaround for not working inputbox 2022-10-31 17:34:01 +01:00
Unknown W. Brackets
79d53552a5 armips: Update to latest. 2022-10-29 09:02:12 -07:00
Henrik Rydgård
8df6efa712 Android non-gradle buildfix 2022-10-17 20:12:54 +02:00
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
eb18a87eee
Merge pull request #16186 from lvonasek/feature_openxr_vulkan
OpenXR - Initial work to support multiple render APIs
2022-10-17 14:47:47 +02:00
Lubos
7b058a534c typo 2022-10-14 18:32:45 +02:00
Lubos
e1924be464 OpenXR - Ensure the app gets unloaded when killed by OS 2022-10-14 18:28:22 +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
Unknown W. Brackets
7b8350f8a8 Android: Differentiate empty dir from failure. 2022-10-09 14:42:31 -07:00
Lubos
7c6cff5ae9 Merge branch 'master' into feature_openxr_vulkan 2022-10-09 17:48:23 +02:00
Lubos
bf14ca84d3 OpenXR - Revision of VR rendering 2022-10-08 14:38:49 +02:00
Herman Semenov
29b87e0c0b
Merge branch 'master' into master 2022-10-03 07:49:13 +00: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
lainon
fec708489a Correct cleaning string and remove unused vars 2022-09-30 12:26:30 +03:00
Lubos
1fdbde8ee9 OpenXR - Support multiple loaders 2022-09-24 22:11:08 +02:00
Lubos
ec22cee96a OpenXR - Add manifest for Pico 2022-09-24 21:22:55 +02:00
Lubos
ca77240f36 OpenXR - Rename Quest build variant 2022-09-24 21:16:57 +02: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
Lubos
d8fbc7ce56 OpenXR - Vulkan support in progress 2022-09-14 19:53:55 +02:00
Unknown W. Brackets
f6f056d557 Merge tag 'v1.13.2' into merge-hotfix
v1.13.2
2022-09-10 07:37:02 -07:00
Henrik Rydgård
9fe6338e3b Update version to 1.13.2 2022-09-10 15:50:49 +02: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
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
Lubos
3a0e6c7232 Merge branch 'master' into feature_openxr_stereo 2022-09-05 19:11:52 +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
Unknown W. Brackets
18c2b04e7a Build: Update to zstd v1.5.3.
Untagged, so using latest as of now.  Has perf improvements.
2022-09-04 23:54:14 -07:00
Unknown W. Brackets
fb8268e081 Build: Split ppsspp_common out for Android bins.
This gives room for headless/unittest to keep building on Windows even as
we add more files.
2022-09-04 20:07:29 -07:00
Lubos
044d9a416b OpenXR - Emulate mouse cursor 2022-09-01 18:08:08 +02:00
Lubos
2adc7269a3 Merge branch 'master' into feature_openxr_stereo 2022-08-28 21:55:15 +02:00
Unknown W. Brackets
216fcb228c riscv: Add a simple unit test.
Since I haven't tried running these yet, at least best to validate...
2022-08-28 06:03:31 -07:00
Lubos
c2c0561be2 OpenXR - OPENXR ifdef removal 2022-08-27 17:33:37 +02:00
Luboš Vonásek
11a6318509
Merge branch 'hrydgard:master' into feature_openxr_stereo 2022-08-24 19:50:45 +02:00
Luboš Vonásek
c5cb45b1f7
Merge branch 'hrydgard:master' into feature_openxr_6dof 2022-08-24 06:55:31 +02:00
Henrik Rydgård
82a6c42e17 DepalettizeCommon -> TextureShaderCommon. Simplifications. 2022-08-22 12:21:20 +02:00
Lubos
98f726af3b OpenXR - Use OpenGL ES 3 and ensure FBO pair calls 2022-08-19 16:59:39 +02:00
Lubos
4603ccdd92 OpenXR - Initialization errors fixed 2022-08-19 15:17:42 +02:00
Lubos
d570a194dd Merge branch 'feature_openxr_6dof' into feature_openxr_stereo 2022-08-17 17:08:12 +02:00
Lubos
2887671e6f OpenXR - Refactor display framerate 2022-08-17 16:55:19 +02:00
Lubos
22e7f87e33 OpenXR - Disable multiview for now 2022-08-16 21:32:11 +02:00
Lubos
71df50a354 OpenXR - GL and OXR logging added 2022-08-16 17:39:54 +02:00
Lubos
92d631966f OpenXR - Resuming renderer fixed, haptics support added 2022-08-16 16:47:31 +02:00
Unknown W. Brackets
2ca696ea36 Build: Remove no-format. 2022-08-07 07:52:13 -07:00
Henrik Rydgård
de10c1fddd Buildfixes 2022-08-06 18:27:04 +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
41e327a66b Cleanup and testfixes 2022-08-03 13:34:59 +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
392d83fb22
Merge pull request #15659 from lvonasek/feature_openxr_quest
Oculus Quest native support
2022-07-31 16:34:45 +02:00
Lubos
4691b376d1 OpenXR - Use a build variant instead of a module 2022-07-31 15:27:15 +02:00
Henrik Rydgård
063cd18254 Simplify CPU upscaling code
Use the existing expandTo32bit mode in the texture decoder instead of
the backend-specific switches and stuff.

Just gets rid of a bunch of redundant code and makes further changes
easier.
2022-07-30 15:06:25 +02:00
Henrik Rydgård
5083b20636 Update version for 1.13.1 2022-07-28 15:28:47 +02:00
Lubos
ab9a48d750 OpenXR - Static added to global variables 2022-07-26 17:44:38 +02:00
Lubos
b2509ad4dd OpenXR - Version info refactor 2022-07-26 17:40:10 +02:00
Lubos
19ebbb6a30 OpenXR - Integrate SYSPROP_HAS_FILE_BROWSER 2022-07-26 17:32:03 +02:00
Lubos
c543c8fd52 Merge branch 'master' into feature_openxr_quest 2022-07-26 17:22:04 +02:00
Henrik Rydgård
a92e764c65 Update version for 1.13 release 2022-07-26 15:19:02 +02:00
Unknown W. Brackets
8f23025209 irjit: Add tests for IR passes. 2022-07-24 11:35:54 -07:00
Lubos
b1e3d8beb3 OpenXR - Code formatting fixed 2022-07-24 16:44:16 +02:00
Lubos
8f2904ecac OpenXR - Default device config added 2022-07-24 15:38:30 +02:00
Lubos
28d598b9ba OpenXR - Button repeating implemented 2022-07-22 22:19:49 +02:00
Lubos
67821ca942 OpenXR - Controller mapping better 2022-07-22 18:47:37 +02:00
Lubos
cc833faa13 OpenXR - Hacky mapping to make the games playable 2022-07-17 20:03:37 +02:00
Lubos
29ff6af7da OpenXR - UI controls integrated 2022-07-17 19:09:18 +02:00
Lubos
a08325e52f OpenXR - UI scale/resolution fixed 2022-07-17 14:55:20 +02:00
Lubos
0d41691413 OpenXR - Input class added 2022-07-17 14:45:02 +02:00
Lubos
553363a5b5 OpenXR - Rendering into VR framebuffer works 2022-07-15 15:41:21 +02:00
Lubos
08e01c9a2a OpenXR - Dummy rendering working 2022-07-15 13:52:15 +02:00
Lubos
d109e7c1d7 Merge branch 'master' into feature_openxr_quest 2022-07-12 18:54:47 +02:00
Lubos
f693850d94 OpenXR - Initial version of VR renderer added 2022-07-12 18:53:46 +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
Lubos
9893e5c4ab OpenXR - VR mode initialization added 2022-07-08 14:44:20 +02:00
Unknown W. Brackets
536c050943 Core: Track names of connected pad devices.
Rather than just that it's a pad.  This tries to get the identifier if
possible.
2022-07-04 19:14:04 -07: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
Henrik Rydgård
477b1773c2 Bump Android target version to 12L.
(I believe we already handle the one relevant behavior change, which is that
insets can change at any time)
2022-04-05 10:09:52 +02:00
Henrik Rydgård
7f505c0c23 Gradle upgrade again. Remove some redundant version checks
(we don't support Android versions older than Gingerbread anyway)
2022-02-19 18:41:29 +01:00
iota97
e5843160fe Add themes to assets 2022-02-14 07:37:56 +01:00
iota97
5e1062678f Allow custom UI themes 2022-02-11 12:42:38 +01:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets
3df6cb704f Global: Fix some type conversion warnings.
Hidden by some warning disables.
2022-01-30 16:09:33 -08: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
Henrik Rydgård
77502db4c4
Merge pull request #15363 from unknownbrackets/softjit-unittest
Add unit test to verify compilation of sampler/pixel jits
2022-01-30 10:47:30 +01:00
Unknown W. Brackets
cb0bc8543b Build: Ignore nullable completeness on Android.
Gives a bunch of warning spam with Vulkan Memory Allocator.
2022-01-29 22:36:21 -08:00
Unknown W. Brackets
0d93200faf softjit: Add tests for compile success. 2022-01-29 18:47:36 -08: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
Unknown W. Brackets
7e578b31f5 Build: Remove old-style android/assets/.
We now read everything directly from assets/, so there's no need for
outdated duplicates.

Also cleanup some outdated files/instructions.
2021-12-11 09:01:15 -08:00
Henrik Rydgård
d4237fd542 Split the atlas into three, well two, but two different cases for the fonts.
Platforms that can use OS fonts don't need font_atlas.zim but they do
need ascii font for debug, so does use asciifont_atlas.zim.
2021-12-10 23:22:08 +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
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
Henrik Rydgård
d754f95814
Merge pull request #14884 from unknownbrackets/debugger-gpustats
Debugger: Add APIs for GPU stats
2021-10-19 19:54:51 +02:00
Unknown W. Brackets
8e15f755e6 UI: Add a sysprop for if the device has a keyboard.
Still left some ifdefs because of System_InputBoxGetString(), but
hopefully we can move away from them.  Some devices (like SDL) may only
optionally have a keyboard, so it's a runtime check.
2021-10-19 10:01:52 -07:00
Unknown W. Brackets
ce3b80dcea Debugger: Add initial GPU stats shell. 2021-10-19 10:01:40 -07:00
Henrik Rydgård
1cd520ae31
Merge pull request #15001 from hrydgard/update-android-target
Update target Android version from 11 to 12. (API 30 to 31).
2021-10-19 09:43:59 +02:00
Henrik Rydgård
ce0a45cf0f Update version to 1.12.3 2021-10-18 20:19:42 +02:00
Henrik Rydgård
e91b8af27a Update version to 1.12.2 2021-10-10 13:03:48 +02:00
Henrik Rydgård
e6857388c7 Add input device debug info to touchscreen test screen
(yeah maybe there's a better place but it's fine).

Also make a slight tweak to the detection order which I don't think
matters much.
2021-10-10 11:50:20 +02:00
Henrik Rydgård
5995fe8e7d
Merge pull request #15003 from unknownbrackets/android-device-id
Android: Prioritize PAD devices
2021-10-10 08:44:27 +02:00
Unknown W. Brackets
460ceadcc3 Android: Prioritize PAD devices. 2021-10-09 16:12:54 -07:00
Henrik Rydgård
2845f173ea Update target Android version from 11 to 12. (API 30 to 31).
We just updated from 10 to 11 which enabled scoped storage, but now
that 12 is final, we might as well target that. Some new APIs are
available that might be useful, like a crash dump
API and more refresh rate control.
2021-10-09 22:05:41 +02:00
Henrik Rydgård
bbe06ace22 Update version for 1.12.1 2021-10-09 10:19:44 +02:00
Henrik Rydgård
21686a6a93 Android: Catch some exceptions 2021-10-07 21:07:35 +02:00
Henrik Rydgård
076ece8507 Update AndroidManifest.xml for 1.12 2021-10-06 20:15:50 +02:00
Unknown W. Brackets
6814f5e7af Debugger: Add web debugger to build packaging. 2021-09-26 12:27:54 -07:00
iota97
7d8dd7c816 Square shape for combo button. Additional shapes (folder_open, warning) too. 2021-09-18 23:28:03 +02:00
Unknown W. Brackets
dab1a3aa3c Android: Fix UI background on scoped storage. 2021-09-13 10:27:42 -07:00
Unknown W. Brackets
db21d0e7fc Android: Avoid crash without ext dir.
This can return null on some older Androids.  See #14821.
2021-09-11 20:12:17 -07:00
Henrik Rydgård
dc520a59d3 Log the duration of directory size computations too 2021-09-11 18:17:14 +02:00
Henrik Rydgård
fcc0337576 Fix the Android recursive size computation and hook it up. 2021-09-11 18:12:30 +02:00
Henrik Rydgård
e842d395fa Add untested function Android_ComputeRecursiveDirectorySize 2021-09-11 18:11:53 +02:00
Henrik Rydgård
c9bcbf326f More shortcut fixes 2021-09-09 00:00:54 +02:00
Henrik Rydgård
273376ab8d Set a couple flags on the ShortcutIntent 2021-09-08 23:43:35 +02:00
Henrik Rydgård
bad0736fa3 Avoid calling into C++ when creating game shortcuts. Use scoped storage-compatible file chooser when possible. 2021-09-08 23:26:01 +02:00
Henrik Rydgård
1d08317766 Valiant attempt to fix queryGameName 2021-09-08 23:25:39 +02:00
Henrik Rydgård
8e9cdf97cf Implement support for new file chooser on Android 11+. 2021-09-08 21:33:50 +02:00
Henrik Rydgård
2a223bb91d No longer need to specify build tools version, gradle now has a default. 2021-09-08 01:16:49 +02:00
Henrik Rydgård
68d9372d9f Update gradle again.
Or at least try to, last time I tried we hit buildbot issues.
2021-08-29 21:20:33 +02:00
Henrik Rydgård
51b6c73a2b Experiment: Remove probably-redundant motionevent class check
Could maybe help #14766
2021-08-28 20:27:41 +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
8f86ddba2a Android: More strict identification of keyboard events. 2021-08-28 14:47:40 +02:00
Henrik Rydgård
527ec8eff2 Fix bug with device IDs on Android, causing the on-screen back button to be misinterpreted. 2021-08-28 14:07:22 +02:00
Henrik Rydgård
c151b7858b Bugfix 2021-08-22 00:12:47 +02:00
Henrik Rydgård
1fc43b4ea2 Android: Remove the old limitation of 3 registered input devices. 2021-08-21 23:44:16 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Henrik Rydgård
81b4c3b376 Auto-pause on app switch. Will be made conditional in the next commit. 2021-08-11 23:31:51 +02:00
Henrik Rydgård
fc91ff3dba Cleanup 2021-08-11 23:31:51 +02:00
Henrik Rydgård
b898e4587f Fix some old bugs where we overrode the device ID to 0 wrongly for back button
The checks for pad were wrong, and also the old path simply passed 0.
2021-08-11 23:31:44 +02:00