Commit Graph

1273 Commits

Author SHA1 Message Date
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
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
821817e6d4 Move the profiler 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
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
Unknown W. Brackets
af307d05e2 Android: Fix include paths. 2020-09-29 22:51:53 -07: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
40ec0d8358 Finish getting rid of basictypes.h 2020-09-29 15:51:51 +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
ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
054acf768c Don't cache time in a variable.
A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
2020-09-24 23:52:43 +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
Unknown W. Brackets
6b8f7294b3 Global: Remove ARM64 define.
Was barely used anymore, and some users are specifying it when it's not
the case, so better to detect consistently.
2020-08-29 08:45:50 -07:00
Henrik Rydgård
9561a4f80a Move MsgHandler into Log.cpp/h 2020-08-16 14:48:54 +02:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
d3d90a11cf Android.mk fix 2020-08-15 22:18:54 +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
80e0f85332 Getting really close to getting rid of base/logging.h now.
Qt buildfix
2020-08-15 19:09:01 +02:00
Henrik Rydgård
6f1915110f Remove base/logging from UI and more 2020-08-15 19:08:54 +02:00
Henrik Rydgård
5117ded378 Remove ELOG/ILOG/WLOG from the Android C++ code (mostly) 2020-08-15 19:08:39 +02: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
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
Henrik Rydgård
d55a6052fa Fix some lint warnings, and a "toast" on graphics init failure (instead of previous crashes) 2020-07-28 20:18:45 +02:00
Henrik Rydgård
73166def93 Android: Reduce asserts during startup. 2020-07-28 19:06:29 +02:00
Henrik Rydgård
aebbff55f1 Some renaming and cleanup in the Android audio code 2020-07-28 14:24:40 +02:00
Henrik Rydgård
b6f6e954a3 Android: Can't call AlertDialog.Builder.setOnDismissListener before JELLYBEAN_MR1 2020-07-28 14:24:40 +02:00
Henrik Rydgård
06d57b1656 GL: Add some paranoid checks. Remove a useless option. 2020-07-28 14:24:36 +02:00
parport0
fd62d30773 Debugger: Add memory.read_*, memory write_* 2020-07-26 01:18:16 +03:00
Henrik Rydgård
31e861132b Implement ANR2ME's solution for miniupnpcstring.h 2020-07-22 10:26:21 +02:00
Henrik Rydgård
597647a2eb Create an Android.mk for miniupnp 2020-07-22 01:19:40 +02:00
Henrik Rydgård
47f0031f57 Add PortManager.cpp to Android.mk 2020-07-22 00:13:52 +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
Henrik Rydgård
c5e0b799d9 Remove category from _assert_msg_ functions. We don't filter these by category anyway.
Fixes the inconsistency where we _assert_ didn't take a category but
_assert_msg_ did.
2020-07-19 20:33:25 +02:00
Henrik Rydgård
1897eed9b4 More buildfixes 2020-07-18 21:43:13 +02:00
Henrik Rydgård
e48cb916dd Buildfix 2020-07-18 20:43:47 +02:00
Henrik Rydgård
697c3b8b36 Cleanup log output on swapchain/surface recreation. 2020-07-18 20:35:39 +02:00
Henrik Rydgård
626d173d10 Split the fault handling from MemMap.cpp to MemFault.cpp. 2020-07-15 12:12:57 +02:00
Henrik Rydgard
fdcf4f06f2 Add x64Analyzer to Android.mk. Some minor cleanup 2020-07-14 09:25:45 +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
Henrik Rydgård
153f00041e
Merge pull request #12979 from unknownbrackets/android-size
Android: Request stable layout and update on focus
2020-07-12 23:25:55 +02:00
Henrik Rydgård
087de849bd Update version for 1.10.3 2020-07-12 13:04:16 +02:00
Henrik Rydgård
9ec2c2baff Update version for 1.10.2 2020-07-06 21:31:26 +02:00
Henrik Rydgård
036191cf34 Remove unnecessary logging of preview formats
See comment in #13094
2020-07-05 22:24:32 +02:00
Henrik Rydgård
ef250e30d7
Merge pull request #13094 from hrydgard/camera-crash-fix
Camera initialization crash fix
2020-07-05 01:52:57 +02:00
Henrik Rydgård
7bb524810d Check that we actually got a preview size. 2020-07-05 01:33:27 +02:00
Henrik Rydgård
b5053b947c CameraHelper: Do a better job of choosing an appropriate preview size.
Add sanity checks so we get a black image instead of crash if we would
still fail.
2020-07-05 01:31:28 +02:00
Henrik Rydgård
7a58c8afbf Add a try/catch to Android camera device listing. Might help #13091 and the issue seen in #13057. 2020-07-04 23:21:05 +02:00
Henrik Rydgård
01eea46455 Update version to 1.10.1 2020-07-02 13:36:33 +02:00
Henrik Rydgård
401df20384 Update version number to 1.10. This required changing the Android version code pattern, but should be ok. 2020-06-27 11:11:04 +02:00
Henrik Rydgård
3d743a5ae7 Buildfixes 2020-06-22 00:01:31 +02:00
Henrik Rydgård
fbc4fa5bca Move the responsibility to register the debugutils callback to the VulkanContext. We only use one anyway. 2020-06-21 23:04:51 +02:00
Henrik Rydgård
6532c345c8 Simplify the validation interface code, bugfixes 2020-06-21 23:04:51 +02:00
Henrik Rydgård
1793b65ec1 Vulkan: Remove support for the old VK_EXT_debug_report extension 2020-06-21 23:04:51 +02:00
Unknown W. Brackets
3cf2e7edca Android: Request stable layout and update on focus.
This seems to keep immersive better when switching apps.
2020-05-25 17:20:59 -07:00
Unknown W. Brackets
e9e0ea9d05 Vulkan: Cleanup some duplicate code. 2020-05-21 08:55:36 -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
Unknown W. Brackets
54896432df Android: Oops, fix start with space in filename. 2020-05-12 21:21:22 -07:00
Unknown W. Brackets
b1ae90dd03 Global: Add some defs for MSVC highlighting.
Just want this file not to be a sea of errors.  Before it said ifs etc.
were wrong too, because it didn't think things were functions.
2020-05-12 21:20:50 -07:00
Unknown W. Brackets
ccc7ae54af Android: Avoid multiple resizes in a row.
This was sometimes happening when ui callbacks etc. would trigger in
certain patterns of using the app.  Might have been related to sizing
problems.

Delaying the resize by 10ms when the surface is unchanged seems okay.
2020-05-09 14:47:48 -07:00
Unknown W. Brackets
03fc86a147 UI: Return to game settings after restart.
This is more convenient.  Also restarts the game if needed.

Added a way to pass args to Android here as well, and fixed displaying an
error if the shortcut file doesn't exist on Android (like if you deleted
it after creating the shortcut.)
2020-05-09 13:53:42 -07:00
Unknown W. Brackets
f60d80b24e Android: Move a bit more size handling. 2020-05-09 11:26:06 -07:00
Unknown W. Brackets
040ba2b3ff Android: Reassert sustained perf when going ingame. 2020-05-09 11:10:48 -07:00
Unknown W. Brackets
581a288852 Android: Refactor size maintenance to own class. 2020-05-09 11:10:04 -07:00
Christian Weiske
34d629ff79 Make PPSSPP visible in OUYA launcher
Reference: https://github.com/ouya/docs/blob/master/setup.md
2020-04-27 22:48:27 +02: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
Florin9doi
4640d3981c Update <Share> dialog on Android 10 2020-04-25 13:19:41 +03:00
Henrik Rydgård
90c1a79b9f android: include path fix 2020-04-02 13:04:38 +02:00
Henrik Rydgård
80ae2846d6 Android: Change the display length for "toast" message to Toast.LENGTH_LONG 2020-04-02 01:04:17 +02:00
Henrik Rydgård
e8d6a605eb
Merge pull request #12748 from orbea/libpng
cmake: Improve building with the system libpng.
2020-04-01 12:57:52 +02:00
Henrik Rydgård
7dfe8959b3 Fix landscape/reverse landscape cutout padding issue, see #12779 2020-03-31 15:52:32 +02:00
Henrik Rydgård
3838a1c94f Support drawing around notches on Android displays. Fixes #12261 2020-03-31 00:47:01 +02:00
Henrik Rydgård
a2da6ceb47 Target Android SDK 29.
Includes a nasty SDK bug workaround.
2020-03-30 22:56:24 +02:00
Unknown W. Brackets
56a1b6d03a Android: Reassert immersive after input dialog.
See #12732.
2020-03-22 18:55:22 -07:00
orbea
c8c7889f0f cmake: Improve building with the system libpng.
This also now requires at least libpng16 instead of libpng17.

v2: Require libpng17 on arm platforms.
v3: Fix the android and windows travis builds.
2020-03-22 18:43:51 -07:00
Unknown W. Brackets
7d00cefd35 Android: Fix dismiss of OSK dialog. 2020-03-21 11:06:40 -07:00
Unknown W. Brackets
51b94a9c9c Core: Quiet some warnings. 2020-03-10 22:19:59 -07:00
Henrik Rydgård
4501045224
Merge pull request #12691 from unknownbrackets/inputbox
Android: Process input prompts more clearly
2020-03-09 20:28:25 +01:00
Unknown W. Brackets
f46231f2f4 Android: Avoid translation conflict in translation.
Using a magic pattern isn't ideal, but the user input can safely have
these characters without issue.  It only affects the input title.
2020-03-08 20:45:01 -07:00
Unknown W. Brackets
a3e12f4242 Android: Process input prompts more clearly.
This way, the processing is generally inline or explicitly a callback.
There's also less parsing issues since all the parsing is centralized.
2020-03-08 20:45:01 -07:00
Unknown W. Brackets
fc8306dde1 Android: Ensure we forget the shortcut on next run.
Prevents an issue where we would use the shortcut param again when
starting the app directly.
2020-03-08 14:58:42 -07:00
Henrik Rydgård
8f2a52ccab Merge branch 'rechat' of https://github.com/ANR2ME/ppsspp into ANR2ME-rechat 2020-03-08 14:28:10 +01:00
Henrik Rydgård
db4511c9f5 Also try to fix the legacy Android build. 2020-03-03 23:26:09 +01:00
Unknown W. Brackets
051a84e9bd GPU: Restart when changing inflight frames setting.
We need to keep the push and pull in step, so changing at runtime is
messy.
2020-03-02 19:21:15 -08:00
ANR2ME
93b59afed5 Fix building errors 2020-03-03 00:23:12 +07:00
ANR2ME
142e60974c Merge branch 'rechat' of https://github.com/adenovan/amultios-ppsspp into rechat 2020-03-02 22:25:18 +07:00
Henrik Rydgård
45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Henrik Rydgård
7e9578e49d Get rid of atlas tables. 2020-03-01 12:04:51 +01:00
Henrik Rydgård
2ec82951a0
Merge pull request #12659 from unknownbrackets/vsync
Support vsync in all hardware backends, support runtime update
2020-03-01 09:52:14 +01:00
Unknown W. Brackets
2a3fd05651 Vulkan: Present using FIFO for vsync.
This allows the setting to be changed at runtime in Vulkan too.

Should help #10105.
2020-02-29 22:48:59 -08:00
Henrik Rydgård
aea3cf74f0 Remove support for "lowmem" UI atlas. Had to regenerate unfortunately. 2020-02-29 19:00:52 +01:00
iota97
592d6f902e Show region on game selection screen 2020-02-23 12:00:26 +01:00
Florin9doi
58b04ef77b QT Api for Camera (Linux/macOS)
Allow the use of different resolutions (win/android/iOS)
2020-02-10 08:47:55 +02:00
李通洲
55bb58e13e
NativeApp: add System_GetPropertyFloat all the places 2020-02-04 09:20:34 +08:00
Florin9doi
50d7d64eaa Add new listeners in addition to those present which are deprecated 2020-01-27 09:49:43 +02:00
Florin9doi
83277680da Location: add HDOP; change speed to km/h; change altitude from geoid to sea level
The speed is now close to the value obtained on original hardware but
the altitude on original hardawre is too imprecise to tell if we're good
2020-01-26 14:19:45 +02:00
Florin9doi
2b57d2365f Android satellites info 2020-01-26 09:22:24 +02:00
Florin9doi
5fbf2d7713 Add camera/location support for iOS
Add front camera support for Android
Allow to change the active camera in-game
2020-01-25 16:54:45 +02:00
Henrik Rydgård
dd1de41db7 Revert "Android EGL config: Always require 8888, stencil if version >= ICS"
This reverts commit 015c314fb1.

Helps #11922
2020-01-18 18:50:09 +01:00
Florin9doi
09e32223c2 Add camera support for linux (V4L2) 2020-01-16 23:25:34 +02:00
Henrik Rydgård
970adfbcc9 Isolate most of the softgpu specialization code to RasterizerRectangle.
See comments.
2019-10-28 09:33:30 +01:00
Henrik Rydgård
9b8533c936 Revert "Remove Google Cardboard support. Fixes #11668"
This reverts commit e284d9f00d.
2019-10-25 16:03:00 +02:00
Unknown W. Brackets
b75291375a Android: Setup UI callback earlier if possible. 2019-10-06 16:11:15 -07:00
Henrik Rydgård
bf1777f7d3 1.9.3 commit 2019-10-06 15:02:44 +02:00
Henrik Rydgård
f65258fc60 Android: Finally fix our display sizing problems for good, hopefully. 2019-10-06 13:25:44 +02:00
Henrik Rydgård
d5f2d74257 Android: Preparation for future cutout (notch) support 2019-10-06 13:25:35 +02:00
Henrik Rydgård
ccda27edcf Increase max aspect to 2.4. Fixes #12349 2019-10-06 13:22:14 +02:00
Henrik Rydgård
f342d8d856 Logging improvements 2019-10-06 13:21:57 +02:00
Unknown W. Brackets
d137f35c64 Android: Setup UI callback before settings change.
We need to receive a notification of our own change, or the initial flag
will be out of sync.  Also adds it in the javaGL path.
2019-10-05 16:21:13 -07:00
Henrik Rydgård
0698944752 Fixes 2019-10-06 00:20:49 +02:00
Henrik Rydgård
c023cd7e20 Make use of OnSystemUiVisibilityChangeListener to check whether navbar is hidden. Affects DPI calculations.
Also recalculate all dp parameters after either display or buffer size changed.
2019-10-05 23:30:50 +02:00
Henrik Rydgård
0b9353b1dc Touchscreen: Apply weihouya's fix, add a touchscreen test screen. See #12381. 2019-10-02 22:05:34 +02:00
Henrik Rydgård
382d5a6b95 Blind attempt at fixing an OpenSL ES crash 2019-09-27 23:08:35 +02:00
Henrik Rydgård
a484fab919 Symbolic commit for 1.9.2. Making another submission attempt to Google play so have to increment the version. 2019-09-26 18:27:15 +02:00
Henrik Rydgård
97194ee642 Symbolic commit for 1.9.1.
This one is only to get around a Google Play issue.
2019-09-25 22:47:46 +02:00
Henrik Rydgård
4f07db87d8 Symbolic 1.9.0 commit 2019-09-25 20:21:46 +02:00
Henrik Rydgård
f3b84fd8a4 Android: Fix crashes on Android versions < 11 due to mCameraHelper being null 2019-09-24 23:44:14 +02:00
Henrik Rydgård
9d65ff8873 Silence a few warnings. 2019-09-24 23:10:18 +02:00
Henrik Rydgård
5a53570b38 Case fix for previous commit 2019-09-19 12:39:03 +02:00
Henrik Rydgård
b5af797ca6 Hacky workaround for #12339 (Amazon FireStick 4k issue) 2019-09-19 10:39:12 +02:00
Henrik Rydgård
f9bf1f96bd Android audio: Turns out the initial queue operation queued up too little data anyway (sizeof on dynamic buffer.. sigh).
Anyway like I said, none of this really seems to matter.
2019-09-17 23:41:47 +02:00
Henrik Rydgård
e69b71b58f Remove some legacy 2019-09-17 23:26:42 +02:00
Henrik Rydgård
54570fdfb4 Android OpenSL: Fix bug where we should have enqueued two buffers on startup.
I don't actually think this matters much though. Seems to make
absolutely no difference on any of my devices, but you never know.
2019-09-17 19:44:39 +02:00
Henrik Rydgård
309d6562d5 We had an old fallback to the EGL GL loop in the Vulkan init. Remove it. 2019-09-17 10:52:02 +02:00
Henrik Rydgård
57c6ab7206 Android: Remove the popup message when falling back to OpenGL. Fixes #12284 . 2019-09-02 20:02:40 +02:00
Henrik Rydgård
7610220b30 Vulkan: Prepare for adding a second init path for VulkanContext.
Will eventually be used for libretro.
2019-09-01 22:21:19 +02:00
Florin9doi
e1164cfe4f [Android] Updates for camera
-rotate camera frames to follow display orientation
-release camera resources when a game is closed
-release camera resources when the activity is paused
2019-08-24 22:54:45 +03:00
Florin9doi
187dfb2816 Update PowerSaveModeReceiver (again) 2019-08-20 11:32:39 +03:00
Unknown W. Brackets
9f694afcc3
Merge pull request #12237 from hrydgard/vulkan-device-name-blacklist
Vulkan: Simple blacklist of device names that are not allowed to check for Vulkan
2019-08-13 19:03:20 -07:00
Florin9doi
18e7877526 Update PowerSaveModeReceiver 2019-08-13 21:00:36 +03:00
Henrik Rydgård
caa8f1a433 Android: NativeApp.Init: Log the device name. 2019-08-13 10:15:39 +02:00
Henrik Rydgård
dc9e794867
Merge pull request #12213 from Florin9doi/sceUsbMic
sceUsbMic
2019-08-04 18:23:49 +02:00
Henrik Rydgård
96a15cf525 Fix the indirect postprocessing path. Fixes #12133 (but see the issue for a secondary bug). 2019-08-04 18:01:36 +02:00
Florin9doi
99c4a00dae sceUsbMic 2019-08-03 21:09:33 +03:00
Henrik Rydgård
e284d9f00d Remove Google Cardboard support. Fixes #11668 2019-07-01 14:47:42 +02:00
Henrik Rydgård
2ecec84c84
Merge pull request #12127 from unknownbrackets/ge-record
Cleanup GE dump playback
2019-06-24 12:28:32 +02:00
Henrik Rydgård
aff429ee09 For the non-vulkan backends, zero display rotation settings just to be sure. 2019-06-24 10:30:32 +02:00
Unknown W. Brackets
93069756e6 GE Debugger: Split playback into a separate file. 2019-06-23 18:49:27 -07:00
Henrik Rydgård
2ed535af29 Update SPIRV-Cross 2019-06-20 00:41:47 +02:00
Silent
bb2ba8086b
Improved Show in Folder:
- Not spawning cmd.exe anymore, rather using the same way Chromium does to spawn a shell window with a file focused
- Hid a nonfunctional "Show In Folder" button for UWP builds
2019-05-23 19:59:08 +02:00
Robert Carr
c01186d35c Android: Display measurement fixes
No longer set display parameters on surface create - surface is resized
after create to match screen dimensions. Fixes offset issue when started
in immersive mode.

Also update measurements on multi-window change, and use getMetrics when
in multi-window mode as getRealMetrics returns full screen size, not
window size.
2019-05-12 23:24:46 +10:00
Unknown W. Brackets
812e84e4a7 Android: Allow less common sample rates.
Just assume anything we received is a valid one.
2019-03-23 12:12:13 -07:00
Henrik Rydgård
e66f019ffa Update the version number in AndroidManifest.xml (pretty sure we don't really still need to do this, but whatever). 2019-03-14 09:00:50 +01:00
Henrik Rydgård
aba375e2f7 Remove old resolution hackery that didn't fix anything. 2019-02-28 14:16:20 +01:00
Henrik Rydgård
3e1197f5f3 Android: Add some logging 2019-02-10 20:13:13 +01:00
Henrik Rydgard
478b0b4278 Further improve VK extension loading. Switch to VK_EXT_debug_utils (but fallback to VK_EXT_debug_report if only that is available). 2019-02-05 21:31:38 +01:00
Henrik Rydgard
3fd216ad3a Better handling of swap chain size, add PowerVR hack. Fixes #11743 2019-01-25 20:19:55 +01:00
Henrik Rydgård
46585a5da9 Additional logging 2019-01-23 18:34:25 +01:00
Henrik Rydgård
b86c96261a Update to latest gradle, update lang submodule. 2019-01-15 23:35:59 +01:00
Unknown W. Brackets
adeca2c3ba GLES: Move some vendor bug checks to Draw. 2018-12-23 20:27:22 -08:00
Henrik Rydgård
015c314fb1 Android EGL config: Always require 8888, stencil if version >= ICS 2018-12-19 23:05:48 +01:00
Henrik Rydgård
c8f86def97 Android EGL: Add logging of depth and stencil bits 2018-12-19 22:52:44 +01:00
Henrik Rydgård
04646fe678 Build system updates 2018-12-19 14:01:19 +01:00
Henrik Rydgård
683a4e0fb2
Merge pull request #11676 from unknownbrackets/gles-depth
WIP - GLES: Download depth values via shader
2018-12-19 09:58:38 +01:00
Unknown W. Brackets
e49568f67d GLES: Move depth packing code to dedicated file. 2018-12-16 17:34:16 -08:00
Unknown W. Brackets
ba7c8bee5b Merge remote-tracking branch 'upstream/1.7-hotfixes' into tag 2018-12-10 23:13:32 -08:00
Henrik Rydgård
46f11fbfed Just make the optimized (non-release) android build debuggable. 2018-12-09 21:37:03 +01:00
Henrik Rydgård
74d87fa2b4 Update to 1.7.5, update lang 2018-12-04 14:43:39 +01:00
Henrik Rydgård
04b4dedfca Have to increment the build number due to a mistake, so make it 1.7.4 2018-11-23 16:17:54 +01:00
Henrik Rydgård
a59019a43a Update readme for 1.7.3 2018-11-23 16:05:31 +01:00
Henrik Rydgård
2a65f224e6 1.7.3 2018-11-23 13:29:42 +01:00
Henrik Rydgård
fedc72eff5 Revert "Android: Fix Vulkan immersive startup."
This reverts commit 5a5483ca93.
2018-11-23 09:51:16 +01:00
Henrik Rydgård
429a1fce01 Assert even in release mode if preset shaders fail to compile. This is just to help track down a Play crash. 2018-11-21 18:14:26 +01:00
Henrik Rydgård
f2244f789e VK: Add extra safety checks around font texture creation. Motivated by some Play crashes. 2018-11-21 17:34:54 +01:00
Henrik Rydgård
7af93d08cf VK: Add extra safety checks around font texture creation. Motivated by some Play crashes. 2018-11-21 17:33:30 +01:00
Florin9doi
8694c33119 F-droid lite version - create stubs for Moga Controller 2018-11-07 14:02:16 +02:00
Henrik Rydgård
fdb07323e0 Update AndroidManifest.xml to 1.7.1 2018-11-01 14:51:14 +01:00
Henrik Rydgård
caa506bf2a Update AndroidManifest.xml for 1.7.0 2018-10-27 11:29:42 +02:00
Henrik Rydgård
61e38b4539 On older Android versions, densityDpi can't change and is thus not present in the Configuration objects.
Fixes crash opening/closing the Xperia Play (and probably lots of others).
2018-10-27 10:25:19 +02:00
Henrik Rydgård
3c3aaf5bc7 Just fix some gradle build warnings. It's using platform 16 anyway (but somehow it all still works back on -9) 2018-10-25 01:20:41 +02:00
Henrik Rydgård
a0b019d473
Merge pull request #11455 from unknownbrackets/android-resize
Android: Fix Vulkan immersive startup
2018-10-08 07:52:47 +02:00
Unknown W. Brackets
5a5483ca93 Android: Fix Vulkan immersive startup.
Would commonly not actually start with immersive resolution due to race
conditions in setting the resolution and ui visibility.
2018-10-07 16:15:23 -07:00
Unknown W. Brackets
9cb471e5bd Android: Avoid race on surface destroyed.
Avoids a segfault in this scenario.
2018-10-07 16:13:34 -07:00
Unknown W. Brackets
d5d572d38e Android: Consistently use version constants. 2018-10-07 15:24:04 -07:00
Unknown W. Brackets
8a74e6f7b2
Merge pull request #11447 from hrydgard/android-gl-shutdown-fixes
Avoid calling any GL calls during shutdown on Android. Should help #11063
2018-10-06 12:52:43 -07:00
Henrik Rydgård
9e165ed00f
Merge pull request #11449 from Florin9doi/REMOVE_DUP
Remove duplicate library; use the existing one
2018-10-06 21:39:20 +02:00
Henrik Rydgård
a3a94bdd33 Avoid calling any GL calls during shutdown on Android. Should help #11063
The context is already lost and we're really running shutdown when the process is woken
up again. Additionally, orderly shutdown through the button doesn't happen
on the render thread so remove a couple of asserts that are wrong.
2018-10-06 21:31:52 +02:00
Florin9doi
dc99d781d7 Use androidgitversion version 0.4.5 2018-10-06 20:17:08 +03:00
Florin9doi
5c52777699 Remove duplicate library; use the existing one 2018-10-06 20:01:28 +03:00
Henrik Rydgård
65d8b5fc9b Android build: Enable AAPT2 2018-10-05 22:57:27 +02:00
Henrik Rydgård
56f9895bbc Remove redundant minSdkVersion and targetSdkVersion settings from AndroidManifest.xml 2018-09-30 21:53:49 +02:00
Henrik Rydgård
2e8e28f789
Merge pull request #11426 from Florin9doi/ANDROID_DEPS
Android: Update deps; Cannot reproduce #11420
2018-09-29 09:35:56 +02:00
Unknown W. Brackets
bd678d4f4b
Merge pull request #11428 from Florin9doi/REMOVE_ECLIPSE_FILES
Android: Remove obsolete files: eclipse
2018-09-27 20:33:33 -07:00
Florin9doi
1a7e61f4a9 Android: Update deps; Cannot reproduce #11420 2018-09-28 00:18:32 +03:00
Florin9doi
02f4094c2c Android: Remove obsolete files: eclipse 2018-09-28 00:04:35 +03:00
Florin9doi
9e3ca46f55 Reduce the number of build variants 2018-09-27 22:33:00 +03:00
Unknown W. Brackets
653129c528 Debugger: Add an event for GE dump recording. 2018-09-01 10:59:37 -07:00
Unknown W. Brackets
a4c0640f01 GE Debugger: Factor out host calls some.
Moving more of this to cross platform for the web debugger.
2018-09-01 08:32:03 -07:00
Henrik Rydgård
8e6a1bc849 Set a minimum of 1x1 for Android text bitmap measurement.
Should fix some crashes seen on Google Play
2018-08-30 19:49:33 +02:00