Commit Graph
19134 Commits
Author SHA1 Message Date
Unknown W. Brackets 40eaa00351 Oops, left this wrong while debugging. 2015-12-20 08:59:04 -08:00
Unknown W. Brackets f5d1a77155 Cut out a couple unused includes. 2015-12-19 19:58:56 -08:00
Unknown W. Brackets edf3bf4a8e Silence some unused result warnings. 2015-12-19 19:58:32 -08:00
Henrik Rydgård 72733cabf4 Merge pull request #8278 from unknownbrackets/iso-cache
Use a background thread to load ISO into RAM
2015-12-20 00:54:07 +01:00
Unknown W. Brackets 95abf332d1 Disable ISO RAM cache if out of memory.
Better to fail to preload than to crash.
2015-12-19 15:29:34 -08:00
Unknown W. Brackets dd5c91108c Use a background thread to load ISO into RAM.
This way we don't get slow startup.  This will also cache the CSO data,
for example, rather than the raw data, using up less RAM.  It might even
be reasonable to enable on 32-bit.
2015-12-19 15:23:25 -08:00
Henrik Rydgård f434be36e4 Merge pull request #8270 from unknownbrackets/opengl-core
Move toward supporting OpenGL Core Profile 3.3 - 4.5
2015-12-19 19:47:37 +01:00
Unknown W. Brackets 27ad8185e3 Add flag for core GL contexts.
Since using VBOs all the time is slower.
2015-12-19 09:18:35 -08:00
Unknown W. Brackets 164594b044 Use a VAO for all drawing, and VBOs throughout. 2015-12-19 09:18:34 -08:00
Unknown W. Brackets b71061b1ef thin3d: Handle lost vertex formats. 2015-12-19 09:18:33 -08:00
Unknown W. Brackets 0485f1bd96 softgpu: Use a VAO for copying to screen. 2015-12-19 09:18:32 -08:00
Unknown W. Brackets 1ca7abb948 thin3d: Correct subdata size check. 2015-12-19 09:18:31 -08:00
Unknown W. Brackets 49780eac24 Use VAOs in vertex preview drawing. 2015-12-19 09:18:30 -08:00
Unknown W. Brackets 5fe802c4e9 Use VAOs in GE debugger drawing. 2015-12-19 09:18:29 -08:00
Unknown W. Brackets 07d34e985b thin3d: Use VAOs for all drawing. 2015-12-19 09:18:28 -08:00
Unknown W. Brackets bf9733f4cb Look up GL_EXTENSIONS the new way in new GL. 2015-12-19 09:18:27 -08:00
Unknown W. Brackets 4c0051dcfb Merge pull request #8225 from hrydgard/new-android-permissions-model
Update Android target, support "Runtime Permissions" in Android 6.0+ (Marshmallow).
2015-12-18 01:43:17 -05:00
Henrik Rydgard 732b1239e7 Add some permission infrastructure, add an ugly button that asks you to grant STORAGE permission if necessary. 2015-12-17 22:41:50 +01:00
Henrik Rydgard 2d22088f38 Update Android target, support "Runtime Permissions" in Android 6.0+ (Marshmallow).
Currently this is the absolute minimum required. Will later add a button to re-request the
permission if it's lost, but at least we do that on application startup.

Storage is the only permission we need that's not auto-granted.
2015-12-17 20:27:25 +01:00
Henrik Rydgård 99fe0981ee Merge pull request #8274 from hrydgard/android-native-egl
Initialize OpenGL from C++ using EGL on Android
2015-12-17 19:38:41 +01:00
Henrik Rydgard ebf9bd74c6 Minor fixes 2015-12-17 19:38:23 +01:00
Henrik Rydgard 38263c9073 Turn gfxlog off again 2015-12-16 22:31:14 +01:00
Henrik Rydgård 0e1e52242f Remove unused import 2015-12-16 22:25:01 +01:00
Henrik Rydgard fd2557dbd7 EGL: Add autodetect mode that only chooses between ES2 and ES3 2015-12-16 21:48:19 +01:00
Henrik Rydgard db633aa377 Lots more debug logging. Terrifying compatibility hack for devices that for some reason create 16-bit buffers.
Like Xperia Play.
2015-12-16 21:37:39 +01:00
Henrik Rydgard ac202c16c3 Screen rotation works correctly on startup on older Android devices now.
Changing in-menu still has issues because the activity will not restart.
2015-12-16 19:43:39 +01:00
Henrik Rydgard 13515bf235 Use the hardware scaler again on Android. Move all DPI handling code from java to app-android.cpp. 2015-12-16 14:52:44 +01:00
Henrik Rydgard 04f8bffa29 Use EGL from native code to initialize and run OpenGL on Android.
Should be more robust, allows initializing desktop GL if available, and lets us take control of the render loop.
2015-12-16 10:57:24 +01:00
Henrik Rydgard c2eb6a2fcb Minimal port of Android EGL code from Dolphin. 2015-12-13 22:46:50 +01:00
Henrik Rydgard 2083f22dce Refactor (android): Decouple frame commands from Renderer object.
Minor cleanup in preparation for EGL.
2015-12-13 22:44:55 +01:00
Unknown W. Brackets 003d1ea0f3 Correct glReadPixels() from offset. 2015-12-12 21:21:38 -08:00
Henrik Rydgård 666b31c08e Merge pull request #8259 from unknownbrackets/gpu-blit
Use glCopyImageSubData() when it's available
2015-12-06 20:53:46 +01:00
Unknown W. Brackets fbc4b4e7a1 Use glCopyImageSubData() when it's available.
There's 4 different extensions providing this functionality.  NV is
supported on desktop and mobile, EXT/OES on mobile, and ARB on desktop.

Mostly these are only supported by desktop cards and NVIDIA mobile.

Good improvement in performance on NVIDIA when blit is called a lot, since
it doesn't need to rebind anything or change state.  Example is in desert
city in Tales of Phantasia.
2015-12-06 10:39:21 -08:00
Henrik Rydgård a2e09eada7 Merge pull request #8216 from unknownbrackets/sas-thread
Move SAS mixing to a thread
2015-12-06 18:59:09 +01:00
Henrik Rydgård 4bb36b0e79 Merge pull request #8243 from unknownbrackets/gpu-blend
Enable EXT_blend_func_extended
2015-12-06 18:36:45 +01:00
Henrik Rydgård fb414de75b Merge pull request #8258 from unknownbrackets/gpu-readpix
Remove some framebuffer ifdefs, explicitly set PACK_ROW_LENGTH
2015-12-06 18:35:32 +01:00
Unknown W. Brackets 308a948169 Explicitly set row length for glReadPixels(). 2015-12-06 09:18:37 -08:00
Unknown W. Brackets a2d228a729 Remove more USING_GLES2 ifdefs. 2015-12-06 09:08:38 -08:00
Unknown W. Brackets 33e37f4cd3 Use qualifier for GLES3 framebuffer fetch.
Note: still statically disabled.
2015-11-27 16:09:57 -08:00
Unknown W. Brackets 1fb271a607 Enable EXT_blend_func_extended.
Not really tested.
2015-11-27 16:01:25 -08:00
Henrik Rydgard 01669cbd92 Hide the "Internal resolution" etc static display unless FPS counter is on.
Seems fairly related and I don't want to add more options.
2015-11-27 00:17:14 +01:00
Henrik Rydgard efde6e44db Just a safety check in thin3d texture loading 2015-11-27 00:17:14 +01:00
Henrik Rydgård 5827b583d3 Merge pull request #8240 from unknownbrackets/clut-render
Initial CPU side render-to-clut handling
2015-11-27 00:08:08 +01:00
Unknown W. Brackets 1339f6b1f3 Report formats on usage of rendered clut. 2015-11-26 14:31:46 -08:00
Unknown W. Brackets 3965cba187 Disable clut render for now as a "slow effect".
Also, add reporting.
2015-11-26 13:42:18 -08:00
Unknown W. Brackets 8e2557bafe Support render-to-clut, at least in some cases.
This is pretty much only tested with Brave Story.  See #6754.

There may be other cases which are not handled yet.
2015-11-26 13:31:17 -08:00
Henrik Rydgård 63dcc56bc6 Merge pull request #8236 from unknownbrackets/warnings
Warning fixes
2015-11-26 13:07:31 +01:00
Unknown W. Brackets a7b4c38464 Move some common files into MSVC filters. 2015-11-25 19:36:21 -08:00
Unknown W. Brackets f759a2a3fd Sas: Sync result when mix calling thread returns. 2015-11-25 18:44:43 -08:00
Unknown W. Brackets 546590106f Sas: Fail to mix when dispatch disabled. 2015-11-25 18:44:42 -08:00