libretroadmin
046c2375e7
Downsize big char arrays in shader structs - a lot of these get
...
allocated on the stack so this would cost a lot of memory
2024-09-10 07:03:50 +02:00
Eric Warmenhoven
cfbfd01f38
iOS: Last bits of iOS 12 support, including loading an older MoltenVK library ( #16982 )
2024-09-09 21:27:29 -07:00
libretroadmin
f4ed638347
Rewrite libretro-common task_queue, use flags
2024-09-10 02:42:07 +02:00
libretroadmin
285e38bd87
(video_shader_parse) Cleanups
2024-09-09 22:47:33 +02:00
libretroadmin
6020877043
Cleanups
2024-09-09 22:01:37 +02:00
libretroadmin
0ab10f73c2
Start reducing size of video_shader_pass struct to reduce
...
massive size of video_shader struct
2024-09-09 18:28:38 +02:00
libretroadmin
c79b02b1c8
Dehardcode some more variable sizes
2024-09-09 16:42:02 +02:00
libretroadmin
7f87a46744
More downsizing of variables
2024-09-09 16:18:32 +02:00
libretroadmin
e675ea7e29
Variable cleanups - add TODO/FIXME notes for spurious variable sizes
2024-09-09 15:22:08 +02:00
libretroadmin
b8391e233f
* PATH_MAX_LENGTH redefined from 4096 to 2048
...
* Massive reduction in heap space allocation, going from settings struct
264kb to 119Kb
* Use NAME_MAX_LENGTH for base paths/names, etc
* Use DIR_MAX_LENGTH for directory sizes
2024-09-09 05:47:32 +02:00
libretroadmin
01a9745f5b
Settings struct now has a flags variable
2024-09-08 22:49:26 +02:00
libretroadmin
9efb498bde
(config_file) Use flags
2024-09-08 18:12:12 +02:00
libretroadmin
d60d320e76
Simplified parameter parsing to have all shader formats use the same slang method
...
(when HAVE_SLANG and HAVE_SPIRV_CROSS are defined) - backport of HyperSpaceMadness' PR
2024-09-08 15:25:40 +02:00
Eric Warmenhoven
60ee32b879
apple: display server, including ProMotion support ( #16963 )
2024-09-04 22:52:59 -07:00
Eric Warmenhoven
95d53183f5
apple: switch from MTKView to CAMetalLayer for vulkan ( #16959 )
2024-09-03 19:02:00 -07:00
Eric Warmenhoven
76026398ad
Update Vulkan headers to v1.1.130 ( #16952 )
2024-09-02 08:39:44 -07:00
sonninnos
3f8dc5c49d
Remove 'Frame Rest' ( #16936 )
2024-08-29 03:35:09 -07:00
Ethan Lee
b74932a05a
vulkan: VK_SUBOPTIMAL_KHR can be treated as success, not failure ( #16930 )
...
Fixes #16917
2024-08-27 10:23:10 -07:00
sonninnos
391b46c3be
Automatic Frame Delay refactor ( #16929 )
2024-08-27 01:53:10 -07:00
Joe Osborn
439c672c22
Support viewport bias with integer overscale and custom aspect ratios ( #16915 )
...
* support integer overscale with bias and xy offsets
* support custom aspect ratios with viewport bias
2024-08-22 12:40:40 -07:00
zoltanvb
57c17d559f
Use CLI shader path for shader dir init if present ( #16196 )
...
If shader is given on command line, use it for directory init.
Fixes #16181 , shader cycle should now work using the dir of the
shader passed to CLI.
2024-08-19 09:55:20 -07:00
hunterk
1e94c92dbf
improve GLES version directive granularity ( #16888 )
2024-08-17 09:57:17 -05:00
kwyxz
4016b2524b
Allow building RetroArch with menu disabled ( #16881 )
...
* allow building with --disable-menu --disable-cheevos --disable-qt --disable-slang
* allow building with cheevos while disabling menus and qt
2024-08-15 15:26:59 -07:00
Eric Warmenhoven
fdf2faaf59
macOS: Don't include video/input drivers when compiling with SDL2 ( #16865 )
2024-08-10 17:56:03 -07:00
Jason Breitweiser
11d9a841f3
This change allows playlist icons to be replaced with Logos. ( #16758 )
...
* This change allows playlist icons to be replaced with Logos. the art is loaded to the Thumbnail Named_Logos folder. It is treated the same as other thumbnails for naming and for automatic download. There is a settings menu option to turn it on and off. It is off by default. This only applies to the xmb menu driver.
* Removed commented out code against the style guide.
* Code cleanup for C89 compatibitity
* Cleaned up errors from Automated CI.
* Cleaned up comments.
* Update gfx_display.c
change strcpy to strlcpy
* Update gfx_thumbnail_path.c
fix code formatting
* Update xmb.c
code formatting changes
2024-08-07 08:39:57 -07:00
zoltanvb
75c8c3c568
Fix a crash when switchres is used with videocore drivers. ( #16822 )
2024-07-30 17:33:25 -07:00
zoltanvb
b090f85620
Support for non-PNG local thumbnails ( #16806 )
...
Allow thumbnails (boxart, title, screenshot) to be loaded in any
other supported format as well, currently jpg, bmp, tga.
Support is for local thumbnails only, downloads are not changed.
PNG format is always preferred. Menu option added for control,
since trying for multiple thumbnail files may impact performance
on slow storage media.
2024-07-24 18:31:41 -07:00
libretroadmin
ac85405598
(gfx_animation.c) Small cleanups
2024-07-24 09:25:59 +02:00
hunterk
6b8025fdca
fix segfault with vulkan shaders ( #16810 )
2024-07-23 22:09:39 -07:00
libretroadmin
2c31de56ff
Move XMB-specific line ticker code to xmb.c
2024-07-23 21:02:20 +02:00
libretroadmin
c095b420d1
Move GL3 C code over to C file - put rest in extern "C" codeblock
2024-07-22 01:43:21 +02:00
libretroadmin
b4e5a8fb70
Don't use std::min/std::max
2024-07-22 01:24:09 +02:00
libretroadmin
c99c5399f5
Move C Vulkan code over from shader_vulkan.cpp to vulkan_common.c
2024-07-22 00:52:53 +02:00
libretroadmin
907711db8c
Don't use 'using namespace'
2024-07-22 00:34:57 +02:00
libretroadmin
afc9cb509a
CXX_BUILDFIX buildfixes
2024-07-20 19:42:45 +02:00
libretroadmin
73afe24266
Use C comments instead of C++ comments for C files
2024-07-20 16:16:16 +02:00
libretroadmin
e543aa25ae
Silence some warnings
2024-07-20 15:46:26 +02:00
Joseph C. Osborn
a7bc0ad68f
Make custom aspect ratios under integer scaling respect xy offset
...
This makes them more usable. I don't understand why it was ever
disallowed, can someone review and let me know?
2024-07-18 08:22:42 -05:00
Joseph C. Osborn
7e26eb37c6
fix custom aspect ratios for non-ydown drivers
2024-07-18 08:22:42 -05:00
Joseph C. Osborn
6701c0999b
fake negative x/y viewport positions under vulkan
...
Since Vulkan doesn't support negative x or y viewport positions, this
patch concatenates a translation matrix to the projection matrix used in
Vulkan rendering. In this way, if a negative x or y coordinate would
be necessary, we can instead use a 0 coordinate and a
leftwards/upwards translation to achieve the same effect. This seems
to work alright with overlays, so as far as I can tell this patch
seems sufficient to get the behavior we want?
2024-07-18 08:22:32 -05:00
ScoochAside
73ba25cea1
Fixed the same cropping issue but on the vertical axis
2024-07-13 13:04:02 -05:00
ScoochAside
4203c359a4
Removed unnecessary casts
2024-07-13 13:04:02 -05:00
ScoochAside
520199c10a
Use more logical variables.
...
Added more resource cleanup, which fixes an unintended resizing bug that happened after taking a GPU screenshot.
2024-07-13 13:04:02 -05:00
ScoochAside
6a29b3b717
Fix issue #16776
2024-07-13 13:04:02 -05:00
ScoochAside
6d2393c5f9
Added error logging for unsupported cases
2024-07-08 14:09:30 -05:00
ScoochAside
e08826ee9b
Removed unintentional newline
2024-07-08 14:09:30 -05:00
ScoochAside
f63e6a959c
Don't do anything if HDR is enabled
...
The current implementation does not produce the right results if HDR is enabled so let's bail out.
2024-07-08 14:09:30 -05:00
ScoochAside
22057bbb05
Added some pixel format checks
...
In my limited testing, the texture is always in the R8G8B8A8 format, but, just incase, added a check for it and if it isn't then bail out.
2024-07-08 14:09:30 -05:00
ScoochAside
d6773ced37
Fix issue #6427
2024-07-08 14:09:30 -05:00
Joe Osborn
9489a11ead
Use device ratio when determining portrait orientation
2024-06-26 08:45:29 -05:00
Joe Osborn
f1b9df4faf
Flip default y positive direction for viewport calc
...
This should fix metal and maybe some directx resizes
2024-06-26 08:45:29 -05:00
libretroadmin
9e171cb665
Add missing header
2024-06-26 15:40:29 +02:00
libretroadmin
3d40dff4f5
strtok_r - small syntactic cleanup
2024-06-26 15:38:09 +02:00
libretroadmin
5a2a6db589
(glslang) use strtok_r instead of strtok
2024-06-26 15:36:31 +02:00
libretroadmin
58e2e581ec
Silence warnings
2024-06-26 15:19:00 +02:00
libretroadmin
db550e6ffe
(D3D8) Fix build
2024-06-26 15:13:37 +02:00
zoltanvb
286d65b42e
[X11] Support for mouse buttons 4 and 5
...
Support added for extra mouse buttons. Since these buttons were
not returned by XQueryPointer(), some additional logic was needed
which fit best to scroll wheel handling.
2024-06-25 08:18:51 -05:00
Joseph C. Osborn
00add4bb37
Fix build errors on wiiu, directx
2024-06-25 08:18:39 -05:00
Joseph C. Osborn
2805694378
Refactor viewport handling/aspect ratio scaling.
...
This mirrors the use of video_viewport_get_scaled_integer for
non-integer scaling at various aspect ratios. Two variants are
provided, one with implicit device and desired ratios and one with
explicit ratios.
Also added a flag to video_viewport_get_scaled_integer to indicate the
direction of positive y.
2024-06-25 08:18:39 -05:00
schellingb
e7c6d1df84
Fix keyboard events missing RETROKMOD_NUMLOCK or RETROKMOD_SCROLLOCK
...
- Add missing numlock mod to dinput
- Add missing scrolllock mod to x11
- Add missing capslock, numlock, scrolllock and meta mods to android
- Add missing scrolllock mod to sdl
- Add missing capslock, numlock, scrolllock and meta mods to switch
- Add missing numlock mod to winraw
- Add missing numlock mod to uwp
2024-06-25 08:18:29 -05:00
zoltanvb
cc92ac7577
Fix exclusive fullscreen condition
...
Spotted in Android compilation:
warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare]
2024-06-25 08:18:07 -05:00
libretroadmin
ab9ee963cb
Simplify gfx_animation_line_ticker_smooth
2024-06-18 09:40:20 +02:00
zoltanvb
f1b96f620b
Fix MSVC05 compilation failure
2024-06-17 17:48:27 -05:00
zoltanvb
2ca973770f
Fullscreen refresh rate improvements
...
Handle refresh rate as float in general, and add also extra
attributes (interlaced, doublescan) for video modes.
Make it possible to select exact mode (interlaced / doublescan modes
will not be selected), and allow close matches such as 49.5 Hz
for PAL 50 Hz.
2024-06-17 13:29:40 -05:00
rofl0r
843c816fc2
x11: add support for Xss screensaver disabling
...
in case xdg-screensaver isn't installed.
2024-06-16 12:54:42 -05:00
libretroadmin
95be65d5a0
(gfx_animation.c) Use strlcpy
2024-06-16 15:36:35 +02:00
libretroadmin
0ced85b91d
Get rid of some unnecessary strlcat usage
2024-06-16 15:09:31 +02:00
libretroadmin
a758b13fac
(gfx_animation.c) Small cleanups
2024-06-16 14:21:38 +02:00
libretroadmin
f423b62500
(Wii) Silence warning
2024-06-14 23:24:11 +02:00
zoltanvb
926ba5c843
Force fullscreen in case of KMS display
...
Change GL2, GL3 and Vulkan drivers to behave as fullscreen if context driver
(such as KMS/DRM or KHR) does not support windowed mode at all.
Take it into account also for refresh rate switch.
2024-06-14 15:44:38 -05:00
libretroadmin
af11f8f54c
Use strlcpy when no formatting is required
2024-06-13 07:02:38 +02:00
Reilly Brogan
7f3de64ef8
wayland: Fix Wayland appId
2024-05-30 22:54:50 -05:00
Viačasłaŭ Chalikin
1e9db89154
Fix reinitialization of the threaded gl drivers
2024-05-26 21:32:29 +02:00
libretroadmin
5db932d366
gfx_widgets_draw_task_msg - get rid of one strlen
2024-05-24 04:03:45 +02:00
libretroadmin
3e85a17d7a
iFix warnings picked up by -fanalyzer
2024-05-23 23:50:23 +02:00
libretroadmin
a74675a718
Remove unneeded ENABLE_HLSL code from glslang
2024-05-23 01:25:37 +02:00
Bernhard Schelling
e27fcf64a8
(Win32) Fix numlock/pause key release events
...
On Win32, the numlock and pause keys need special handling. But the existing code did only handle it correctly for pressing and not releasing. It separately called GetKeyState for the two keys which only returned true while pressing a key and not while releasing it. This then caused the releasing of the pause key to be treated as releasing the numlock key and vice versa. This fix handles releasing the two keys correctly.
2024-05-19 12:23:07 -07:00
Carlo Refice
fed2e10d97
Implement HDR readback
2024-05-17 14:10:29 -07:00
rt001-hub
5e45b2330b
Update pixman-private.h ( #16516 )
...
patch to fix build issue with musl
https://lore.kernel.org/buildroot/569BA820.6040300@scalemp.com/
2024-05-13 07:29:50 -07:00
Viačasłaŭ Chalikin
9ad2cc2bc6
Fix crash when using threaded video ( #16518 )
...
for Mesa 23.2 and later
2024-05-13 07:24:51 -07:00
Eric Warmenhoven
55be94212a
macOS: MoltenVK as xcframework ( #16507 )
2024-05-08 16:41:15 -07:00
Brad Smith
d55f95f056
Windows mouse ungrab must release the mouse instead of confine it to the current desktop ( #16488 )
...
* Windows mouse ungrab should release the cursor, instead of confining it to the current screen.
* conform to style
2024-05-04 06:10:57 -07:00
sonninnos
87a339c3c9
Set compute fps stats logging to debug level ( #16460 )
2024-04-23 09:53:35 -07:00
Eric Warmenhoven
ca904a3f5d
iOS/tvOS: MoltenVK 1.2.8, and fix mame core signing ( #16452 )
2024-04-19 07:11:49 -07:00
Carlo Refice
adaa19cbf7
vulkan: Add support for A2R10G10B10 HDR format ( #16435 )
2024-04-18 07:34:46 -07:00
Eric Warmenhoven
5fd4eb905c
iOS QOL improvements ( #16444 )
...
* iOS/tvOS: bundle cores as frameworks as opposed to dylibs
* iOS/tvOS: update plist to indicate controller support
* iOS/tvOS: living within the sandbox
* iOS/tvOS: import content through share sheet
* iOS/tvOS: default audio sync off due to crash on background
* iOS/tvOS: don't try altkit if there's no reason to
* iOS/tvOS: enumerate cores for appstore distribution
2024-04-18 03:01:39 -07:00
Barry Rowe
26a824caff
Revert of AI service changes ( #16428 )
2024-04-12 16:17:24 -07:00
Colin Kinloch
917c2b0d15
wayland: Use frontend signal handler to quit ( #16418 )
2024-04-08 16:56:29 -07:00
Colin Kinloch
08496b302c
wayland: Commit viewport resizes ( #16419 )
...
This allows a resize to keep up with the users pointer movements.
2024-04-08 16:56:20 -07:00
libretroadmin
a7e1a6c8ce
DM_INTERLACED seems not defined for MSVC 2005 - so exclude it for MSVC
...
versions prior to 2010
2024-04-06 23:07:25 +02:00
libretroadmin
a7f6dced8d
Expand win32_monitor_set_fullscreen
2024-04-06 22:16:00 +02:00
libretroadmin
a4212061d4
Cleanup some unused variables
2024-04-06 20:12:15 +02:00
libretroadmin
a0dc153508
Fix C89_BUILD
2024-04-06 18:52:52 +02:00
libretroadmin
f70dc90729
Add C99/C11 rule - use llabs if C99/C11 is availabl,e otherwise use labs
2024-04-06 18:28:19 +02:00
Colin Kinloch
0212d8e770
wayland: Ignore splash sized events during splash ( #16412 )
2024-04-05 11:02:33 -07:00
Colin Kinloch
9749940c67
wayland: Let wl_display_disconnect close fd ( #16407 )
2024-04-05 07:39:45 -07:00
Jamiras
a6beba6376
(cheevos) upgrade to rcheevos 11.2 ( #16408 )
...
* provide more information during achievement load process
* update rcheevos version
* do disconnected processing even when no game is loaded
* make loading widget unique
* only show loading indicator with verbose messages on
2024-04-05 07:39:38 -07:00
Colin Kinloch
cdd6aed8ec
wayland: Ignore configure events during splash ( #16398 )
...
These were causing the gl/vk surfaces to be created with the wrong size.
2024-04-02 17:55:02 -07:00
Cristi Mitrana
b541d1e2d3
gfx/drm: fix mode vrefresh calculation ( #16376 )
...
When using an interlaced/doublescan mode, the vertical refresh rate is mis-calculated.
Replaced the current calc method with the one from libdrm's 'modetest' utility [1].
[1] https://gitlab.freedesktop.org/mesa/drm/-/blob/main/tests/modetest/modetest.c?ref_type=heads#L140
2024-03-20 14:02:51 -07:00
MajorPainTheCactus
eef34e9461
Added rolling scan line simulation based on the shader subframe feature. This is implemented with a scrolling scissor rect rather than in the shader itself as this is more efficient although may not work for every shader pass - we may need an option to exclude certain passes. The implementation simply divides the screen up by the number of sub frames and then moves the scissor rect down over the screen over the number of sub frames. ( #16282 )
2024-03-19 08:59:36 -07:00