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