Commit Graph

1056 Commits

Author SHA1 Message Date
Henrik Rydgård
c60c8ed68a Debug visualization for the Vulkan memory allocator. Shows some interesting behaviour. 2018-01-29 19:38:10 +01:00
Henrik Rydgård
19ab367591 Fix some accidental extra-indentation 2018-01-28 19:26:42 +01:00
Henrik Rydgård
bd3a681fd3 Enough JNI/threading hackery to get it to run on Android! Broken readbacks make it crash alot though. 2018-01-28 17:30:33 +01:00
Henrik Rydgård
7abb8702ce Work towards threaded GL on Android. Now TextDrawer barfs on wrong JNI context. 2018-01-28 17:29:27 +01:00
Henrik Rydgård
fdca06d208 More work on shutdown, still hanging though. 2018-01-27 15:10:17 +01:00
Henrik Rydgård
062608ad78 Start moving the framebuffer stuff over to the render manager 2018-01-27 15:10:17 +01:00
Henrik Rydgård
5d3c1e7871 Additional header cleanup 2018-01-20 21:55:25 +01:00
Henrik Rydgård
133bef575a Split Android graphics context implementations into their own files. 2018-01-20 21:47:16 +01:00
Henrik Rydgård
1a97f62dc9 Fix running the CPU test from the UI. 2018-01-04 18:10:41 +01:00
Unknown W. Brackets
766b40aad8 GPU: Reset GPUBackend on graphics init.
This way, when using a port that doesn't support Vulkan, it doesn't just
silently use upside down GL, etc.
2017-12-26 16:02:55 -08:00
Unknown W. Brackets
d6da758ed3 GPU: Remove duplicate BACKEND constants. 2017-12-26 15:55:24 -08:00
Henrik Rydgård
2250ef799c Avoid including platform-specific headers in VulkanContext.h 2017-12-18 12:54:25 +01:00
Henrik Rydgård
6f0b382d9e Move vulkan debug callback out from WindowsVulkanContext into a file that can be shared with other platforms later. 2017-12-13 19:29:42 +01:00
Unknown W. Brackets
2943bbdbfd UI: Cancel loaders on shutdown.
Improves backend switching / locking / etc. performance when the recent
list has games that aren't currently available.

Also, remove unnecessary duplicate gameinfo flush on EGL loop shutdown.
Already happens in NativeShutdownGraphics().
2017-12-09 16:48:38 -08:00
Henrik Rydgård
58fd674bbf Try to fix build with the old Android build system too... 2017-12-08 10:25:42 +01:00
Henrik Rydgård
1076e358e0 Also update Application.mk for the old build system. 2017-12-07 23:47:54 +01:00
Henrik Rydgård
18f93342f3 From NDK 16, libc++ is out of beta and gnustl will be deprecated soon, so switch.
No apparent issues, even on Nexus One with Android 2.3.
2017-12-07 23:45:36 +01:00
Henrik Rydgård
7d0fc9ce65 Rework GL lost-device to work more like Vulkan. Gets rid of gl_lost manager etc. 2017-12-07 15:05:59 +01:00
Henrik Rydgård
a1e74d0d4f v1.5.4 2017-12-05 14:51:51 +01:00
Henrik Rydgård
ab95dcae91
Merge pull request #10249 from unknownbrackets/minor
More minor cleanups
2017-12-04 09:49:44 +01:00
Unknown W. Brackets
9c046d7518 Android: Fix race condition on lock/unlock.
This might be related to the recreate from bad orientation - sometimes, it
was pause/resuming pretty quick, which would get stuck waiting for a join.
2017-12-03 20:32:17 -08:00
Unknown W. Brackets
2e87a652a4 Android: Reset immersive after native dialogs.
Not sure why it only happens on OpenGL, but it implies we need to reset
the state after the alert is dismissed.  Fixes #10177.
2017-12-03 19:22:04 -08:00
Unknown W. Brackets
79f03a0767 Android: Fix crash on shutdown/restart.
The text drawing textures needed to be deleted before shutting down their
allocator.  Fixes #10244.
2017-12-03 14:39:00 -08:00
Unknown W. Brackets
04c61ea429 Android: Render text with newlines properly.
Fixes the Android part of #10217.

Not sure if the line height calculation is ideal but it's visually fine.
2017-12-02 16:05:35 -08:00
Henrik Rydgård
341611e16a Update AndroidManifest.xml to 1.5.3.0, just in case anyone is still using the old build system where this isn't automatic. 2017-12-02 12:10:48 +01:00
Henrik Rydgård
5fbbb3e115 Try a silly workaround for an otherwise unexplainable crash seen in Google Play Console 2017-12-01 19:56:53 +01:00
Henrik Rydgård
04515946e6 Comment, minor cleanup 2017-12-01 18:47:01 +01:00
Henrik Rydgård
b0c42f7081 Fix a java exception around the GPS stuff 2017-11-30 00:59:54 +01:00
Henrik Rydgård
51a6c67502 Crash in a more appropriate place if missing a drawcontext (happens on really weak devices only) 2017-11-29 19:29:53 +01:00
Henrik Rydgård
6ea669368c Crash reports from 5% rollout of 1.5: Make some asserts dbg_asserts for now, try to fix an issue with framebuffers when postproc is enabled. 2017-11-29 18:53:52 +01:00
Henrik Rydgård
e9303fd1cd Try to get androidgitversion to behave. It thinks the build is dirty when it's not. 2017-11-29 15:44:16 +01:00
Henrik Rydgård
bdbe2549d0 Update AndroidManifest.xml to 1.5.0 2017-11-29 12:19:11 +01:00
Henrik Rydgård
234f30a372 Minor error checking improvement 2017-11-26 14:52:26 +01:00
Henrik Rydgård
a763fe4b95 Android: Call setDisplayParameters early with the display w/h in pixels. Without this, was defaulting to 1x rendering on S8 which is silly. 2017-11-26 14:49:00 +01:00
Henrik Rydgård
495532f0ff Fix text width measurement on Android when there are spaces at the start/end of the string (bounds doesn't handle that). Fixes 10174 2017-11-22 22:45:38 +01:00
Henrik Rydgård
ee759d83e3 Oops, android buildfix 2017-11-22 14:42:01 +01:00
Henrik Rydgård
b1fce1c61a Android: Fix #9697 where we'd hang if we lacked permission and got a filename as a command. 2017-11-21 13:55:14 +01:00
Henrik Rydgård
27a60f5e58 Fix message asserts on Android. Add more of them to check things in Vulkan code. 2017-11-20 12:11:47 +01:00
Henrik Rydgård
a0414a6176
Merge pull request #10145 from hrydgard/shortcut-fix
Android: When creating shortcuts, put the file path in data, not in extras.
2017-11-16 15:01:19 +01:00
Henrik Rydgård
5675e8a816 Minor cleanup, and more terrifying orientation hackery 2017-11-16 15:00:27 +01:00
Henrik Rydgård
1fb7560a14 Android: When creating shortcuts, put the file path in data, not in Extras.
Actually, let's keep extras around now for very limited backwards compatibility but check data first.
2017-11-16 14:45:47 +01:00
Henrik Rydgård
a1e593b6ba Fix the "vulkan not found" message on android. Fixes #10034 2017-11-16 13:45:15 +01:00
Henrik Rydgård
53a351c29d Workaround orientation bug in Android when unlocking the screen.
Or I'm doing something wrong somewhere...

Also kill off "Auto" orientation. It's just a pain.

Fixes #10128
2017-11-16 12:33:50 +01:00
Unknown W. Brackets
b1554ef061 Vulkan: Cut down on asserts during init.
In case something is horribly wrong, or our desired settings aren't
compatible, let's try to stumble our way out.

More things can fail, but the goal is to detect failure or at least be
able to render UI settings to swap out of Vulkan.
2017-11-12 21:56:55 -08:00
Henrik Rydgård
b8dc4d1fb8 Buildfixes for Android 2017-11-12 16:55:36 +01:00
Henrik Rydgård
e6681a443d Android: Cleaner way to avoid double-resizing the backbuffer. 2017-11-11 11:18:38 +01:00
Henrik Rydgård
08041d8775 Fix blackscreen when resolution is set to auto. Fixes #10081 2017-11-10 22:33:00 +01:00
Henrik Rydgård
c32f505b58 Fix race condition. 2017-11-10 15:45:14 +01:00
Henrik Rydgård
1c76d28843 Avoid double-initializing the Vulkan backbuffer on startup. 2017-11-10 13:13:56 +01:00
Henrik Rydgård
ee768ca949 Logging improvements, avoid resetting the Android text drawer unnecessarily 2017-11-10 13:02:24 +01:00
Henrik Rydgård
3cc5d8f40a More minor vulkan fixes and cleanups. Don't actually call "Resized" if the size stays the same. 2017-11-10 12:41:06 +01:00
Henrik Rydgård
0a2b20bf59 More logging and tweaking 2017-11-10 12:09:42 +01:00
Henrik Rydgård
6eb58b1252 Keep the draw context up to date in a bunch of places. More logging. 2017-11-09 16:28:22 +01:00
Henrik Rydgård
ec504756e0 Vulkan: Improve init/shutdown logging on Android. Fix a bug where we'd not run InitDeviceObjects on GPU_Vulkan sometimes. 2017-11-09 16:02:05 +01:00
Henrik Rydgård
4e04780adc Upgrade glslang to a fresh version (used to compile Vulkan shaders). Might help #10065 ?) 2017-11-09 13:36:18 +01:00
Henrik Rydgård
c6c90d4cbc Improve Vulkan device selection mechanism to prefer discrete GPUs 2017-11-09 12:21:20 +01:00
Henrik Rydgård
c855ab66d5 Cleanup gradle output. 2017-11-09 11:22:38 +01:00
Henrik Rydgård
4970668b99 Try harder to free up memory from the Android native font rendering system. Might help #10069 2017-11-07 12:31:03 +01:00
Unknown W. Brackets
ebe9dcafde Vulkan: Wait for queue idle in DestroyBackbuffers.
Otherwise it's only done after destroying Draw, so no need to mutex.
2017-11-05 08:44:14 -08:00
Henrik Rydgård
5018e400f2 Remove some code duplication 2017-11-01 14:51:15 +01:00
Henrik Rydgård
ca7a2d06ca Vulkan: Implement stencil upload (for Star Ocean). 2017-11-01 14:18:39 +01:00
Henrik Rydgård
fa81dd9c44 Forgot to update the Android target version here to 26. 2017-10-27 01:26:27 +02:00
Henrik Rydgård
1c5bd0f8dc Move the VulkanRenderManager stuff to thin3d, fits in better there. 2017-10-26 10:56:59 +02:00
Henrik Rydgård
a33daa4985 Update gradle files to Android Studio 3.0 defaults. 2017-10-26 10:48:55 +02:00
Henrik Rydgård
2c8fb0fbd1 Can't use the camera stuff on Android versions before 11. Fixes #10029. 2017-10-24 15:40:04 +02:00
Henrik Rydgård
b9ba525de1 Don't call functions in asserts, they get compiled out in release... 2017-10-20 14:45:00 +02:00
Henrik Rydgård
017d3da067 Allow D3D9 context creation to bail if shader compilation fails (D3D9 runtime not installed).
Fixes an issue where after switching to D3D9 on a PC without the D3D9 runtime, it's impossible to start PPSSPP anymore.
2017-10-20 11:53:07 +02:00
Carlos Estrague / Mrc_munir
efe251dc10 Re-enable gradle x86_64 android build
It should work now I've tried it with android-x86 Images and  with emulator android sdk avd image
2017-10-16 01:14:15 +02:00
Henrik Rydgård
271a3bb7d3 Fix the build on the buildbot by avoiding fancy new Java features. Fixes #9979 2017-09-27 10:29:56 +02:00
Unknown W. Brackets
7db9dfb50b Headless: Reduce some duplication.
We can share the screenshot code for SDL.
2017-09-20 09:25:28 -07:00
Henrik Rydgård
42cb559a8d Merge pull request #9927 from Florin9doi/master
Integrate sceUsbGps and sceUsbCam with Android
2017-08-31 09:47:25 +02:00
Henrik Rydgård
55e9807a53 Separate VulkanContext::CreateDevice into ChooseDevice and CreateDevice to give an opportunity to enable extensions. 2017-08-28 14:12:56 +02:00
Florin9doi
892bc8617d Integrate sceUsbGps and sceUsbCam with Android 2017-08-27 17:19:11 +03:00
Henrik Rydgård
560eaa5390 Vulkan: Add code (disabled) to be able to run with more in-flight frames. Only improves performance marginally and needs more testing. 2017-08-17 17:57:37 +02:00
Henrik Rydgård
d65547edb5 Crashfix on older devices 2017-08-17 17:49:36 +02:00
Henrik Rydgård
95d3a8edbe Spacing 2017-08-16 10:24:12 +02:00
Henrik Rydgård
d94351ef90 Initial work on supporting sustained perf mode 2017-08-15 16:41:13 +02:00
Ade Novan
5382efd44e Update ab.cmd 2017-08-09 06:04:34 +08:00
Gde Made Novan Priambhada
f236ea1fc9 group chat options and set enabled ptr 2017-08-09 04:19:28 +08:00
Gde Made Novan Priambhada
4420719a86 Bug fix 2017-08-09 03:50:31 +08:00
Henrik Rydgård
edf0606bf7 Disable the x86-64 Android build until it can be debugged. Works around #9814 (all such devices can run the x86 build instead) 2017-08-08 16:02:29 +02:00
Henrik Rydgård
2de5e2b5c0 Android: Fix bug where the surface size could be wrong after task switching and automatic recreation 2017-08-08 13:41:45 +02:00
Henrik Rydgård
7b4cf8516b Make some decls private 2017-08-08 13:30:34 +02:00
Henrik Rydgård
3be5682247 Disable codepath that requires vibration permission which we don't have 2017-08-08 13:22:36 +02:00
Henrik Rydgård
7a3a620ff2 Always shut down audio, regardless of why the task is being destroyed. Might help #9771 2017-08-08 13:03:23 +02:00
Henrik Rydgård
cefb57d778 Misc cleanup 2017-08-08 13:01:09 +02:00
Henrik Rydgård
5627d82891 Format string fixes in DPI logging 2017-08-08 11:40:56 +02:00
Henrik Rydgård
e268da823a Android: Add some missing codepaths when using Vulkan, might fix audio/controller issues on task switching 2017-08-08 11:31:13 +02:00
Henrik Rydgård
6ee8cb5f2e Review fixes, thanks unknown 2017-08-08 10:14:20 +02:00
Henrik Rydgård
b87ae5d7db Consolidate DPI/sizing handling on Android 2017-08-07 15:55:19 +02:00
Henrik Rydgård
43de028209 updateDisplayMetrics was a poorly defined method, removed it. 2017-08-07 15:07:55 +02:00
Henrik Rydgård
ae64519f05 More splitting of dpi vars 2017-08-07 15:03:07 +02:00
Henrik Rydgård
eaceef9373 Re-enable resizing the window on Android, change onConfigurationChanged flags 2017-08-07 15:02:18 +02:00
Henrik Rydgård
f4cf501cf6 Separate X and Y dpi_scale 2017-08-07 13:37:01 +02:00
Henrik Rydgård
11c75476f7 Turn g_dpi into a float, because why not 2017-08-07 12:16:08 +02:00
Henrik Rydgård
d44309405a Android: Fix scaling issue on configuration changes. Why was that division by 2 there??
Must have been some old left-over debug code.
2017-08-07 11:49:09 +02:00
Henrik Rydgård
ea047fa43a Android: Turn off resizability until we can properly fix the sizing logic. Helps #9866 2017-08-06 20:37:36 +02:00
Henrik Rydgård
3ce8680d9a Make the OpenSL wrapper an object too, to make sure it's always initialized the same. 2017-08-01 15:42:47 +02:00
Henrik Rydgård
a453dc8123 Make a state object for the Android audio wrapper 2017-08-01 15:28:45 +02:00
Ade Novan
18525ea523 Android Chat Support 2017-07-02 01:28:38 +08:00
Unknown W. Brackets
21fbacd993 Build: Include Roboto in buildscripts. 2017-06-06 23:28:43 -07:00
Henrik Rydgård
751c61bd69 We are already shipping Roboto-Condensed.ttf, let's use it 2017-06-06 15:45:43 +02:00
Henrik Rydgård
3a640ff8aa Address comments, make things closer to the Win32 code. Things work better. 2017-06-06 11:30:20 +02:00
Henrik Rydgård
0af19719cb Fix vertical positioning, eliminate double-& 2017-06-05 23:45:58 +02:00
Henrik Rydgård
0d3d642371 It works! 2017-06-05 23:09:12 +02:00
Henrik Rydgård
0bf92a4fa2 Font rendering code runs but it sure ain't right 2017-06-05 23:09:11 +02:00
Henrik Rydgård
d9c43642c2 Fix assorted JNI issues, the calls work now. 2017-06-05 23:09:10 +02:00
Henrik Rydgård
871260fcc4 Start sketching native text rendering for Android 2017-06-05 23:09:04 +02:00
Henrik Rydgård
c5ebeb4273 Merge pull request #9780 from unknownbrackets/ge-record
GE recorder and replay
2017-06-05 10:08:55 +02:00
Henrik Rydgård
2391c0edd5 Fix reported null pointer error in the Java code 2017-06-04 11:51:24 +02:00
Unknown W. Brackets
36069d1446 GE Debugger: Simple framework to load dumps.
This tries to execute them within the context of the emulator as much as
possible, so we don't have weird bugs.  Going with a file type so we can
easily load the dump by opening the file directly.
2017-06-03 15:29:11 -07:00
Unknown W. Brackets
cbbd3cac7e GE Debugger: Initial structure for GE data dumping.
This snapshots the GE commands and drawing to facilitate debugging.
2017-06-03 15:29:09 -07:00
Henrik Rydgård
7bfccfbb13 Merge pull request #9745 from hrydgard/android-backend-switch-restart
Android: Just like on Windows, prompt to restart when changing graphics backend
2017-05-31 11:53:03 +02:00
Henrik Rydgård
01635a5cd6 Android: Just like on Windows, prompt to restart when changing graphics backend. 2017-05-31 11:12:11 +02:00
Unknown W. Brackets
1b491fe156 SoftGPU: Stub a jit for texel fetch. 2017-05-30 22:57:30 -07:00
Unknown W. Brackets
d5426e4360 SoftGPU: Move sampler code to a dedicated file. 2017-05-30 22:53:23 -07:00
Henrik Rydgård
d21a1f8813 Android: Fallback to OpenGL if Vulkan fails to init. 2017-05-30 10:31:41 +02:00
Henrik Rydgård
3ae4c122e5 Update to v1.4.2 2017-05-27 11:58:05 +02:00
Henrik Rydgård
be77ffd4e8 Show the Android "board name" in system information. 2017-05-26 12:29:27 +02:00
Henrik Rydgård
e776eff6db Update version to 1.4.1 2017-05-23 12:45:38 +02:00
Unknown W. Brackets
984060a85f Merge pull request #9677 from hrydgard/joystick-sensitivity
Quick hack to enable analog stick sensitivity on non-windows platforms.
2017-05-20 13:41:27 -04:00
Henrik Rydgård
4491c7e2ca Quick hack to enable analog stick sensitivity on non-windows platforms.
See #8028
2017-05-18 15:15:10 +02:00
Henrik Rydgård
df6ce90c84 When what we need is a shared_ptr, we should just go ahead and use one.
One of the top crashes reported in the Play Console is a ManagedTexture crash, so seeing if this might help.
2017-05-18 13:28:56 +02:00
Henrik Rydgård
22e509905e gradle: Add a "flavor dimension" to make Android Studio 3.0 happy 2017-05-18 12:34:44 +02:00
Enyby
55f4e75e21 Update buildassets.sh
Fix assets pathes in build scripts.
2017-05-17 20:17:25 +03:00
Enyby
ffb24621cd Update ab.sh
Fix pathes.
2017-05-17 06:15:01 +03:00
Enyby
57ebdda63b Update ab.cmd
Fixed pathes and copy dirs.
2017-05-16 12:05:42 +03:00
Unknown W. Brackets
3b4103cb3b System: Use a separate API for bool props.
This simplifies defaulting, instead of -1 being "true".
2017-04-29 17:35:12 -07:00
Unknown W. Brackets
ee68f09be5 Merge pull request #9653 from xiushudongfang/UI_background_android
UI: Allow choosing bgs (android)
2017-04-29 20:23:58 -04:00
Unknown W. Brackets
9ea7281b3c Core: Cleanup MAC address handling.
No need to make it leak, even if it doesn't matter much on shutdown.
Better to have the leak listing empty.
2017-04-29 12:48:06 -07:00
xiushu
c3a6d5a392 Remove blank line 2017-04-30 02:09:52 +08:00
xiushu
93536997cd UI: Allow choosing bgs (android) 2017-04-30 02:06:37 +08:00
Henrik Rydgard
cf365bb257 Minor cleanup with GOLD define - only use it in System_GetPropertyInt 2017-04-05 16:21:08 +02:00
Henrik Rydgård
186d471305 Update AndroidManifest version to 1.4.
(Probably can stop doing this though as Eclipse builds are no longer used for
releases).
2017-03-31 11:34:57 +02:00
Henrik Rydgård
8a7661a44f Gradle: Use the main assets directory instead of the android/assets one which is only updated when doing old style builds... 2017-03-31 10:59:46 +02:00
Henrik Rydgard
50e45207ea Prepare for ultra-wide screens like S8 and G6. See https://android-developers.googleblog.com/2017/03/update-your-app-to-take-advantage-of.html?m=1 2017-03-29 23:26:32 +02:00
Henrik Rydgård
60f74c3ba2 Gradle: Output the computed version name and code to text files for further processing. 2017-03-27 16:58:08 +02:00
Henrik Rydgård
9f3580f67d gradle: Automatically set Android version number according to git commit, when version >= 1.4. Fixes #9490. 2017-03-27 12:06:31 +02:00
Henrik Rydgard
6a88d6c5a4 gradle: Avoid catch-22 where you can't change the config when it starts out at release (sync needs to pass) 2017-03-25 09:38:05 +01:00
Henrik Rydgård
45e9b45830 Create a way to externally set versioncode and versionname. Will be useful for Google Play beta builds. 2017-03-23 10:47:58 +01:00
Henrik Rydgård
22782b6439 UWP: Fix DPI calculations for touch. Implement back button support. 2017-03-23 10:02:29 +01:00
Henrik Rydgård
d8859acb27 Gradle experiment: Throw an exception quickly if trying to build release without RELEASE_STORE_FILE. 2017-03-20 16:15:12 +01:00
Henrik Rydgård
9f26d573e6 Android: Add way to inject signing keys into build.gradle externally. 2017-03-20 11:06:52 +01:00
Henrik Rydgard
c62ec964f2 Update a resource 2017-03-18 16:33:16 +01:00
Henrik Rydgard
908193e894 Rework Android lost/restore lifecycle again. Can autorotate screen without crashing again. Should help #9295 and maybe #8906. 2017-03-18 15:21:26 +01:00
Henrik Rydgård
1424713f62 Minor resource reorg 2017-03-17 12:35:27 +01:00
Henrik Rydgård
bf518a0320 Android: Add gold resources (banners need work) 2017-03-16 16:05:51 +01:00
Henrik Rydgård
c18edcdab4 gradle: Add a new build config with debug signing but release optimization.
Add a fixed debug keystore so debug key is effectively the same on all my computers,
making testing more convenient.
2017-03-16 13:14:24 +01:00
Henrik Rydgard
fa353aeb1f This file is still needed in its old location to build Android using the old tools. 2017-03-15 23:06:47 +01:00
Henrik Rydgård
f8343e9efc Add Gradle build. This time, we don't remove the old build system and we don't switch Travis. 2017-03-15 19:42:17 +01:00
Henrik Rydgård
e17772b58d Merge pull request #9430 from unknownbrackets/input-state
Remove legacy InputState tracking
2017-03-15 10:16:14 +01:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets
255c726c1e Remove legacy pointer tracking outside Windows. 2017-03-14 22:07:05 -07:00
Unknown W. Brackets
df67497388 Remove legacy accelerometer state. 2017-03-14 22:07:03 -07:00
Henrik Rydgård
7e007c3973 Merge pull request #9426 from unknownbrackets/input-state
Remove various legacy parts of the InputState
2017-03-14 09:34:57 +01:00
Unknown W. Brackets
94700f287d Remove pad_lstick/rstick/ltrigger/rtrigger. 2017-03-13 23:01:50 -07:00
Unknown W. Brackets
2812ddcc86 Remove End/UpdateInputState and ButtonTracker.
No longer used for anything.
2017-03-13 22:58:38 -07:00
Unknown W. Brackets
ef57eafaad Correct GE debugger font size in small window mode.
This should handle high and low DPI cases correctly, to avoid making the
text unreadably small.
2017-03-12 12:17:35 -07:00
Henrik Rydgård
150619c5a3 Eclipse project: Add some stuff that Eclipse Neon likes to add. 2017-03-06 16:03:31 +01:00
Henrik Rydgård
a1941d8a81 It's enough to call net::Init/Shutdown in NativeInit/Shutdown. Remove other calls. 2017-03-06 10:51:28 +01:00
Henrik Rydgard
4736330c55 Don't double-lock a regular mutex, bad things happen. Fixes #9376 2017-03-02 22:00:55 +01:00
Henrik Rydgard
d68953c18c Buildfixes 2017-03-02 13:29:51 +01:00
Henrik Rydgard
d46397627e Buildfixes 2017-02-28 11:40:29 +01:00
Henrik Rydgard
26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard
c219ae9e63 Further UWP fixes 2017-02-25 09:57:24 +01:00
Henrik Rydgard
a8ee70f23d Import SPIRV-Cross. This will be used later to translate post-processing shaders to the various shader languages we use.
Eventually, this will make it possible to use post-processing with
Vulkan and D3D11. Probably not DX9, though maybe.

Not adding to Android build, there's some strangeness with STL.
2017-02-14 23:33:27 +01:00
Henrik Rydgård
0ae06b0148 Android buildfix 2017-02-11 10:52:43 +01:00
Henrik Rydgard
55aa879216 A lot of buildfixes 2017-02-06 16:16:43 +01:00
Henrik Rydgard
ad29974a56 Change when drawcontexts are allocated. Hook up backbuffer events to fix d3d9 resizing. 2017-02-06 11:40:16 +01:00
Henrik Rydgard
f1c96c056d Move all the GL/D3D9 FBO code into thin3d. 2017-02-06 11:40:16 +01:00
Henrik Rydgard
1443acee03 Buildfix 2017-01-30 15:31:50 +01:00
Henrik Rydgård
e1bae9aa67 Follow the ARM64 ABI better (update the frame pointer). 2017-01-27 14:19:03 +01:00
Henrik Rydgård
69012fc5e0 Update Android target to 25 2017-01-26 08:26:07 +01:00
Henrik Rydgård
23e354847d Buildfix 2017-01-25 19:29:43 +01:00
Henrik Rydgard
478a3ab903 Oops, didn't mean to change this. Not that it makes sense to have it hardcoded anyway... 2017-01-24 21:10:15 +01:00
Henrik Rydgård
5d6097d33c Add infrastructure for checking for supported DataFormats 2017-01-24 20:59:00 +01:00
Henrik Rydgård
5e92a94175 Buildfix 2017-01-24 20:58:59 +01:00
Henrik Rydgard
d9acd27126 Rename GLES files to match the convention the other backends use. 2017-01-23 17:08:58 +01:00
Henrik Rydgård
5af8b152e1 Further buildfixes 2016-12-27 11:59:12 +01:00
Henrik Rydgård
73ed466e19 Set up Android build for the proper glslang 2016-12-20 02:31:41 +01:00
Florent Castelli
46fdc0f5f5 cmake: Move some cmake includes to ext 2016-12-18 22:17:41 +01:00
Henrik Rydgard
c87d4a66c1 Move lang into assets. 2016-10-14 22:33:45 +02:00
Florent Castelli
eb2eb4cd9b cmake: Move some platform configuration to a toolchain file 2016-10-12 18:52:23 +02:00
sum
5a224d1601 Build fix for non-windows 2016-10-09 12:40:40 +02:00
Unknown W. Brackets
5641d18eb9 Correctly call Restore in C++ EGL path.
This will be needed for Vulkan.
2016-10-08 12:35:01 -07:00
Henrik Rydgård
55c9838132 Merge pull request #9037 from unknownbrackets/powersave
Fix Touchwiz power saving detection on S5 and newer
2016-10-08 19:38:23 +02:00
Unknown W. Brackets
b23043666a Support newer S5+ Touchwiz power saving setting. 2016-10-08 09:51:46 -07:00
Unknown W. Brackets
a8d37a01e6 Ignore Sense/Touchwiz power saving on L or higher. 2016-10-08 09:43:56 -07:00
Unknown W. Brackets
86b3d4e6d9 Vulkan: Tweak init error logging on Android. 2016-10-01 11:36:50 -07:00
Henrik Rydgard
18a5d23eab Typo fix 2016-09-25 01:45:48 +02:00
Henrik Rydgard
175f3316e0 Update Android "super-minor" version number to be ready for emergency android-only fix 2016-09-18 23:19:35 +02:00
Henrik Rydgard
97b60a23a8 Assorted failsafes around PowerSaveModeReceiver 2016-09-18 23:11:41 +02:00
Henrik Rydgard
6d0d36bf91 Update version to 1.3 2016-09-17 15:22:31 +02:00
Henrik Rydgard
cfba40ebd4 Update font atlas with the latest Chinese chars used 2016-09-17 12:38:07 +02:00
Unknown W. Brackets
279a8e2658 Remove unused import.
This was migrated to the PowerSaveModeReceiver class.
2016-09-11 05:18:36 -07:00
Unknown W. Brackets
98b523ea2c Android: Shutdown on finish(). 2016-09-10 21:58:43 -07:00
Unknown W. Brackets
92d930887f Android: Add both a lost and restore phase.
Lost = delete, restore = create.  Let's stick to never overlapping.

May help #8912.
2016-09-10 21:58:42 -07:00
Henrik Rydgard
03279e1212 Port over the Exynos cacheline size fix from Dolphin. Thanks to lewurm of the mono project for the discovery and original fix.
See https://github.com/dolphin-emu/dolphin/pull/4204 and https://github.com/mono/mono/pull/3549
2016-09-10 09:25:06 +02:00
Henrik Rydgård
ef95bb05cc Merge pull request #8871 from unknownbrackets/android-power
Detect power saving mode on Android
2016-08-06 12:16:01 +02:00
Unknown W. Brackets
f366f09c4c Android: Detect pre-L power saving.
Sometimes users don't realize these are on, and they can slow down
gameplay.  Of course, they can also save battery.
2016-07-24 17:29:04 -07:00
Unknown W. Brackets
1f7a137926 Android: Detect and report power save mode.
This shows a message when it's on, or when power drops to low.
2016-07-24 17:04:06 -07:00
Henrik Rydgard
526d1682ae Update to target Android SDK platform 24 (N) 2016-07-25 01:05:13 +02:00
Unknown W. Brackets
e269a806cd Remove unused exports / sections in jni on x86_64.
This resolves a linkage error with x64 affecting Marshmallow and clang.
It also makes the unexported symbols non-visible since they don't need to
be - this reduces the size of the ppsspp_jni.so too.

Unfortunately, it reduces the readability of stack traces.
2016-07-24 12:55:30 -07:00
Unknown W. Brackets
316b7457b9 Upgrade to FFmpeg 3 / clang. 2016-07-24 12:53:43 -07:00
Unknown W. Brackets
d0b1f1a26e Switch Android build to clang.
It's now the recommended build from NDK 11+.  GCC is deprecated.
2016-07-24 12:52:24 -07:00
Unknown W. Brackets
76cd5bf876 Android: Use the game title as the shortcut title.
This way when you have more than one, it's not just "PPSSPP" on each of
them.
2016-07-23 14:12:14 -07:00
sails
ecf57bdc23 Update NativeActivity.java
fix javaGL bug
2016-07-21 09:31:44 +08:00
Henrik Rydgård
cbb1ab17ca Merge pull request #8845 from unknownbrackets/http
Add UI for wifi remote disc streaming
2016-07-04 20:38:54 +02:00
Unknown W. Brackets
f4e2ca0359 http: Add a screen under tools for the server. 2016-07-03 22:13:47 -07:00
Unknown W. Brackets
4d4e334fc4 Vulkan: Allow C++ to determine use of JavaGL.
Based on config - this way we can enable Vulkan more easily even before we
determine why some devices don't like C++ EGL for GLES.
2016-07-01 14:05:15 -07:00
Henrik Rydgård
63e7304467 Merge pull request #8778 from unknownbrackets/coupling
Remove some dependency coupling
2016-05-28 12:25:01 +02:00
Unknown W. Brackets
a1fbcc3d93 Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Unknown W. Brackets
02db45982a Pass Build.BOARD from Java, avoid lookup.
Fixes arm64 build with r10, but is ugly coupling.
2016-05-27 20:11:25 -07:00
Unknown W. Brackets
eb45c5bc89 Update to latest armips to fix unittest on Android.
Also fixes ARRAY_SIZE warning.
2016-05-21 09:29:20 -07:00
Henrik Rydgard
e711a47a75 Complete the separation of the IR compiler frontend from the "Jit" 2016-05-09 20:05:06 +02:00
Henrik Rydgard
f8659b8e1e Move the IR interpreter out into its own file. Rename it in the UI. First CMake and Android fixes. 2016-05-08 22:06:13 +02:00
Henrik Rydgard
ce8aae5ed1 Make the IRJit core selectable in developer tools 2016-05-08 01:43:27 +02:00
Unknown W. Brackets
9280bb3eda Merge pull request #8715 from unknownbrackets/tex-replace
Initial texture replacement support
2016-05-01 09:58:16 -07:00
Henrik Rydgard
ffe4c266ef Add CodeBlockCommon base class to remove further arch-specificity in JitBlockCache
Remove unused ArmThunk.
2016-05-01 11:40:00 +02:00
Henrik Rydgard
8b450c8034 Merge NativeJit.cpp/h with JitCommon.cpp/h 2016-05-01 11:39:59 +02:00
Henrik Rydgard
a5be0976bd Remove preprocessor hacks to choose JIT implementation.
Opens up for having multiple JIT implementations available at runtime,
which could be use for experimenting with new JIT compiler types or for
unit testing one JIT on another architecture.

Very few of the newly virtual calls are on any sort of critical path so
hopefully there will not be a performance loss.
2016-05-01 11:39:53 +02:00
Unknown W. Brackets
9039dd606f Move TextureReplacer to Core.
Probably makes more sense here after all.
2016-05-01 00:30:40 -07:00
Unknown W. Brackets
bf39e61458 Setup initial structure for texture replacements. 2016-04-30 13:44:31 -07:00
Henrik Rydgard
7cb6192005 Rename the TransformPipeline files to DrawEngine, and GLES_GPU to GPU_GLES 2016-04-10 10:31:42 +02:00
Henrik Rydgard
e611915a52 Rename some GPU classes and enums to fix some consistency issues between the backends. 2016-04-10 10:21:48 +02:00
Henrik Rydgard
4197148dc4 Add some paranoid checks hoping to fix crashes reported in Google Play developer console. 2016-04-09 18:27:35 +02:00
Unknown W. Brackets
aec117d8ea Vulkan: Allow resizing window/backbuffer.
Not tested much on Android.  Fixes #8656.
2016-03-21 19:45:27 -07:00
Unknown W. Brackets
2461a849f9 Correct some warnings reported by clang. 2016-03-20 23:13:28 -07:00
Unknown W. Brackets
d90527e41e Correct some missing overrides. 2016-03-20 23:05:05 -07:00
Henrik Rydgard
5d56537a16 Move VulkanPushBuffer into VulkanMemory.h 2016-03-20 19:31:02 +01:00
Henrik Rydgard
da50370328 Split out VulkanTexture from VulkanContext.cpp/h into VulkanImage.cpp/h 2016-03-20 19:31:02 +01:00
Unknown W. Brackets
82205a4660 Handle Vulkan init errors more gracefully. 2016-03-20 19:31:02 +01:00
Unknown W. Brackets
c92790c5a8 Specify a useful app version when loading Vulkan. 2016-03-20 19:31:02 +01:00
Henrik Rydgård
9c457da4c9 Gets the Vulkan backend running, but not drawing correctly, on Android.
Not sure what's wrong, I get a yellow flashing screen.
2016-03-20 19:30:39 +01:00
Henrik Rydgard
d325aa2b30 Hook up Vulkan on Android, no idea if it works. Move VulkanContext to Common. 2016-03-20 19:30:11 +01:00
Henrik Rydgard
2481714a8e Load Vulkan dynamically. Fix Android build (though - Vulkan is not working on Android yet) 2016-03-20 19:30:11 +01:00
Henrik Rydgard
5f71b5b3ec Android: Vulkan builds but doesn't link as we have no link library. 2016-03-20 19:30:11 +01:00
Henrik Rydgard
ca63cca9a2 WIP: Start work on getting the Vulkan code to compile for Android 2016-03-20 19:30:11 +01:00
xiushu
6189e3130e fix inputbox
#8642 break #8607 ,now fixed
2016-03-20 08:40:25 +08:00
Henrik Rydgard
8c9f3b9509 Update version numbers to 1.2.2, more README fixes 2016-03-19 19:29:12 +01:00
Henrik Rydgard
92c6810954 Not using a GL config chooser seems to be the way to go, really, and was the way we used before the EGL attempt. 2016-03-17 22:22:57 +01:00
Henrik Rydgard
4c0e6d0138 Some renaming, fixes and tweaks to the gl_lost mechanism, which is again needed 2016-03-17 21:30:16 +01:00
Henrik Rydgard
5ad772a8bf Further fixes to Java EGL support 2016-03-17 19:42:59 +01:00
Henrik Rydgard
2880e09dd2 Fix touch scaling with Java EGL 2016-03-17 18:59:43 +01:00
Henrik Rydgard
0d6c8df4ba Restore Java EGL support, while keeping the new stuff around as an option.
Did not restore the old DPI code, reusing the new instead.

To switch back to C++ EGL, change javaGL in NativeActivity.java.

Fixes issue #8638 and hopefully others like #8618.
2016-03-17 18:49:18 +01:00
Henrik Rydgard
ec6559537b Android EGL: Experiment: Only apply the 16-bit workaround on really old devices. 2016-03-13 15:17:31 +01:00
Unknown W. Brackets
955b0fb9db UI: Minor header cleanup. 2016-03-06 14:49:14 -08:00
Henrik Rydgard
da1a04be8d Make the workqueue slightly safer. Put g_gameInfoCache on the heap.
Cherry-picked from #8592
2016-02-28 12:39:47 +01:00
xiushu
2ec11c56a4 Remove unsupported formats 2016-02-22 16:28:54 +08:00
xiushu
7a2b4eea0a Add inputbox for android
For inputting  IP and NickName ,or something else in future on Android
2016-02-21 11:23:00 +08:00