Commit Graph

9381 Commits

Author SHA1 Message Date
Brad Parker 4e9cd6ff3e win32: set menubar language to same as config 2019-08-29 16:36:09 -04:00
twinaphex 2609747243 MSVC buildfix 2019-08-29 20:20:35 +02:00
twinaphex 718d65d95d Take this out - too unsafe - fixes D3D12 driver 2019-08-29 12:30:56 +02:00
twinaphex cb8107a154 remove video_context_driver_init_image_buffer 2019-08-29 11:26:28 +02:00
twinaphex ca5e51f116 Remove video_context_driver_make_current 2019-08-29 11:13:17 +02:00
twinaphex 029f1c403e Turn function static 2019-08-29 10:16:26 +02:00
twinaphex 967aae04c8 Cleanups 2019-08-29 09:55:27 +02:00
twinaphex 9a49da10e5 (WndProcCommon) Put this back in 2019-08-29 09:31:08 +02:00
twinaphex df4f2a67e3 (Win32) Simplify WndProcCommon 2019-08-29 02:26:32 +02:00
twinaphex 5ca165379c Cleanups 2019-08-29 01:45:44 +02:00
twinaphex 04f9b81fed Cut down on some unnecessary wrapper functions 2019-08-29 00:02:50 +02:00
twinaphex 3a7515c82f Cut down on code duplication 2019-08-28 23:58:15 +02:00
twinaphex 01cb2b8d44 Cleanup 2019-08-28 23:55:57 +02:00
twinaphex d406fee72e Remove video_context_driver_suppress_screensaver 2019-08-28 22:52:41 +02:00
twinaphex c50cc7b010 Remove video_context_driver_show_mouse 2019-08-28 21:36:58 +02:00
twinaphex aeedeb14a9 (Vita) Vita has no video context driver set, so this can go 2019-08-28 21:30:17 +02:00
twinaphex fa3b927ece Get rid of video_context_driver_get_proc_address 2019-08-28 21:26:43 +02:00
twinaphex 88720b540e Get rid of video_context_driver_swap_interval 2019-08-28 21:12:51 +02:00
Sunderland93 8345f08f64 [Wayland] Remove deprecated wl_shell interface 2019-08-28 12:26:51 +04:00
twinaphex a623a611f1 (Wayland) Untested - apply the same for Wayland 2019-08-24 20:51:12 +02:00
twinaphex aa428e4a82 (X11) Better resizing of menu when window is resized 2019-08-24 20:50:06 +02:00
Twinaphex 6d0875e975 (OSX) Use new menu rescaling when resizing window 2019-08-24 20:36:06 +02:00
twinaphex 8780541de9 (Win32) Add deferred menu context reset - menu should properly rescale now
when we do a Win32 window resize
2019-08-24 20:03:09 +02:00
twinaphex 86410cc3b0 (CoreText) Buildfix 2019-08-24 16:57:23 +02:00
jdgleaver f85c0737e4 (3DS) Build fix 2019-08-24 14:37:45 +01:00
twinaphex 02dccb0396 (OSX) Buildfix for C89_BUILD 2019-08-24 08:51:33 +02:00
twinaphex b9d7be372f (CoreText) Check first if path is valid 2019-08-24 03:35:23 +02:00
Twinaphex 714e3ddc2a (SBT font driver) Check first if font files exist before
we try to open them
2019-08-24 03:30:32 +02:00
twinaphex 0dc73f2c8e Prevent calling FT_New_Face if path is not valid 2019-08-24 03:25:46 +02:00
LazyBumHorse a882901e39 save unmodified auto-shaders as a reference instead of a copy, see:
- implement #reference directive for auto-shaders
 - replace usual preset saving and loading functions with video_shader_read_preset() and video_shader_write_preset()
 - apply saved presets automatically for console menus
 - move auto-shader saving logic from menus into menu_shader.c menu_shader_manager_save_auto_preset()
 - refactor menu_shader_manager_save_preset() into menu_shader_manager_save_preset_internal()
2019-08-22 16:57:28 +02:00
twinaphex d52c573e13 Merge slang_preprocess.cpp into slang_process.cpp 2019-08-18 18:55:22 +02:00
twinaphex 0905c8d2ed (shader_gl_core.cpp) Simplify some code 2019-08-18 18:32:01 +02:00
twinaphex d48b5b78f8 Cleanups 2019-08-18 18:05:26 +02:00
twinaphex aaeff6c888 Move C code over to glslang_util.c 2019-08-18 18:01:21 +02:00
twinaphex 3aa1a03a08 glslang_util cleanups 2019-08-18 14:40:26 +02:00
LazyBumHorse 719555bae1 Overhaul shader loading logic, add --set-shader CLI option 2019-08-17 15:20:51 +02:00
Twinaphex 3bc5c15526
Merge pull request #9309 from LazyBumHorse/fix_vulkan_gpu_list
fix handling of vulkan_gpu_list
2019-08-15 18:17:56 +02:00
LazyBumHorse 3c6a46d95d fix handling of vulkan_gpu_list (use after free, not always being initialized) 2019-08-15 17:52:24 +02:00
twinaphex 6c671faed6 Start preparing for menu_widgets_ready to be moved to retroarch.c 2019-08-15 14:20:51 +02:00
LazyBumHorse f51e50a423 fix logging on Windows sometimes not being null-terminated 2019-08-15 13:39:19 +02:00
twinaphex 980be6dba3 (GL2) Cleanups 2019-08-14 16:40:47 +02:00
Twinaphex accae545b0
Merge pull request #9279 from LazyBumHorse/fix_glhigh
workaround for glcore crash with Mesa
2019-08-13 22:00:28 +02:00
Themaister f957bf0d16 Validate non-causal filter chain for texture inputs.
We only validated for UBO inputs apparently.
2019-08-13 13:57:20 +02:00
twinaphex 3585d56067 (Vita2D) video_driver_get_size was used for no reason here 2019-08-13 12:34:34 +02:00
twinaphex dc3711b35f (GX2) video_driver_get_size was used for no reason here 2019-08-13 12:33:09 +02:00
twinaphex d43b26348b (Vulkan) Don't use video_driver_get_size 2019-08-13 12:28:16 +02:00
twinaphex e43c55bef3 (GLCore) Don't use video_driver_get_size 2019-08-13 12:23:02 +02:00
twinaphex c3d624267b (GL) Start avoiding usage of video_driver_get_size
from within video drivers
2019-08-13 12:14:53 +02:00
twinaphex 558e50b5a0 Get rid of unused code libdbgfont 2019-08-13 11:42:46 +02:00
LazyBumHorse 907bea6abb destroy leaked context 2019-08-12 23:05:44 +02:00
twinaphex 4a09f66c7b (GL drivers) Cleanups 2019-08-12 22:04:27 +02:00
LazyBumHorse 010df00d74 workaround for Mesa crash when trying unsupported OpenGL versions
also fixes attribs sometimes being garbled
2019-08-12 21:08:22 +02:00
twinaphex ed6f682754 Make code more similar to gl2 video driver 2019-08-12 21:07:12 +02:00
twinaphex fdd45f1f6b (glcore) memset is unnecessary 2019-08-12 20:55:46 +02:00
twinaphex 2a631bd031 (glcore) Turn this into macro 2019-08-12 20:52:33 +02:00
twinaphex 69a195fc5c Cleanups 2019-08-12 19:35:36 +02:00
twinaphex 3ae447420e Cleanups 2019-08-12 19:33:50 +02:00
jdgleaver 5ac152a5f3 (glslang_util) Remove C++ 'isms' (where possible) 2019-08-12 13:10:50 +01:00
twinaphex a45c9b6eb4 Duplicate aspect ratio code that was being ran twice 2019-08-12 12:52:40 +02:00
Twinaphex a88b357817
Merge pull request #9250 from bparker06/gl_highest
opengl: loop through highest available versions to find a working one
2019-08-09 17:09:13 +02:00
twinaphex ecbd58d3af Small cleanup 2019-08-08 17:04:45 +02:00
twinaphex faa55b4dff glslang_read_shader_file - potential leak here 2019-08-08 16:55:39 +02:00
twinaphex b282125107 Revert "Refactor code for glslang shader presets - buffer entire file"
This reverts commit 0fee6a9ef4.
2019-08-08 16:36:34 +02:00
twinaphex 83c113cb59 Cleanups 2019-08-08 14:57:28 +02:00
twinaphex 211e664e5d (GX2) Cleanups 2019-08-08 14:54:21 +02:00
twinaphex 0fee6a9ef4 Refactor code for glslang shader presets - buffer entire file
into memory before passing it on
2019-08-08 04:55:22 +02:00
Brad Parker db53e54b15 cleanup 2019-08-07 14:46:47 -04:00
Brad Parker b97069aa6d opengl: remove unnecessary second check for requested version at the end, add ES1/2 version checks when built with ES3, add 3.1/3.0 version checks 2019-08-07 12:24:24 -04:00
jdgleaver bcfc5db7d8 (video_shader_parse) Optimise parsing of (non-slang) shader parameters 2019-08-07 17:19:18 +01:00
Brad Parker 7b96ee1a31 windows buildfix 2019-08-06 22:01:49 -04:00
Brad Parker 1c1db0a7de opengl: add missing 4.x versions to try, fail early if requestion version does not work 2019-08-06 17:53:15 -04:00
Brad Parker 7479245875 opengl: loop through highest available versions to find a working one, only do hwapi check on glx/wgl for now 2019-08-05 10:46:17 -04:00
Brad Parker cb2be97e7d fix unused warning, add extra info to cdrom print 2019-07-31 17:51:58 -04:00
twinaphex 65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
twinaphex 81d276fa11 (D3D9 HLSL) Fix two warnings with cxx_BUILD 2019-07-26 17:29:53 +02:00
twinaphex 453cc3dcbd (video context driver) has_Windowed can be degraded to a simple
boolean variable
2019-07-26 06:23:20 +02:00
twinaphex dfc85f5908 Simplify win32_has_process 2019-07-26 06:10:02 +02:00
LazyBumHorse 5e0aba0589 Revert "(UWP) UWP cannot deal with relative paths, turn them into absolute"
This reverts commit 8b0f083a4e.
2019-07-25 14:31:18 +02:00
Twinaphex 52ef1af14e
Merge pull request #9137 from LazyBumHorse/realpath
replace realpath() by custom code which does not resolve symlinks
2019-07-24 22:20:38 +02:00
orbea 779fbabc79 Fix CXX_BUILD=1 with libsixel. 2019-07-22 14:24:40 -07:00
Roman Fomin e01095a51b Fix maintaining aspect ratio 2019-07-23 01:33:43 +07:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
Twinaphex 1661f86ec0
Merge pull request #9154 from LazyBumHorse/shader_paths
simplify video_shader_read_conf_preset() calls
2019-07-22 01:21:47 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
LazyBumHorse f8b92770d4 simplify video_shader_read_conf_preset() calls 2019-07-21 18:15:28 +02:00
twinaphex b33eb9bacf Cleanups 2019-07-21 12:13:04 +02:00
Twinaphex 6704a66a57
Merge pull request #9144 from yoshisuga/macos_fix_shader_ref
macos: fix call to video_shader_read_conf_preset
2019-07-21 00:36:14 +02:00
twinaphex b6b22a9a32 More shader refactors - make sure we can compile entirely
without shader support if HAVE_CG, HAVE_GLSL, HAVE_SLANG
and HAVE_HLSL are all not defined
2019-07-21 00:34:07 +02:00
Yoshi Sugawara f292a5b9cb macos: fix call to video_shader_read_conf_preset 2019-07-20 12:08:37 -10:00
Twinaphex 388c4857d3
Merge pull request #9140 from LazyBumHorse/shader_paths
much improved handling of relative shader paths
2019-07-20 21:54:58 +02:00
twinaphex 14dfb91a60 Buildfix for C89 2019-07-20 21:33:09 +02:00
LazyBumHorse 2245af23e9 much improved handling of relative shader paths
- save texture paths in relative format as well
 - always write portable relative paths on Windows using '/' instead of '\'
 - remove an ancient piece of code that could sometimes fail loading relative paths
 - fix absolute path handling between different drives for Windows
 - integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex a0060182e3 Add more ifdefs covering HAVE_THREADS and HAVE_AUDIOMIXER 2019-07-20 16:09:39 +02:00
twinaphex d905986a52 Rename functions - change rarch_ prefix to retroarch_ 2019-07-20 12:43:43 +02:00
twinaphex ac47f54a8e (Win32) Not sure why menubar was disabled when threaded video is
enabled, going to assume enabling it is thread-safe
2019-07-20 11:45:28 +02:00
twinaphex c4c7a1b8cc (Vulkan) Dehardcode application name 2019-07-19 20:12:12 +02:00
twinaphex b747bb22f4 Properly dehardcode program name now 2019-07-19 20:08:45 +02:00
twinaphex b04e057b5d Revert "(Win32/Vulkan) Dehardcode more program name strings"
This reverts commit 5cefcb8327.
2019-07-19 19:39:43 +02:00
twinaphex 5cefcb8327 (Win32/Vulkan) Dehardcode more program name strings 2019-07-19 19:27:24 +02:00
Twinaphex db6a4f8368 (UI Companion) Get rid of unused iterate function callback 2019-07-19 13:59:07 +02:00
twinaphex 4c69dad0ce Define DEFAULT_MAX_PADS inside config.def.h - get rid of the messy
MAX_PADS macros everywhere
2019-07-19 12:55:38 +02:00
twinaphex 44efbd47c2 Prevent null pointer dereference 2019-07-18 21:00:35 +02:00
twinaphex da29fd61bb (shader_vulkan.cpp) Fix another 'declaration hides parameter' warning 2019-07-18 19:25:25 +02:00
twinaphex b2946f4f1e egl_swap_buffers - be safer 2019-07-18 18:54:26 +02:00
twinaphex 18e67c12c7 (GLSL) Set prg ID to 0 after running glDeleteProgram 2019-07-18 18:31:37 +02:00
twinaphex 0cdfd4c542 Use config_file_new_from_path_to_string entirely 2019-07-18 16:15:02 +02:00
twinaphex c0787accc3 Use config_file_new_from_path_to_string 2019-07-18 12:13:09 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
LazyBumHorse 208d23b39d fix hanging window under Windows 7 with threaded video 2019-07-17 23:27:43 +02:00
Twinaphex 5dca2234cd
Merge pull request #9094 from alphanu1/master
Updates Porches and Super width
2019-07-13 07:47:14 +02:00
twinaphex b7a85d392f Silence warnings 2019-07-12 16:31:16 +02:00
twinaphex 27a65714f2 Remove some globals 2019-07-12 00:21:31 +02:00
alphanu1 df301bcbe7 Updates Porches and Super width
Updates Porches and Super width Calculation
2019-07-11 20:50:33 +01:00
twinaphex bddfca940e Add HAVE_GDI switch 2019-07-11 13:18:38 +02:00
twinaphex e02ff9c40c (Win32) Reimplement PeekMessage implementation - this should be at the
start of the while loop
2019-07-11 03:49:33 +02:00
twinaphex a867e3916e (D3D9) Silence warning when neither HAVE_MENU or HAVE_OVERLAY
is defined
2019-07-11 01:10:00 +02:00
twinaphex dc40a2ab66 (Travis) Another Travis buildfix 2019-07-11 01:03:35 +02:00
twinaphex d06ce4df13 Buildfix for Travis 2019-07-10 23:56:47 +02:00
twinaphex 278063d157 (CocoaGL) Silence warning when building without HAVE_VULKAN 2019-07-10 05:48:26 +02:00
twinaphex 1d6bae7b35 (Linux) fix --disable-overlay 2019-07-10 05:43:05 +02:00
twinaphex 09f5d2c95d Fix compilation when configuring with --disable-overlay 2019-07-10 05:39:50 +02:00
twinaphex f0f5c32b51 Remove state tracker - legacy code - we can revisit this later
and integrate it in a way so that it scales across all drivers
2019-07-09 07:39:38 +02:00
jdgleaver 22e7252823 Normal2x/Scanline2x video filters: Fix misaligned address error 2019-07-05 10:52:56 +01:00
twinaphex 3cfa3ff1d8 Cleanups 2019-07-04 22:05:38 +02:00
twinaphex 6c2f65c585 Fix code analysis warnings 2019-07-04 21:54:51 +02:00
LazyBumHorse f5497a4249 fix some bugs found through Clang Static Analyzer:
- task_content.c, load_content_from_compressed_archive: fix use after free
 - platform_win32/uwp: fix frontend_..._get_powerstate never returning FRONTEND_POWERSTATE_NONE
 - platform_win32/uwp: fix whitespace
 - cheevos.c: fix potential use after free in a loop, just to be save
2019-07-04 21:15:19 +02:00
Dwedit 81b6703912 Fix wrong reference count for D3D12 adapters (crash at close due to a destroyed adapter being released again) 2019-07-03 15:35:06 -05:00
Dwedit 10343d51b9 Small fixes for D3D12: Do not return false when enumerating, and add a null check for the Fence object 2019-07-02 19:46:02 -05:00
Twinaphex dac33fca83
Merge pull request #9031 from stoofin/libvulkan1
Fall back to libvulkan.so.1 if libvulkan.so isn't present
2019-06-29 14:39:04 +02:00
Twinaphex 5d56302a31
Merge pull request #9033 from yoshisuga/ios_remove_pause_indicator
iOS: remove pause indicator
2019-06-29 12:12:32 +02:00
CatGreen90 550ea0f143 Update android_ctx.c (#9032) 2019-06-27 19:37:21 -05:00
stoofin 1b57cf6112 Fall back to libvulkan.so.1 if libvulkan.so isn't present 2019-06-27 14:08:14 -07:00
LazyBumHorse c4530eb3f4 d3d9: add Cg/HLSL shader runtime check depending on the used renderchain 2019-06-25 10:57:46 +02:00
LazyBumHorse 17ec59ff21 enable Cg shader flag for d3d9 2019-06-24 23:41:05 +02:00
Twinaphex f23497fd80
Merge pull request #9014 from LazyBumHorse/fix_d3d9
fix d3d9 not rendering xmb and temporarily disable widgets due to segfault
2019-06-24 16:07:03 +02:00
LazyBumHorse 1f69f3960a fix d3d9 not rendering xmb and temporarily disable widgets due to segfault 2019-06-24 15:42:55 +02:00
twinaphex 405d3fec67 (CXX_BUILD) Silence warning 2019-06-24 15:09:56 +02:00
Hans-Kristian Arntzen 135ff5e7a5 Fixup resource remapping in MSL/HLSL.
Seemed rather sketchy, but this must be tested a bit.
2019-06-24 14:25:04 +02:00
Hans-Kristian Arntzen 50ea084385 Update SPIRV-Cross. 2019-06-24 13:42:46 +02:00
Twinaphex 596b375da5
Merge pull request #9001 from LazyBumHorse/metal_cocoa_flags
fix shader flags for metal
2019-06-22 14:53:18 +02:00
LazyBumHorse b8258a711a workaround for metal not being able to poll shader flags during init 2019-06-22 14:22:34 +02:00
Twinaphex 98c1f04635
Merge pull request #8998 from LazyBumHorse/fix_gl_set_shader
fix black screen in gl if video shaders were switched from on to off in the shader menu
2019-06-22 13:18:25 +02:00
LazyBumHorse b5199d7921 fix black screen in Metal 2019-06-22 11:07:08 +02:00
LazyBumHorse e5421940be fix gl's and d3d9's set_shader not returning to stock if path is NULL 2019-06-21 14:10:55 +02:00
twinaphex 6b9238198b Cleanups 2019-06-21 04:47:51 +02:00
twinaphex 761636a540 (Wiiu) add forward declaration 2019-06-20 21:10:07 +02:00
twinaphex 3a9a8d8d70 (WiiU) Buildfix 2019-06-20 08:38:40 +02:00
twinaphex 48eeb15d2c Silence warnings 2019-06-20 01:16:05 +02:00
Twinaphex c523acbfe7
Merge pull request #8989 from LazyBumHorse/fake_context
temporary workaround for d3d10-12, gx2 not being able to poll flags during init
2019-06-20 00:37:53 +02:00
twinaphex 71e86bcc9c (GLSL) Put this around HAVE_GLSL ifdefs 2019-06-19 22:34:05 +02:00
twinaphex c57aa566e5 (CGL) Add missing header 2019-06-19 20:53:24 +02:00
LazyBumHorse 7b6444d911 temporary workaround for d3d10-12, gx2 not being able to poll flags during init 2019-06-19 19:10:40 +02:00
twinaphex 5d91af629e Set SHADERS_SLANG flag for D3D10/11/12 and query the video driver poke
interface's 'get flags' function before querying the video context
driver's 'get flags' function (D3D10/11/12/WiiU don't have a context
driver at all)
2019-06-19 03:18:28 +02:00
Twinaphex dd315ba7bc
Merge pull request #8985 from bparker06/d3d_gpu_select
d3d10/11/12: add GPU selection
2019-06-19 00:19:51 +02:00
twinaphex d63f4afc57 Add missing header include 2019-06-18 22:46:37 +02:00
Brad Parker d01f04c146 d3d10/11/12: add GPU selection 2019-06-18 16:35:50 -04:00
root e8b07e93a4 fix missing include 2019-06-18 23:19:09 +03:00
Twinaphex a9a1ff0047
Merge pull request #8979 from LazyBumHorse/fix_dolphin_crash
workaround for crash due to glcore not always using at least OpenGL 3.2
2019-06-18 20:18:14 +02:00
LazyBumHorse c20c67bd3a proper shader compatibility checks
- move shader flags from the video drivers to the context drivers
 - rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
 - implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
 - use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
 - remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
LazyBumHorse 692dc9f6a9 refactor shader checks affected by last commit and more:
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
 - d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
 - configuration.c: remove check_shader_compatibility
 - shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
 - shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
 - menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
 - video_shader_parse.c: add `video_shader_to_str` for easier logging
 - remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
LazyBumHorse 42e35c825f refactor some video_shader_parse functions
- video_shader_parse_type()'s fallback only worked for NULL paths and was wrongly used, now returns RARCH_SHADER_NONE like video_shader_get_type_from_ext().
 - video_shader_get_type_from_ext() should not be checking video driver flags, this is instead done by video_shader_is_supported()
 - video_driver_get_all_flags() did not actually 'get' flags, changed to video_driver_test_all_flags()

workaround for crash due to glcore not always using at least OpenGL 3.2
2019-06-18 13:12:56 +02:00
twinaphex 0bb4d0f24f (dispserv_x11.c) Add math.h 2019-06-17 21:07:16 +02:00
twinaphex c827e1b67f Turn into static function 2019-06-17 21:05:39 +02:00
LazyBumHorse 76438fa098 workaround for crash due to glcore not always using at least OpenGL 3.2 2019-06-17 18:28:04 +02:00
twinaphex f061941456 Integrate record_driver.c into retroarch.c 2019-06-17 16:23:46 +02:00
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
twinaphex 127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
LazyBumHorse 6514b80ff2 Revert "allow saving and properly loading 0 pass shader presets"
This reverts commit b54a360ab8.
2019-06-16 23:05:41 +02:00
twinaphex b26a5badfd Fix typo 2019-06-15 10:00:20 +02:00
twinaphex fc62f7afaa Update 2019-06-15 09:58:34 +02:00
twinaphex f60306b232 Rename read_conf_cgp/write_conf_cgp to
read_conf_preset/write_conf_preset
2019-06-15 09:00:35 +02:00
Yoshi Sugawara 45b36d7d47 iOS: remove pause indicator; show the native UI menu using 4-finger swipe down gesture 2019-06-14 08:35:33 -10:00
jdgleaver 973a783b9c Add 'Scanline2x' CPU video filter 2019-06-14 15:16:24 +01:00
Brad Parker c962da0ddb add video setting to select gpu (currently implemented for vulkan) 2019-06-13 12:47:08 -04:00
Twinaphex 0317b59da3
Merge pull request #8946 from LazyBumHorse/master
allow saving and properly loading 0 pass shader presets
2019-06-13 00:54:37 +02:00
jdgleaver e6c236d275 (Wii) Add widescreen RGUI support 2019-06-11 15:57:50 +01:00
LazyBumHorse b54a360ab8 allow saving and properly loading 0 pass shader presets 2019-06-09 21:34:00 +02:00
LazyBumHorse 2816730b2f make shader presets use relative paths
Also change fill_pathname_resolve_relative() to apply path_resolve_realpath() as well
2019-06-07 16:11:06 +02:00
Tatsuya79 3b31dafa7e
glcore rotation fix for desmume 2019-06-06 20:11:08 +02:00
Tatsuya79 1cc307a879
glcore fix wrong rotation with HW cores 2019-06-06 17:05:07 +02:00
twinaphex fdd09a8b06 Refactor task screenshot 2019-06-06 15:48:50 +02:00
twinaphex 280cec702b video_driver_supports_viewport_read should only check if
taking screenshots with the GPU backbuffer is supported,
move outside settings check to callee
2019-06-06 15:06:27 +02:00
twinaphex 43d27006ce Rewrite '== true' in our own code 2019-06-06 13:51:56 +02:00
twinaphex 6d17d11132 Rewrite '== false' to '!' for our own code 2019-06-06 13:50:39 +02:00
Ash Logan 24fba02a9f (GX2) Display menu texture at full opacity
rgui does its own transparency effects in the texture, so we don't have 
to add another 50% on that
2019-06-05 23:19:35 +10:00
Ash Logan 87be0d366f (GX2) Use correct pixelformat ordering for menu texture
This fixes up some backwards colours on wiiu, resulting in all the
themes looking lovely.
2019-06-05 23:18:09 +10:00
Twinaphex faf612098f
Merge pull request #8912 from jdgleaver/remove-history-favourites
Add option to show 'remove playlist entry' only on history/favourites
2019-06-04 19:35:27 +02:00
jdgleaver 736ff13e35 (GEKKO) Add optional overscan correction 2019-06-04 15:50:47 +01:00
jdgleaver 80c9475fa4 Add option to show 'remove playlist entry' only on history/favourites 2019-06-04 11:29:51 +01:00
Ash Logan 3d40a3bcaf (GX2) Respect filtering settings for menu 2019-06-03 21:41:03 +10:00
Ash Logan 3461955dae (GX2) Scale menu to viewport size 2019-06-03 21:38:40 +10:00
Ash Logan ab4ca8cf1b (GX2) Use correct menu coordinates to render menu 2019-06-03 20:35:46 +10:00
Twinaphex cc22680480
Merge pull request #8897 from orbea/khr
Try using the udev or linuxraw input drivers for khr_display.
2019-06-02 09:07:35 +02:00
orbea a9c9d0efc3 Try using the udev or linuxraw input drivers for khr_display.
When using vulkan with a khr_display context while the x input
driver is set RA will fail to start. This changes it to try setting
the udev and then linuxraw input drivers in such cases.

This code is copied from gfx/drivers_context/drm_ctx.c
2019-06-01 19:16:27 -07:00
orbea 44c62c8a37 Fix shaders init with glcore + kms.
See https://github.com/libretro/RetroArch/issues/8834
2019-06-01 13:32:06 -07:00
Twinaphex 5183160142
Merge pull request #8894 from LazyBumHorse/master
(wgl_ctx) set GFX_CTX_FLAGS_SHADERS_SLANG for glcore
2019-06-01 21:35:38 +02:00
LazyBumHorse a6f042b320 wgl_ctx: set GFX_CTX_FLAGS_SHADERS_SLANG for glcore 2019-06-01 21:21:45 +02:00
twinaphex 4c5f9ee65b Cleanups 2019-05-31 17:34:32 +02:00
twinaphex e680fab6e1 (Cheevos) Fix Cheevos
(Wayland) Hopefully finally fix EGL issues
2019-05-30 11:08:00 +02:00
LazyBumHorse 9ab49b7b2c Add FrameDirection for metal and gx2_gfx 2019-05-29 21:06:44 +02:00
LazyBumHorse b54ad4d67f implement FrameDirection slang semantic for d3d10,11,12 2019-05-29 18:09:37 +02:00
LazyBumHorse 4c272973f1 fix frame_direction type for vulkan 2019-05-29 15:29:37 +02:00
twinaphex 9d585ecd94 (EGL) Buildfixes 2019-05-29 10:02:03 +02:00
twinaphex 4a08b3e239 (Wayland ctx) Add missing HAVE_EGL ifdefs 2019-05-27 14:55:41 +02:00
twinaphex e1b39f6621 (WinRT) Make dxgi_update into a stub function for WinRT 2019-05-26 08:22:16 +02:00
twinaphex 17b2019e11 (Vulkan) Fix potential memory leak 2019-05-26 08:18:42 +02:00
Brad Parker 086b3ccfb7 gl1: ignore alpha in core video, fixes XRGB8888 rendering in some cores 2019-05-25 17:08:30 -04:00
LazyBumHorse d12dba6db4 (hotfix) Don't poll vendor specific 'patch' version 2019-05-25 17:51:03 +02:00
LazyBumHorse 9894f48fb0
added paranoid NULL check 2019-05-25 13:10:13 +02:00
LazyBumHorse 662b473e9f don't hardcode shader cross compilation target version but poll it 2019-05-25 12:32:34 +02:00
LazyBumHorse ee3cda8abf added "FrameDirection" slang semantic and implementation for glcore and vulkan 2019-05-24 22:11:12 +02:00
Brad Parker f2e15af6ba griffin: linux buildfixes 2019-05-22 14:07:56 -04:00
twinaphex 6aed230930 Reimplement 'Take Screenshot' - if GPU-accelerated viewport screenshots
are not available, resort to raw screenshots instead
2019-05-22 07:08:11 +02:00
Brad Parker 711ea77390 glcore: store GPU device/version string 2019-05-21 21:43:31 -04:00
Huw Pascoe 8e9913a1ab Fix video_layout crash on unsupported drivers 2019-05-18 18:19:55 +01:00
Dwedit 24fa0cd5b5 Move `pool_info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;` to after the other variable declaration (so all variable declarations happen before any other code) 2019-05-17 14:29:23 -05:00
twinaphex ebaa5b9941 Undefine HAVE_VIDEO_LAYOUT for now instead of implicitly enabling
it for every platform - will have to be individually enabled for
each platform first after rigorous testing
2019-05-13 01:57:26 +02:00
twinaphex ecb6318f40 Some buildfixes 2019-05-13 01:07:02 +02:00
Huw Pascoe acb28a38c4 video_layout gl basic implementation 2019-05-11 14:23:26 +01:00
Huw Pascoe 2c56011f84 video_layout interface 2019-05-11 09:58:48 +01:00
Huw Pascoe 6aaa4df394 video_layout 2019-05-11 09:58:46 +01:00
twinaphex 3e350afe93 video_shader_parse_pass - free pointer earlier 2019-05-11 08:56:41 +02:00
Nathan S edb37ccf70 menu widgets: cleanup fix and draw above overlay for gl and vulkan (#8732)
* menu_widgets: cleanup properly all widgets when loading or closing content

* gl: draw menu widgets above overlay

* vulkan: draw menu widgets above overlay

* vulkan: draw OSD above overlay

* menu_widgets: better cleanup
2019-05-11 06:26:40 +02:00
twinaphex 52dd39f98a Another buildfix 2019-05-10 20:17:20 +02:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
Brad Parker c39765a5b7 set current screen orientation on startup so we don't reset back to normal if we started with a rotated display 2019-05-09 11:11:40 -04:00
Nathan S 4fad77304f menu_widgets: better sanity check for threaded video wrapper (#8722) 2019-05-08 01:56:39 +02:00
twinaphex 7530436918 Better way to check if there is a resolution list - should
hide this entry on Android
2019-05-07 00:32:07 +02:00
Nathan S 775c272029 Menu widgets stuff + vulkan sanity check (#8710)
* task_screenshot: fix hang with menu widgets

* word_wrap: add max_lines parameter

* vulkan: better instance creation sanity check
2019-05-06 21:10:57 +02:00
twinaphex 68e91e3121 video_display_server_get_flags - conditional was wrong 2019-05-06 13:18:25 +02:00
twinaphex 0b426b2022 This should hide the CRT SwitchRes option on systems
where it's not supported
2019-05-05 16:33:25 +02:00
twinaphex 360f8189e0 (D3D8/D3D9) Screenshots don't seem to work, disabling 2019-05-05 14:25:16 +02:00
twinaphex f349410082 (CTR/3DS) hide 'Take Screenshot' since screenshots are not implemented
anyway
2019-05-05 14:14:14 +02:00
twinaphex 3b110c0e3b (D3D8) Add 'Screenshots supported' 2019-05-05 13:55:12 +02:00
twinaphex c3d2b190f2 (dispmanx) Implement get_flags 2019-05-05 13:49:06 +02:00
twinaphex a0b2d97ca3 Hide 'Take Screenshot' for video drivers that don't support
taking screenshots yet
2019-05-05 13:46:26 +02:00
orbea 9e9849170d Silence unused function with --disable-menu.
gfx/drivers/gl_core.c:1529:13: warning: ‘gl_core_draw_menu_texture’ defined but not used [-Wunused-function]
 static void gl_core_draw_menu_texture(gl_core_t *gl, video_frame_info_t *video_info)
             ^~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-04 08:26:49 -07:00
natinusala 636f2ddb28 menu_widgets: implement the user setting 2019-05-03 21:25:20 +02:00
twinaphex 8b0f083a4e (UWP) UWP cannot deal with relative paths, turn them into absolute
paths first before reading shader pass files
2019-05-02 18:24:54 +02:00
twinaphex 066643ac6e (GX2) Buildfix 2019-05-01 00:11:43 +02:00
twinaphex 29b8ddef28 Move video_driver_menu_settings 2019-05-01 00:09:49 +02:00
twinaphex 39eadbab6f Use string_concat in more performance critical areas 2019-04-30 21:17:51 +02:00
twinaphex 4b22522ae0 We need faster string concatenation for performance-critical
codepaths - this is being run every frame
2019-04-30 19:36:40 +02:00
twinaphex bc2bdd5734 config_file_read not needed anymore 2019-04-30 13:37:10 +02:00
twinaphex e76a8e6a75 (Apple/STB) Add Apple to STB unicode 2019-04-30 11:40:06 +02:00
twinaphex c2f95940fb (GL1) Whether GL1 driver has windowed mode support or not
depends on the video context driver and not the video driver itself
2019-04-29 07:21:37 +02:00
twinaphex 4c3e0d44b8 Revert "Start using string_is_equal_memcmp and"
This reverts commit 26d6aee1eb.
2019-04-29 04:04:33 +02:00
twinaphex 26d6aee1eb Start using string_is_equal_memcmp and
string_is_equal_memcmp_fast
2019-04-28 17:23:11 +02:00
twinaphex 8784d21c74 (STB) WinRT/UWP can't deal with relative paths, so don't look for
osd-font.ttf
2019-04-28 07:24:34 +02:00
twinaphex 2c47d571aa Use path_is_valid instead of filestream_exists when we only
need to know if a file exists on the filesystem
2019-04-27 14:01:50 +02:00
twinaphex 3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex 1f53eea4ee (Cocoa GL/GLES) Set this flag for OpenGLES 2019-04-26 02:27:48 +02:00
twinaphex ff40ae2486 Refactor slang_preprocess.cpp - try to remove auto variables 2019-04-25 04:07:18 +02:00
twinaphex a42b8f616f (slang reflection) Cleanups - start getting rid of most auto
variables
2019-04-25 03:54:04 +02:00
twinaphex 0bae77d199 (Shaders Vulkan/GLcore) Cleanups 2019-04-25 02:37:13 +02:00
twinaphex 15afaedaa8 (Shaders vulkan/GLcore) Simplify 2019-04-25 02:34:26 +02:00
twinaphex e40c3ec07b (Shader Vulkan/GL core) Make code more the same 2019-04-25 01:42:56 +02:00
twinaphex 55b53929db (shader GL/Vulkan) Cleanups 2019-04-24 23:45:57 +02:00
twinaphex 604403fe90 (shader_vulkan) Simplifications - start making shader_gl_Core
and shader_vulkan more alike
2019-04-24 23:13:42 +02:00
twinaphex e42dae928e (gl shader core) Simplifications 2019-04-24 22:20:48 +02:00
twinaphex 51a69dff44 (gl core shaders) Simplification 2019-04-24 22:10:21 +02:00
twinaphex 3225876f0b (shader_gl_core.cpp) Simplify 2019-04-24 20:25:37 +02:00
twinaphex a60844897f (Shader GL core) Simplify some code 2019-04-24 04:24:48 +02:00
Twinaphex e9bbc8d8dd (gl_core.c) Remove unused variable 2019-04-24 03:49:34 +02:00
twinaphex c55873c324 (GL_CORE) More updates 2019-04-24 03:33:32 +02:00
twinaphex 59b45f7812 Start making HAVE_OPENGL_CORE independent 2019-04-24 03:23:57 +02:00
twinaphex a6e18f23a8 (stb font unicode) Put MSVC check in again - MSVC 2005 and up get
Unicode STB font
2019-04-23 00:35:04 +02:00
twinaphex 31c7abce64 (MSVC 2003) Fonts now show up for GL 2019-04-22 23:30:24 +02:00
twinaphex c4d99586ba (MSVC 2003) Compile in STB unicode for MSVC 2003 2019-04-22 23:07:10 +02:00
twinaphex 04d062b3d4 (MSVC2003) Enable HAVE_OPENGL1; make HAVE_OPENGL1 independent from
HAVE_OPENGL
2019-04-22 22:48:23 +02:00
twinaphex 146b4ccc50 Use config_file_read in more places 2019-04-22 02:20:04 +02:00
twinaphex 317a443741 Use config_file_read in more places 2019-04-22 02:10:12 +02:00
twinaphex 955a149ce9 Use config_file_read where we can assume we are reading a file 2019-04-22 01:56:24 +02:00
orbea 1e86824e96 wayland: Fix build.
Fixes https://github.com/libretro/RetroArch/issues/8614
2019-04-21 08:11:26 -07:00
twinaphex 7372bafb44 Remove RARCH_CTL_SET_LIBRETRO_PATH 2019-04-21 06:03:02 +02:00
twinaphex 8e638f435a (Wayland) wl_array_for_each macro fails with CXX_BUILD - have to
roll our own macro instead doing it right
2019-04-20 20:33:22 +02:00
twinaphex 499235cd40 (CXX_BUILD) Another buildfix 2019-04-20 19:55:50 +02:00
twinaphex 7b3be5eddf (wayland) Fix some CXX_BUILD issues; possibly not all 2019-04-20 18:42:23 +02:00
Brad Parker e7dbac7eb0 prevent null derefs found by scan-build 2019-04-18 11:46:53 -04:00
jdgleaver a9a5782cc0 (3DS) Fix screen tearing when running 50Hz content 2019-04-16 15:44:47 +01:00
jdgleaver 54e1711f9a (3DS) Sanitise/Improve display mode selection 2019-04-15 17:05:55 +01:00
Brad Parker 95145ec0d4 remove debug code 2019-04-12 21:17:04 -04:00
twinaphex 3619fae2d9 (LGTM) Silence some warnings 2019-04-13 02:15:26 +02:00
Brad Parker b8471aa3dc gl1: add gpu hard sync support and print osd statistics 2019-04-12 19:28:34 -04:00
Huw Pascoe fed06044c4 silence warnings 2019-04-12 17:32:11 +01:00
natinusala f941d4e625 menu widgets: add first achievement notification widget 2019-04-11 16:46:41 +02:00
twinaphex 702c889cd1 (D3D10/11/12) Menu widgets can now appear ingame 2019-04-11 02:22:21 +02:00
jdgleaver 136762f6a2 Fix text display issues when using Japanese (and other unicode-dependent language) text with stb_unicode 2019-04-09 15:51:33 +01:00
Themaister f82601c4a8 glcore: Fix GLES build. 2019-04-08 21:17:13 +02:00
twinaphex e206230a89 (Linux) Use STB unicode font renderer for Linux 2019-04-08 20:12:22 +02:00
twinaphex 0af7167586 (GL1) Add menu widgets support 2019-04-08 18:58:26 +02:00
Twinaphex 4d429ea4d8
Merge pull request #8562 from jdgleaver/stb-fonts
Fix text alignment when using stb_unicode
2019-04-08 18:43:59 +02:00
twinaphex c12e8dea07 (D3D10/11) All struct members are already being set 2019-04-08 18:42:52 +02:00
jdgleaver 38d2febba5 Fix text alignment when using stb_unicode 2019-04-08 17:37:23 +01:00
natinusala 7a3caf82d0 menu widgets: reimplement FPS counter 2019-04-08 17:06:04 +02:00
jdgleaver 4065dbf18e (Menu Widgets) Fix text alignment issues for ctr, metal and vita2d drivers 2019-04-08 15:13:19 +01:00
jdgleaver 9fff07e589 (Menu Widgets) Fix text alignment issues with Vulkan and D3D video drivers 2019-04-08 13:35:35 +01:00
Brad Parker 9579804c72 gl1: add overlay support 2019-04-05 23:07:59 -04:00
Brad Parker 48dc251303 gl1: add scissor reset from gl 2019-04-05 18:17:11 -04:00
twinaphex a5aa4d731b Use memset instead of bzero 2019-04-03 16:56:50 +02:00
twinaphex ab33d16da1 Small cleanup 2019-04-03 16:33:16 +02:00
twinaphex 25ba8f4ab0 (GL1) GL1.x won't have mipmapping support 2019-04-03 16:13:01 +02:00
stellarporter 11e4b0b6ef
gfx video filters: blargg ntsc snes conflicts
emscipten: avoid global symbol multiply defined error (core compiling its own snes_ntsc.c library)
2019-03-23 20:22:21 -05:00
orbea 3fb4ed753d Fix caca warning.
One too many lines were removed in
commit f67bfa24ef.
2019-03-19 21:54:51 -07:00
twinaphex cd75045792 Simplify video_driver_frame - simplify FPS reporting printout 2019-03-19 16:03:19 +01:00
twinaphex 4fb95db80b Simplify video_driver_frame 2019-03-19 04:32:36 +01:00
twinaphex 46dc4508f4 Buildfix for Cg 2019-03-18 16:32:46 +01:00
twinaphex 794f9c8968 (GL) Add comments 2019-03-18 16:02:28 +01:00
twinaphex 7c93da1360 (GL2) Simplifications 2019-03-18 15:57:43 +01:00
twinaphex 819016b00c Move video_shader_driver_init to gl.c 2019-03-18 15:52:21 +01:00
twinaphex 27928081cf Cleanups 2019-03-18 15:27:37 +01:00
twinaphex f67bfa24ef Get rid of video_poke_interface set_mvp 2019-03-18 15:19:11 +01:00
twinaphex fe1255094f Get rid of now unused set_coords in video_driver_poke_interface 2019-03-18 05:04:23 +01:00
twinaphex 03641f2378 (GL1) Cleanups 2019-03-18 04:50:50 +01:00
twinaphex ab814efc62 (GL raster font) Don't have to call video_driver_set_coords/
video_driver_set_mvp anymore
2019-03-18 04:46:27 +01:00
Brad Parker a8a06d498c gl1: fix matrix not loading when threaded video is on 2019-03-17 12:46:01 -04:00
Francisco Javier Trujillo Mata adf2743464 Implement CDFS and custom file descriptor support 2019-03-15 20:19:14 +01:00
Themaister e3a88e8806 glcore: Set frame count in shader interface. 2019-03-15 15:36:18 +01:00
twinaphex c8eb85ec2e Implement gl_core_wrap_type_to_enum 2019-03-14 20:04:04 +01:00
Hugo Hromic b10a318f16 (dispserv_x11.c) Silence warning 2019-03-14 16:13:09 +00:00
Hugo Hromic 136c08a4bb (x11_common.c) Fix C89 build 2019-03-14 16:09:34 +00:00
twinaphex 643cd1923e CXX_BUILD / C89_BUILD buildfixes 2019-03-14 14:14:44 +01:00
Brad Parker 8064672f11 gl: set shader data to null after deinit 2019-03-13 16:22:04 -04:00
twinaphex d744ed4666 Reimplement video_shader_is_supported 2019-03-13 20:39:36 +01:00
twinaphex 57e11a10e7 Reimplement video_shader_get_type_from_ext 2019-03-13 20:32:19 +01:00
Brad Parker 97247dbaec gl1: check for vender/renderer was in the wrong place 2019-03-13 14:44:03 -04:00
Themaister beff1144f6 Fix uniform override mistake in glcore shader stack.
glGetUniformLocation returned -1 after 0, and dropped uniforms on the
floor.
2019-03-13 18:28:05 +01:00
Themaister ecc7bc0cf2 Fix compile error and flag errors on X/Wayland. 2019-03-13 18:27:44 +01:00
twinaphex 3691f4fabf Fix CXX_BUILD errors 2019-03-13 17:00:52 +01:00
Twinaphex dd5eca0f46 (OSX) Buildfix 2019-03-13 14:31:03 +01:00
twinaphex b347b26d61 Reimplement shader flags being set - GL core should have only
Slang support and no GLSL, with the GL2 driver it is dependent
on the context driver
2019-03-13 14:06:50 +01:00
twinaphex cd77093588 Reimplement gl2_get_flags to no longer be reliant on shader driver's
get flags implementation
2019-03-13 12:12:02 +01:00
Twinaphex 1a8b185c5e
Merge pull request #8455 from Tatsuya79/patch-1
glcore, fix rotation
2019-03-13 11:38:41 +01:00
Twinaphex 6a31f87a85
Merge pull request #8457 from phcoder/kbdwl
wayland: fix keyboard handling.
2019-03-13 11:34:26 +01:00
twinaphex 191d0c0309 Add get_flags to GL shader interface 2019-03-13 11:21:00 +01:00
twinaphex 365053266f Add more flags 2019-03-13 11:04:52 +01:00
twinaphex 2c024f400e Start hooking up extra shader capability stats - not done yet 2019-03-13 00:54:11 +01:00
Vladimir Serbinenko 2d5715b807 wayland: fix keyboard handling.
This bug interferes with my BK-0010 libretro port.
2019-03-12 23:49:46 +01:00
Tatsuya79 16681653b4
glcore, fix rotation 2019-03-12 22:32:47 +01:00
twinaphex 3d06b4aee2 Add comment about hack 2019-03-12 21:47:35 +01:00
cold-brewed 8a6de4adfb (macOS) Add temporary GL hack 2019-03-11 19:16:59 -04:00
twinaphex 6ba6f9e3ec (D3D9) Some buildfixes for C89 2019-03-11 17:07:49 +01:00
twinaphex 104508a29c (GL core) Fix menu widgets 2019-03-11 14:57:25 +01:00
Twinaphex 75102a435f
Merge pull request #8437 from DSkywalk/master
X11 auto-repeat event fixed
2019-03-10 23:17:53 +01:00
David Skywalker 83e7fda272 sorry, fixed typo. 2019-03-09 21:29:21 +01:00
Themaister 1d0b3b96e6 Be a bit more pedantic about which contexts are active. 2019-03-09 20:53:29 +01:00
David Skywalker 46036894d4 fix x11 auto-repeat event 2019-03-09 19:06:01 +01:00
Themaister 37298876fc Clear out FBO on startup.
Some cores seem to rely on it?
2019-03-09 13:15:14 +01:00
Themaister 1ba8c626ed Minor build fixes. 2019-03-09 12:42:23 +01:00
Themaister 4bb17fd6e9 Fix wrong condition for hard sync. 2019-03-09 12:42:11 +01:00
Themaister 07bf62eaba GLcore: Actually bind depth/stencil RT to HW fbo. 2019-03-09 12:30:49 +01:00
Themaister d9b245ce66 Swap order of drivers gl2/glcore. 2019-03-09 12:30:49 +01:00
Themaister 74039617ce Use correct context flags. 2019-03-09 12:30:49 +01:00
Themaister 4adf16b5ed Fix version detection for non-HW cores. 2019-03-09 12:30:49 +01:00
Themaister 3029f96511 Add a new "glcore" driver with slang support.
This driver should sunset the old gl2 driver, but that driver will
likely live on to support really ancient and terrible GL stacks.
All the worst legacy cruft has been ripped out, and it's almost a decent
backend now.

Requirements for slang are GL 3.2+ or GLES3.
Some shaders require features which are not directly compatible with
GLES2 or legacy GL.

This driver shares a lot of concepts from the Vulkan driver.
The slang shader stack and SPIRV-Cross are used to implement the shader
spec, and the menu shaders are also shared with Vulkan.
2019-03-09 12:30:49 +01:00
Brad Parker 9279d06f93 Merge branch 'master' into send_debug 2019-03-07 19:23:41 -05:00
Brad Parker 10df615d14 add "Send Debug Info" option under Help 2019-03-07 19:17:54 -05:00
Francisco Javier Trujillo Mata 652300f674 [PS2] Fixed memory leaks in the ps2_font 2019-03-07 00:14:59 +01:00
Francisco Javier Trujillo Mata 8316d073bc [PS2] Implement Pitch support in the ps2_gfx 2019-03-03 14:08:12 +01:00
Brad Parker a09e110d24 VC6 cannot cast uint64 to double, use int64 instead 2019-03-01 09:10:05 -05:00
twinaphex ebae7ebc79 Input driver - Get rid of 'own driver' mechanism 2019-02-27 17:17:34 +01:00
twinaphex 829aedc6e2 (Video/Audio) Remove 'own driver' mechanism 2019-02-27 17:09:15 +01:00
Brad Parker 433cbb021f temporary crash fix 2019-02-26 23:37:08 -05:00
Brad Parker 4ec71da9a9 x11: using_global_dpy is not restricted to xrandr 2019-02-26 23:37:08 -05:00
Twinaphex d619f14839
Merge pull request #8375 from fjtrujy/feature/PS2DefaultDir
[PS2] Fix Load/Save state
2019-02-27 02:58:03 +01:00
Brad Parker 211515ece1 x11: open display ourself if global one is not available (e.g. with SDL) 2019-02-26 20:23:11 -05:00
Francisco Javier Trujillo Mata 0e7d5ed32b Improvements regarding the ps2 font driver 2019-02-26 21:02:29 +01:00
driver1998 6ea79bca36 Allow winraw and xinput to work without dinput in Windows
Necessary for Windows ARM32 Desktop (RT)
2019-02-26 21:29:43 +08:00
Hugo Hromic 8984702ba8 (dispserv_x11.c) add missing defines and clean-up code
* Removed redundant and unused variables
* Use multiples of eight for array sizes
* Styled code for consistency with the rest
* Quoted string arguments in shell commands
* Added missing `HAVE_XRANDR` define checks
2019-02-23 20:58:51 +00:00
Brad Parker 97b7512420 restore initial screen orientation on exit for x11/win32 2019-02-23 14:15:36 -05:00
Twinaphex adc9ecf4cc
Merge pull request #8335 from natinusala/master
Reintroduce menu widgets (only runloop_msg_queue for now)
2019-02-23 14:22:31 +01:00
Brad Parker 76ca37aaee x11: implement screen orientation support 2019-02-22 19:13:36 -05:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
Brad Parker 8e14d1dd87 whitespace 2019-02-22 19:13:36 -05:00
Brad Parker 477d46d52b update copyright 2019-02-22 19:13:36 -05:00
twinaphex 292c5e93ad Add d3d9_menu_widgets_enabled 2019-02-22 03:13:41 +01:00
Twinaphex 0778847062
Merge pull request #8341 from fjtrujy/feature/PS2AudioImprovement
[PS2] Audio improvement
2019-02-22 01:48:43 +01:00
Francisco Javier Trujillo Mata 7ec160f860 Remove the specific audio thread 2019-02-22 00:01:36 +01:00
twinaphex 74a35d8be1 (GL2) Add GL1 fallback 2019-02-21 21:49:22 +01:00
Brad Parker 0cb6ed7b29 remove tabs 2019-02-21 15:38:18 -05:00
twinaphex eba1c474b5 Fix MSVC 2010 port 2019-02-21 21:34:22 +01:00
twinaphex a39bed3bb1 Silence warnings 2019-02-21 21:31:29 +01:00
natinusala a98cb75549 libnx: disable mesa errors to improve perf 2019-02-21 20:58:23 +01:00
Brad Parker 99f4203abf win32: implement screen orientation support 2019-02-21 14:37:24 -05:00
Twinaphex e3a93ca96e
Merge pull request #8337 from fr500/master
fix #7670 by checking threaded video
2019-02-21 18:05:49 +01:00
radius 814db2c44e fix #7670 by checking threaded video 2019-02-21 11:54:10 -05:00
twinaphex e6d5f427fc (D3D9) Add widgets function call 2019-02-21 17:09:08 +01:00
Brad Parker f5f492845f add setting for screen orientation, with initial android implementation 2019-02-21 00:31:55 -05:00
Francisco Javier Trujillo Mata cf68058e67 Fix issues with the GSFont 2019-02-21 00:38:56 +01:00
Twinaphex 905f67810c
Merge pull request #8312 from bparker06/overlay
gl: draw OSD on top of overlay
2019-02-18 10:38:55 +01:00
Brad Parker 3a431adf02 gl: draw OSD on top of overlay 2019-02-17 18:51:19 -05:00
Francisco Javier Trujillo Mata b8e2216dd4 Improvement the use of the palette 2019-02-17 23:29:16 +01:00
natinusala 631f9e6b8e font driver: expose line height 2019-02-17 16:54:24 +01:00
twinaphex 158a442036 Add further HAVE_OPENGL1 support 2019-02-17 10:42:16 +01:00
twinaphex 420f3a171b (GL1) Update - add HAVE_OPENGL1 to MSVC 2005/2008/2010/2012 2019-02-16 21:26:01 +01:00
twinaphex 691462e3d6 Change INT32 to int32_t 2019-02-16 10:52:40 +01:00
Brad Parker 5e177c75a5 add memory stats to more context drivers, use correct default variables for fps/stats/framecount/memory_show 2019-02-15 15:59:00 -05:00
Themaister 3b9ad729fb Vulkan: Fix color issues with RGBA8888 swapchains in readback. 2019-02-15 20:30:08 +01:00
twinaphex 8a1cab9b74 C89_BUILD buildfix 2019-02-14 07:13:47 +01:00
alphanu1 7d07130942
Update video_crt_switch.c 2019-02-13 15:33:10 +00:00
alphanu1 987264ab1b
Merge branch 'master' into master 2019-02-13 12:16:05 +00:00
twinaphex eb1dc6624f C89_BUILD buildfix 2019-02-13 02:03:12 +01:00
alphanu1 4ded3ad983 Update dispserv_x11.c 2019-02-12 22:41:46 +00:00
alphanu1 45a2b5d9b3 Update dispserv_x11.c 2019-02-12 22:06:50 +00:00
alphanu1 45dae75333 Update dispserv_x11.c
Update dispserv_x11.c

New backporch for super res

Update dispserv_x11.c

Update dispserv_x11.c

Update dispserv_x11.c

update backporch & menu naming

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c
2019-02-12 22:03:28 +00:00
alphanu1 5cc89160e0
Merge branch 'master' into master 2019-02-12 21:24:22 +00:00
alphanu1 e11c910c39 Fix native naming after new additions
CRT dynamic width changes

Change menu detection width

Using alternative variables for CRT width and height

see output

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Update video_crt_switch.c

Update video_crt_switch.c

Update video_display_server.h

Update video_display_server.c

Update dispserv_win32.c

Update dispserv_x11.c

Update menu_cbs_ok.c

X centring on the fly

X centring on the fly

Update dispserv_x11.c

X centring on the fly

Update dispserv_win32.c

Fix dispserv_win32.c

Fix dispserv_win32.c
2019-02-12 21:23:13 +00:00
alphanu1 305a15f056 Change menu detection width 2019-02-12 16:10:48 +00:00
alphanu1 8259bc33ac CRT dynamic width changes 2019-02-12 16:00:12 +00:00
alphanu1 b37c64742f
Dynamic width - function completed (#119) 2019-02-12 14:38:01 +00:00
alphanu1 c9c3c626e8
turn dynamic super res off on the fly 2019-02-12 11:23:53 +00:00
alphanu1 924fcc2834
Fix build warnings and cleanup 2019-02-12 10:26:17 +00:00
alphanu1 7aabf7f5e1
added static function and Clean up 2019-02-12 10:16:04 +00:00
alphanu1 a76c1f4c51
Removed CRT setting video driver build info 2019-02-12 10:10:35 +00:00
alphanu1 f7d2fbd212
fix for dynamic super resolutions 2019-02-12 10:04:41 +00:00
alphanu1 4dc6cf2fb4
incorporated center adjust for Linux 2019-02-12 09:46:22 +00:00
alphanu1 14b80cc3e1
incorporation of dynamic super res
Closer to native look super resolution. Used to prevent artefacts
2019-02-12 09:44:06 +00:00
twinaphex 49bade15ae (video_driver.c) Cleanups 2019-02-12 06:22:50 +01:00
twinaphex a51acb8377 Buildfix 2019-02-12 04:03:10 +01:00
orbea 0eff833334 Silence warning with --enable-python and 32-bit linux.
Thanks hhromic!
2019-02-11 17:08:07 -08:00
Brad Parker 0c790d89dc gl1: use built-in pixel conversion routines 2019-02-11 19:02:36 -05:00
Brad Parker 42098e09ad C89/vc2005 fix 2019-02-11 17:17:36 -05:00
Brad Parker 5a3a58c8a6 gl1: fix order of non-rgui menu drawing, add proper texture support 2019-02-11 12:05:31 -05:00
orbea d3dcc548b2 qb: Allow falling back to a bundled wayland-protocols when not found. 2019-02-10 15:34:50 -08:00
twinaphex 5733ed9a29 Move these defines to cocoa_common.h 2019-02-10 02:11:22 +01:00
twinaphex 293eac3019 Update 2019-02-10 02:03:50 +01:00
twinaphex 62cef96118 Update cocoa_gl_ctx.m 2019-02-10 02:02:17 +01:00
twinaphex 794ab4ef68 Update cocoagl_set_mode 2019-02-10 01:59:08 +01:00
twinaphex 2c9b7c84df Updates 2019-02-10 01:54:39 +01:00
twinaphex a49d0a50b9 Move more functionaliy to cocoa_gl_shared.h 2019-02-10 01:44:46 +01:00
twinaphex 35ce4dcadc Updates 2019-02-10 01:30:12 +01:00
twinaphex 74bddae86e (CocoaGL) Move shared code to gl_shared file 2019-02-10 01:29:04 +01:00
twinaphex b1c4bdf6f7 (Cocoa) Cleanups 2019-02-10 01:25:07 +01:00
Twinaphex ed458cd89b (OSX) Buildfix 2019-02-10 01:21:45 +01:00
twinaphex 20a94a5f37 (CocoaGL) Cleanups 2019-02-10 01:16:35 +01:00
twinaphex d0e26c10aa Move more code to cocoa_gl_shared.h 2019-02-10 01:11:07 +01:00
twinaphex c363eb4397 Move more common functions over to cocoa_gl_shared.h 2019-02-10 00:58:05 +01:00
twinaphex 6f43b7974b Add cocoa_gl_shared.h 2019-02-10 00:31:27 +01:00
Twinaphex fa4e074552 Revert "(Cocoa) Have only one Cocoa GL context driver from now on"
This reverts commit 08bd58e0c4.
2019-02-09 22:57:41 +01:00
Twinaphex d85385ca8a Revert "(OSX) Buildfix"
This reverts commit 13b8d63bc5.
2019-02-09 22:57:28 +01:00
Twinaphex 13b8d63bc5 (OSX) Buildfix 2019-02-09 22:56:49 +01:00
twinaphex 08bd58e0c4 (Cocoa) Have only one Cocoa GL context driver from now on 2019-02-09 22:52:43 +01:00
twinaphex a97fffccb8 Cleanup macro 2019-02-09 21:13:37 +01:00
twinaphex 1a8ad73c3f (Cocoa) Unify both headers 2019-02-09 04:40:38 +01:00
twinaphex 0dc533d976 (dispserv_x11.c) Get rid of unused variable 2019-02-09 04:11:14 +01:00
twinaphex eee2445c45 (GL) Buildfix for GL_DEBUG 2019-02-09 04:07:12 +01:00
Twinaphex aac14a00a4
Merge pull request #8233 from orbea/sixel
Fix warnings with --enable-sixel.
2019-02-09 00:27:11 +01:00
orbea 78dbe1cef1 Fix warnings with --enable-sixel. 2019-02-08 14:13:02 -08:00
Twinaphex 6b8f18676c
Merge pull request #8231 from bparker06/gl1_squash_merge
OpenGL 1.1 video driver (gl1)
2019-02-08 22:48:18 +01:00
Brad Parker 8d8feec318 gl1: screenshot support 2019-02-08 16:31:34 -05:00