Commit Graph

9229 Commits

Author SHA1 Message Date
Twinaphex
2d769d4bfb
Merge pull request #9558 from justinweiss/ctr-gfx-fix-flickering-with-osd
Fix 3DS screen flickering when OSD is enabled
2019-10-06 03:39:23 +02:00
Justin Weiss
64dc3dde40 Fix 3DS screen flickering when OSD is enabled
On the 3DS, for some cores, the screen will flicker if OSD is enabled,
and sometimes when going in and out of the menu.

As far as I can tell, this happens when a frame is dup'd, and we send
0x0 as the frame to the gfx driver. When that happens, we still draw
the OSD, using a vertex shader to transform and render it at the right
size.

When the frame is 0x0, though, the vertex shader uniforms are never
_reset_ to redraw the previous frame, so it's drawn with different
params, and gets drawn the wrong size. It will draw as the correct
size when the correct vertex shader uniforms are set, and the
incorrect size when the incorrect uniforms are set, causing
flickering.

At least, that's what I think is happening. Forcing the vertex shader
to be set regardless of whether the frame data is set fixes it, at
least during some light testing with PCSX.
2019-10-05 14:21:42 -07:00
twinaphex
7969221919 Remove two unused variables 2019-10-05 19:08:57 +02:00
twinaphex
7175c3ec22 FIx another 'may be used uninitialized' warning 2019-10-05 18:43:25 +02:00
twinaphex
221df13250 Cleanups/warning fixes - compilation fix for OSX PPC 2019-10-05 18:38:17 +02:00
Twinaphex
6467d24070
Merge pull request #9548 from fjtrujy/ps2MemoryLeaks
[PS2] Fix memory leaks in Font and GFX Driver
2019-10-04 17:07:35 +02:00
twinaphex
eed44eea9c Cache this string too 2019-10-04 14:27:09 +02:00
twinaphex
1788042c9e (Android) dpi_get_density - cache one variable to avoid excessive
system_property_get querying
2019-10-04 14:22:10 +02:00
Francisco Javier Trujillo Mata
c48ccdb1fc Fix memory leak in the PS2 GFX and PS2 Font 2019-10-03 23:41:56 +02:00
Rinnegatamante
453781af9c Graceful switch between video drivers. 2019-10-03 17:45:59 +02:00
twinaphex
547f8968aa (GL1) Buildfix + cleanups 2019-10-01 03:14:18 +02:00
GH Cao
27d2877106 gl1: take care of const 2019-10-01 06:51:29 +08:00
GH Cao
897488862e gl1: adapt C89 2019-10-01 06:24:06 +08:00
driver1998
0212567d75 Support GLDirect (D3D9 to OGL1.1 wrapper) in gl1 driver 2019-10-01 06:02:30 +08:00
jdgleaver
3057c31798 (Menu Input) Add mouse/touchscreen gesture support + full gesture support for XMB 2019-09-30 16:55:41 +01:00
Tor Arne Vestbø
b5cf9b639e metal: Improve shader debugging
Having the path to each shader is helpful when debugging the
rendering pipeline. The render command encoder label is limited
to just the filename of the shader, as the graphics debugging
UI in Xcode doesn't handle long names very well.

We don't encode the pass number into the string as the shaders
can be organized in a graph, not just a linked list, so an
indexed order can be misrepresenting the flow.
2019-09-25 22:36:40 +02:00
Tor Arne Vestbø
91caf28bfc metal: Add some missing debug labels and groups 2019-09-25 22:36:40 +02:00
twinaphex
b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
twinaphex
f33264f7a6 (X11) XStoreName is a useless wrapper function around XChangeProperty 2019-09-22 13:00:44 +02:00
twinaphex
c5b3428408 Add sdl2_common.c/.h 2019-09-22 12:40:40 +02:00
twinaphex
efdc07ab10 (Wayland) update_title function - simplify this function a bit 2019-09-22 12:14:49 +02:00
Twinaphex
2414224df8 (Cocoa) It's only necessary to set the display server userdata for
set_video_mode
2019-09-22 11:29:58 +02:00
Twinaphex
511f43d5cf Move it to cocoa_gl_ctx.m 2019-09-22 11:26:06 +02:00
Twinaphex
83f1b28f98 Revert "(Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m"
This reverts commit 4f564360e7.
2019-09-22 10:54:01 +02:00
twinaphex
4f564360e7 (Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m 2019-09-22 10:48:23 +02:00
Twinaphex
23bb1414ff (Metal) Buildfix 2019-09-22 10:30:59 +02:00
twinaphex
ad1fb29092 (Metal) Refactor 2019-09-22 10:28:51 +02:00
Twinaphex
6a9feb7978 (OSX) Refactor this so that we always set the userdata
pointer so we can use the new set_title codepaths - will
have to check how to reduce the overhead in nsview_get_ptr
later
2019-09-22 10:19:03 +02:00
Twinaphex
69a38f9b9f (Cocoa) Pass direct pointer to UI companion driver window title function 2019-09-22 07:41:56 +02:00
twinaphex
c7fd375120 Create video_driver_display_userdata_{set/get} 2019-09-22 07:35:05 +02:00
twinaphex
03bddff8e6 Cleanups of update_window_title functions 2019-09-22 03:05:06 +02:00
twinaphex
302e2fdc53 Move show memory details outside of the video context driver and
into retroarch.c - avoid lots of code duplication
2019-09-21 07:49:33 +02:00
twinaphex
3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex
db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
twinaphex
ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
twinaphex
c186747edc (video_shader_parse) avoid some more snprintfs 2019-09-18 09:11:32 +02:00
twinaphex
3fbeb0617b (glslang_util_cxx.cpp) Get rid of this strlcpy too 2019-09-18 08:03:49 +02:00
twinaphex
306d7f6f8a glsl_find_uniforms_frame - get rid of the remaining strlcats 2019-09-18 07:53:59 +02:00
twinaphex
ab60005cdc (GLSL) Avoid snprintf, prefer strlcpy/strlcat where possible 2019-09-18 07:32:06 +02:00
twinaphex
b28c405377 Backport and rebase initial FPGA port that was done in 2017 (port
done for Z-Turn board) - has some outstanding issues such as
very slow framebuffer software rendering output that needs to
be overcome before this becomes usable - community help needed
2019-09-17 08:16:50 +02:00
twinaphex
861262ef3a (network gfx) Cleanup 2019-09-17 05:04:57 +02:00
Brad Parker
c7c7d0988e initial network video driver, sends raw frames over TCP 2019-09-17 04:18:44 +02:00
jdgleaver
3a680df733 (glcore) Ensure correct scaling of menu texture (RGUI) 2019-09-03 12:52:26 +01:00
Tor Arne Vestbø
af75ddd04a metal: Draw video stats on top of overlay 2019-09-02 20:02:16 +02:00
Tor Arne Vestbø
204407b64a metal: Set up correct viewport before rendering overlay 2019-09-02 18:02:30 +02:00
Tor Arne Vestbø
48d28aa734 metal: Split menu drawing out from core drawing 2019-09-02 18:02:30 +02:00
Tor Arne Vestbø
e6227f9898 Use correct uniforms when blitting menu frame with Metal
Fixes broken rgui with the Metal video driver.
2019-09-02 13:01:42 +02:00
Tor Arne Vestbø
a7723ba13f Explicitly invalidate atlas buffer when rendering text with Metal
Fixes #9016
2019-09-01 18:46:26 +02:00
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