Commit Graph

9090 Commits

Author SHA1 Message Date
twinaphex 051342cc8b Rewrite win32_get_video_output 2019-12-20 07:15:03 +01:00
Hans-Kristian Arntzen 96723c6f70 Vulkan/Android: Workaround weird WSI return codes in landscape mode.
Android WSI wants you to use preTransform, and if it is not used
correctly, Android 10 will return VK_SUBOPTIMAL_KHR, and we would create
a new swapchain every frame.

This workaround just ignores this error, since it's not really an error.
A more "proper" fix is to use prerotate and modify the MVP matrices,
which might help certain devices with crummy display processors.
2019-12-17 19:08:20 +01:00
Themaister 15ffffa835 Android/Vulkan: Recreate swapchain on orientation change.
ANativeWindow getWidth/Height does not detect any changes when using
Vulkan, so use the old onContentRectChanged callback to get notified
when size changed. Use those values instead when figuring out how large
swapchain to create.

Tested trivially on Galaxy S9+ Exynos model.
2019-12-15 16:46:41 +01:00
Francisco José García García b4be7b0c74 (Vita) Several improvements to vita2d driver 2019-12-14 14:11:47 +01:00
twinaphex 1fd6d024eb More buildfixes for ANGLE 2019-12-07 07:24:20 +01:00
twinaphex c6b325e4d6 Add more headers 2019-12-07 07:17:21 +01:00
twinaphex df588ca422 (ANGLE) Move headers to gfx/include/ANGLE 2019-12-07 07:09:49 +01:00
twinaphex 17a161afa2 Add missing header 2019-12-07 07:04:26 +01:00
twinaphex 94f82ece4e Add more required headers 2019-12-07 07:01:11 +01:00
twinaphex 1aaf933a1a Add EGL headers 2019-12-07 06:55:16 +01:00
driver1998 105fadd668 [ANGLE] Add HAVE_ANGLE 2019-12-06 15:43:19 +08:00
driver1998 a8a4e60171 [ANGLE] Cleanup 2019-12-06 13:59:22 +08:00
driver1998 bfe167fae8 [UWP] Add ANGLE context 2019-12-06 13:24:18 +08:00
driver1998 7cbdd845ad [Win32] Add ANGLE context 2019-12-06 13:24:17 +08:00
driver1998 de203390be [Windows] Add ANGLE support 2019-12-06 13:24:17 +08:00
Twinaphex 002f2ab6e7
Merge pull request #9801 from cmitu/kms-video-mode-selection
KMSDRM: better detection for the current video mode
2019-12-05 23:39:02 +01:00
cmitu 3953659901 KMSDRM: better detection for the current video mode 2019-12-01 06:45:43 +00:00
Jean-André Santoni c0dfcd2adf
Fix Metal build 2019-11-30 12:49:52 +07:00
Jean-André Santoni ba2c870d95
Allow building using make on OSX 2019-11-30 12:37:58 +07:00
twinaphex 861379d8e3 Revert code in hopes iOS works again 2019-11-20 06:25:40 +01:00
Twinaphex d2d240ecf5 (iOS) Should fix iOS build problems 2019-11-20 02:58:17 +01:00
Twinaphex 81c020d300 Replace g_instance with CocoaView get 2019-11-20 02:24:03 +01:00
twinaphex e3506ed06b Move nsview_get_ptr to cocoa_common 2019-11-20 02:24:03 +01:00
Twinaphex 387e18b528 cocoagl_gfx_ctx_set_video_mode - go through [CocoaView get] here 2019-11-20 02:24:03 +01:00
twinaphex 964fcda79a Move glkitview_init to cocoa_common.m 2019-11-20 02:24:02 +01:00
twinaphex ed8e440b0d Revert "Move update_window_title to main thread - this should resolve some"
This reverts commit 442608981d.
2019-11-19 22:48:35 +01:00
twinaphex 442608981d Move update_window_title to main thread - this should resolve some
concurrency issues on OSX as well
2019-11-19 22:13:51 +01:00
Jean-André Santoni 8e028f4db3
Remove useless HAVE_COCOA_METAL ifdef 2019-11-19 14:50:21 +07:00
twinaphex 29ced2a72f Simplify cocoagl_gfx_ctx_get_video_size somewhat 2019-11-19 08:26:12 +01:00
Twinaphex c7ce2c7053 Fix Xcode issue 2019-11-19 05:54:01 +01:00
Jean-André Santoni d5a5380e6d
Fix building with make on OSX 2019-11-19 11:38:27 +07:00
Twinaphex 53d18cf95e
Merge pull request #9713 from Rinnegatamante/vitagl
Added gl1 video driver support to Vita build
2019-11-17 23:14:29 +01:00
Rémi 6c47f02bdf Fixing OpenGL shader rotation 2019-11-16 19:52:47 +01:00
Guo Yunhe 95dede9039
Fix comment in freetype.c 2019-11-15 10:18:05 +02:00
Twinaphex 724865a8fc
Update freetype.c 2019-11-15 00:53:17 +01:00
Guo Yunhe 52b3a4fe17 Correct Droid Sans Fallback font path 2019-11-14 18:01:46 +02:00
Rinnegatamante 2a77dc5600 Make code C89 compliant. 2019-11-13 21:44:59 +01:00
Rinnegatamante 616759ed8c [VITA] Implement check_window. 2019-11-13 11:19:51 +01:00
Rinnegatamante 637319c938 [VITA] Implement swap_interval in vita video driver context. 2019-11-13 09:57:03 +01:00
Rinnegatamante 96845f4a7e [VITA] Removing a no more used ifndef. 2019-11-13 00:45:48 +01:00
Rinnegatamante 2b20c8d350 [GL1] Fixed core frame renderer. 2019-11-12 19:46:37 +01:00
Rinnegatamante bed9847b48 [VITA] Hijacking wrong positioning for UI elements. 2019-11-12 19:06:18 +01:00
Rinnegatamante 66bdf711f4 [VITA] Back to GL_LUMINANCE_ALPHA usage. 2019-11-12 16:33:47 +01:00
Rinnegatamante f3ca57e6f0 [VITA] Add vita video driver context. 2019-11-12 16:33:36 +01:00
Rinnegatamante 6b7673f806 [VITA] Fixing gl1 video driver crashes. 2019-11-12 15:37:37 +01:00
Rinnegatamante 1533d618e5 [VITA] Allow usage of null context with gl1. 2019-11-12 13:50:14 +01:00
Rinnegatamante 6394342b9c [VITA] Add gl1 video driver support through vitaGL. 2019-11-12 11:54:00 +01:00
twinaphex a0486c3cd7 Revert "Simplify slang_process.cpp"
This reverts commit 25a417cdd7.
2019-11-12 01:34:03 +01:00
twinaphex 25a417cdd7 Simplify slang_process.cpp 2019-11-11 18:55:33 +01:00
alphanu1 a488876a6a
Added missing argument to function (#2) 2019-10-30 08:43:51 +00:00