Try to allocate executable memory close to PPSSPP memory if not below 4GB
executable memory allocation changes
fix 32-bit builds
typo
Detect and use SDL2 with help of this Dolphin CMake module:
https://github.com/dolphin-emu/dolphin/blob/master/CMakeTests/FindSDL2.cmake
Look for SDL_gamecontroller.h instead of SDL.h to prevent CMake from
using SDL1 include dirs
Update to SDL2
Update native submodule
Merge branch 'master' into sdl2

Conflicts:
	native
Try to simplify alpha replace for poor compilers.
Clear stencil on switch from 565 buffer.

Fixes #2094, shadows in Kingdom Hearts in some scenes.

Not a complete solution, but should be a relatively safe one.
Add an experiment with using a texture for tests.

Using an option for now so it's easy to test, if it works well we can
maybe remove the option.
Actually cache the last bound test texture.
Skip binding when the test won't be used.
Merge pull request #6852 from unknownbrackets/gpu-minor

Clear stencil/alpha when switching from 565, minor frag shader simplication
d3d: Reduce D3DX leaks.
d3d: Report shader compilation failures.
d3d: Release vertex decls on shutdown.
d3d: Release shaders and fbos on shutdown.
d3d: Release on shutdown in headless.

Could sync it up, just want to be able to run tests without major leaks.