Commit Graph

10211 Commits

Author SHA1 Message Date
twinaphex 627b668da8 Another buildfix for retro_sleep 2020-12-21 21:06:54 +01:00
twinaphex 16bb56b7a2 Update 2020-12-21 21:04:31 +01:00
twinaphex 8df5fe2a60 CLeanup 2020-12-20 16:48:52 +01:00
aliaspider 16f997172f (D3D12) allocate rt_view descriptors for feedback render targets too. 2020-12-20 08:08:04 +01:00
aliaspider bf2adda421 (D3D12) move D3D12SignalCommandQueue to d3d12_gfx_sync. 2020-12-20 07:13:11 +01:00
aliaspider 1681322ffc (D3D12) fix the D3D12GetCompletedValue function wrapper.
- a function wrapper shouldn't contain any NULL checks, and it should
return the original UINT64 value, not a boolean.
2020-12-20 07:08:33 +01:00
twinaphex 870707dbe8 Remove obsolete __CELLOS_LV2__ references - use PSL1GHT instead 2020-12-19 15:32:26 +01:00
twinaphex 7d313647ae (D3D11) Add flip model support - fallback to blit model for OSes
where flip model is not supported (windows 7 and earlier). Will add
a menu option later allowing the user to switch inbetween the two
2020-12-17 14:39:58 +01:00
twinaphex d6a0bdaa30 (D3D12) Increase this to 2048 - avoids D3D12 crash on startup 2020-12-17 09:41:05 +01:00
twinaphex 38ce3927ae (D3D10/11/12) Increase sprite capacity, we need this so that
the hardware rendered menu drivers don't glitch out
2020-12-17 08:31:06 +01:00
twinaphex 2a8024a71b (D3D10) Cleanups - create init_swapchain function 2020-12-15 23:05:58 +01:00
twinaphex 093dc30ffd Refactor d3d11_init_swapchain some more 2020-12-15 22:56:29 +01:00
twinaphex a1fd1d425c (D3D11) Split init swapchain code up into own function 2020-12-15 08:19:04 +01:00
twinaphex ad2502b645 (D3D11) Change this back 2020-12-15 08:09:48 +01:00
twinaphex 2d588ca4ef Simplify vulkan_create_texture 2020-12-15 08:00:22 +01:00
twinaphex d55ca599e0 Replace with macros 2020-12-15 07:28:39 +01:00
twinaphex cdca5d0afc Turn vulkan_copy_staging_to_dynamic into macro 2020-12-15 07:20:33 +01:00
twinaphex d70420a12d vulkan_copy_staging_to_dynamic - put sync texture to GPU
outside of the function
2020-12-15 07:01:00 +01:00
twinaphex 6b38a7916a (Vulkan) Simplify code 2020-12-15 06:19:48 +01:00
valadaa48 bbb9c1d248 oga_gfx: implement RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2020-12-13 21:16:11 -05:00
jdgleaver 74fff8dc62 (RGUI) Add support for CJK punctuation glyphs 2020-12-13 12:34:53 +00:00
Autechre 71ed4db45a
Merge pull request #11681 from crystalct/master
Fix multipass shaders on PS3 - fix #11673
2020-12-11 20:18:35 +01:00
jdgleaver f657344d85 (OpenDingux/sdl_dingux_gfx) OSD font clean-up 2020-12-11 17:33:41 +00:00
unknown 96a7db2451 Fix multipass shaders on PS3 2020-12-11 18:22:27 +01:00
jdgleaver 0f0ccbadc0 (RGUI) Add support for CJK fonts 2020-12-10 15:17:26 +00:00
twinaphex 625f0d4fc6 Improve conditional 2020-12-05 04:54:22 +01:00
twinaphex 9688554921 (D3D11) Use SWAP_EFFECT_*_DISCARD from now on fallback PC codepath 2020-12-05 04:48:11 +01:00
HyperspaceMadness e98a8ce591 Shaders Fix Crash change num shader passes in UI 2020-11-30 19:30:15 -05:00
HyperspaceMadness 06e32982db Shaders_SaveAs_Fix_And_Better_Reference_Handling 2020-11-29 19:16:38 -05:00
Autechre 1cbc26ac9e
Merge pull request #11614 from HyperspaceMadness/Shader_Multi-Level_Referenced_Presets
Shader_Multi-Level_Referenced_Presets
2020-11-25 15:47:31 +01:00
Autechre debb9c6b0a
Merge pull request #11622 from Jamiras/cheevos_lboard_spacing
(cheevos) calculate leaderboard widget spacing based on video resolution
2020-11-24 20:50:20 +01:00
Jamiras e6a7961dd5 calculate spacing based on video resolution 2020-11-24 07:42:50 -07:00
Conrad Kreyling 9cfe50ddd3
Fix missing division sign in sunxi_gfx.c
Same fix as 71c031099b for the same problem, just in a different file.
2020-11-23 13:31:16 -05:00
HyperspaceMadness f0c4343cb9 Removed extra printf left behind 2020-11-22 19:39:34 -05:00
HyperspaceMadness abb2d06ce9 Shader_Multi-Level_Referenced_Presets 2020-11-22 19:10:08 -05:00
HyperspaceMadness 35b49f3b82 Shader_Increase_Max_Textures_Line 2020-11-22 09:50:24 -05:00
jdgleaver c2f1b9f336 Add Upscale1.5x video filter 2020-11-20 15:22:09 +00:00
Autechre fbd04ea76e
Merge pull request #11590 from Cpasjuste/crt_switch_timings
(KMS/DRM) add support for custom hdmi_timings / modes
2020-11-19 13:45:15 +01:00
cpasjuste e31182b005 (KMS/DRM) cleanup custom video mode loading (crt_switch_timings) 2020-11-19 10:21:18 +01:00
Autechre 3f1d25f1f7
Merge pull request #11576 from HyperspaceMadness/Shader_Preset_Remove_parameters_line
Shader_Preset_Remove_parameters_line
2020-11-19 07:18:49 +01:00
cpasjuste 485513ba61 (KMS/DRM) correctly handle custom modes polarity, implement aspect ratio support from hdmi_timings 2020-11-18 15:21:03 +01:00
cpasjuste 0082806620 (KMS/DRM) add support for custom modes from hdmi timings 2020-11-18 11:34:44 +01:00
aliaspider c6b77f6c62 (D3D11) get the hwrender texture format from the view desc
the format set in the texture desc isn't necessarily the same as the
view format.
2020-11-15 15:07:53 +01:00
aliaspider b3134fc05a (D3D11) fix slang shaders 2020-11-15 13:04:24 +01:00
HyperspaceMadness deb8e2b88c Shader_Preset_Remove_parameters_line 2020-11-14 21:23:18 -05:00
aliaspider b7d3efc503 (D3D11) rename D3D11SetState to D3D11SetRasterizerState. 2020-11-14 04:29:44 +01:00
Rinnegatamante c04d9d62db Don't realloc video buffer when unnecessary. 2020-11-13 14:55:40 +01:00
Tony Jansson f497608055 (WINRAW) Keyboard mods fix 2020-11-13 04:25:07 +02:00
jdgleaver 5fb8861d34 Video filter optimisations 2020-11-11 17:00:09 +00:00
HyperspaceMadness 5008ac6eb0
Merge branch 'master' into Shader_Save_Load 2020-11-10 17:05:23 -05:00
Autechre 64ef2fb824
Merge pull request #11543 from sonninnos/dinput-modkeys
(DINPUT) Simultaneous shift sticky fix
2020-11-09 23:39:21 +01:00
Tony Jansson eca9c452d8 (DINPUT) Simultaneous shift sticky fix 2020-11-09 21:20:46 +02:00
jdgleaver cd1b2cea76 Add Normal4x video filter 2020-11-09 16:21:47 +00:00
HyperspaceMadness e6ee8818af Shaders_improve_message_for_textures_not_found 2020-11-08 12:21:09 -05:00
aliaspider c85e09ddad improve handling of arabic and persian text. 2020-11-08 04:47:08 +01:00
HyperspaceMadness a5e57aa74d Increase_Shader_Parameter_Count_to_512 2020-11-06 22:42:15 -05:00
HyperspaceMadness fd240f9a32 Shader Save Load Cleanup and UI Rename 2020-11-04 10:05:46 -05:00
HyperspaceMadness 1185df5f39 Shader Save & Load Fixes params not being loaded 2020-11-03 23:12:59 -05:00
HyperspaceMadness f6e35420bc Simple Shader Save Cleanup 2020-11-02 21:07:20 -05:00
HyperspaceMadness 70bf90c5d8 Shader_Preset_Simple_Save_Cleaned_2020_11_01 2020-11-01 09:18:40 -05:00
jdgleaver 3481437b29 OpenDingux: Fix frozen video when enabling fast forward 2020-10-29 15:50:12 +00:00
Autechre 8d0963735f
Merge pull request #11497 from justinweiss/3ds-rotation
[3DS] Allow sideways screen rotation
2020-10-29 04:55:52 +01:00
Justin Weiss 91c695ac52 [3DS] Allow sideways screen rotation 2020-10-27 21:13:19 -07:00
twinaphex 10f395df25 Silence warning 2020-10-28 02:22:02 +01:00
valadaa48 82ce3ae632 oga_gfx: use 32bit aligned surface and other cleanups 2020-10-23 23:34:31 -04:00
jdgleaver feb3bd0794 Refactor Scale2x video filter (crash fix + slight performance improvement) 2020-10-23 23:43:23 +01:00
twinaphex 2fb60e9510 Cleanup 2020-10-16 00:24:59 +02:00
twinaphex 5f8c270d4c Make update_time_callback a part of the animation struct 2020-10-15 08:35:37 +02:00
twinaphex e3972aff31 Turn variable const 2020-10-15 06:12:26 +02:00
twinaphex 44b7234756 Move cheat_manager and state_manager to root folder 2020-10-15 05:29:20 +02:00
Tony Jansson c2e8752395 (DINPUT+WINRAW) Keyboard fixes 2020-10-14 21:23:06 +03:00
twinaphex e8a7195a46 Rename gfx_timer_start to gfx_animation_timer_start 2020-10-14 07:26:24 +02:00
twinaphex 379bd80cda Get rid of gfx_animation_ctl 2020-10-14 04:40:20 +02:00
twinaphex fd17661e02 Cleanups 2020-10-14 04:15:42 +02:00
twinaphex b6039b1638 Cleanups 2020-10-14 04:05:32 +02:00
twinaphex 7c48e77bcd Get rid of getter functions 2020-10-14 02:33:15 +02:00
twinaphex ac03578617 Remove some getter functions 2020-10-14 02:24:18 +02:00
twinaphex 992e780407 Get rid of gx_timer_kill 2020-10-14 02:09:39 +02:00
twinaphex 6e09eada2d Cleanups 2020-10-14 01:02:22 +02:00
twinaphex 8802712ae7 Cleanups 2020-10-14 00:46:38 +02:00
Francisco José García García 085e592761 [VITA] Workaround: Increase memory threshold 2020-10-12 19:24:49 +02:00
jdgleaver 6094e2c32a OpenDingux: Ensure SDL surface width is a multiple of 16 when using 'sdl_dingux' gfx driver (crash/glitch fix) 2020-10-12 12:16:44 +01:00
twinaphex c01e8d52a5 Small cleanups to vulkan_create_texture 2020-10-12 01:53:21 +02:00
twinaphex a11a0eae77 (Vulkan) Style nits 2020-10-12 01:36:50 +02:00
twinaphex 5c76ccbe4a Cleanups 2020-10-12 01:26:51 +02:00
twinaphex 68e56a2345 Add warning to update_time_callback 2020-10-10 17:36:29 +02:00
valadaa48 c6aaa0076b drm_gfx: fix race condition in drm_surface_set_aspect 2020-10-10 00:04:09 -04:00
jdgleaver 54f2156954 Further video filter additions 2020-10-09 13:59:41 +01:00
jdgleaver 2dc837850f OpenDingux: Add 'sdl_dingux' input/joypad drivers and use by default 2020-10-08 13:26:45 +01:00
twinaphex 18d21d8f95 Cleanups 2020-10-05 22:01:31 +02:00
twinaphex d66541ba99 Turn function static 2020-10-05 21:54:07 +02:00
twinaphex 54f30e31a1 Cleanups 2020-10-05 21:44:13 +02:00
twinaphex 088e6b9e44 Move gfx_widgets_pure_white to dispwidget struct 2020-10-05 19:59:15 +02:00
twinaphex 90503f885b Move msg_queue_background to struct 2020-10-05 19:54:54 +02:00
twinaphex a7c54f1848 Move video_driver_thread pointer grabbing to retroarch.c 2020-10-05 18:13:53 +02:00
twinaphex d1dd0e9d60 Not sure why this printf was there 2020-10-05 16:01:40 +02:00
jdgleaver 80f1da2fb1 OpenDingux: Enable selection of image interpolation method when using 'sdl_dingux' gfx driver 2020-10-05 14:34:21 +01:00
jdgleaver 472f01e0e6 OpenDingux/sdl_dingux: Prevent crash when selecting invalid video modes + optimisations 2020-10-04 11:43:33 +01:00
twinaphex fbd4fc5094 Try to avoid having to repeatedly grab the pointer 2020-10-03 20:30:57 +02:00
twinaphex 326f40d598 Cleanup 2020-10-03 18:37:53 +02:00
twinaphex 467dd68fa4 Cleanup 2020-10-03 18:32:21 +02:00
twinaphex 0e4aa46335 Cleanups 2020-10-03 18:25:43 +02:00
twinaphex ecd72b5be6 (widgets) Get rid of get_ptr function calls 2020-10-02 22:23:51 +02:00
twinaphex f82b357f86 Remove getter gfx_widget_get_backdrop_orig 2020-10-02 22:12:05 +02:00
twinaphex 20371e5102 (gfx_thumbnail) get rid of small getters 2020-10-02 21:59:02 +02:00
twinaphex f84c6ec8cd Use STRLEN_CONST where possible; and don't needlessly do strlen
twice
2020-10-02 20:57:29 +02:00
jdgleaver bbba80f01e OpenDingux: Enable integer scaling when using the 'sdl_dingux' gfx driver 2020-10-02 16:38:42 +01:00
twinaphex 0bfbf81b49 Cleanups 2020-10-02 14:33:35 +02:00
twinaphex 4adfaa07fc Cleanups 2020-10-02 14:16:12 +02:00
twinaphex 079c2dadff (gfx_display.c) Do early returns before computing a bunch of stuff 2020-10-02 14:07:01 +02:00
twinaphex cd469d3fb2 gfx_widgets_draw_regular_msg - optimization - only set alpha colors
again if alpha hasn't already been applied
2020-10-02 13:33:05 +02:00
twinaphex 2594bd2cf6 Some static globals can be moved to functions 2020-10-02 13:30:57 +02:00
twinaphex c45e7c9bc5 Cleanup 2020-10-02 11:36:11 +02:00
twinaphex a38ecbe7de gfx_widgets_iterate - cleanup 2020-10-02 11:32:49 +02:00
twinaphex c736f2ce28 Cleanups 2020-10-02 11:00:19 +02:00
twinaphex 2e752d93cc Cleanup 2020-10-01 18:34:01 +02:00
twinaphex cecd48e6b5 gfx_display_draw_cursor - take out early return 2020-10-01 18:22:29 +02:00
jdgleaver 3bd66cc14d OpenDingux port improvements: Phase 1 2020-10-01 15:56:14 +01:00
twinaphex e8ab0a892a gfx_display_get_adjusted_scale_internal - cleanup 2020-10-01 12:33:58 +02:00
twinaphex 4f82c26f6c Cleanups 2020-10-01 12:26:49 +02:00
twinaphex 48a2e0528d gfx_display_font_file - cleanup 2020-10-01 12:24:17 +02:00
twinaphex d08a3b2310 These functions were never used 2020-10-01 12:22:56 +02:00
twinaphex 4965b78ea3 PARTICLES_COUNT doesn't seem used anymore 2020-10-01 12:21:57 +02:00
twinaphex 497f2d92b5 gfx_widgets_ai_service_overlay_load - cleanup 2020-10-01 12:20:34 +02:00
Connor McLaughlin 696df6e916 (video/d3d11) Skip shader/stock blend when we don't have a texture
This happens if the core calls video_cb with the frame set to null on
the first frame, and was causing black screens/driver resets.

The ffmpeg core seems to do this.
2020-10-01 19:19:13 +10:00
twinaphex a02f8a24fa Get rid of forward declarations 2020-10-01 11:06:59 +02:00
twinaphex fe38cd9cbc (gfx widgets) get rid of more getter functions 2020-10-01 10:55:37 +02:00
twinaphex dee807cb54 (gfx widgets) Start removing a lot of getter functions 2020-10-01 10:50:45 +02:00
Connor McLaughlin 10bbe119a7 (video/d3d11): Fix shaders with scaled framebuffers
The scissor rectangle was left as whatever the core last used.
2020-10-01 16:53:19 +10:00
twinaphex 1e6828fd63 Cleanups 2020-09-30 19:18:40 +02:00
twinaphex f8b828e623 gfx_display_draw_bg - cleanups 2020-09-30 18:56:46 +02:00
twinaphex 8683f68ccb Cleanup 2020-09-30 18:52:22 +02:00
Autechre 7f3b1c69e3
Merge pull request #11392 from stenzek/d3d11
(video/d3d11) Fix background in menus, and shaders for hardware renderers
2020-09-30 17:57:27 +02:00
Connor McLaughlin 30c6f90c93 (video/d3d11) Use cached view as the slang source texture
Fixes shaders in D3D11 driver.
2020-10-01 00:19:11 +10:00
Connor McLaughlin 12382c057a (video/d3d11) Cache view left bound by hw renderers
Fixes garbage/black screen when menu is active.
2020-10-01 00:19:11 +10:00
twinaphex 0642ea6d5d Remove gfx_display_snow 2020-09-30 15:57:21 +02:00
twinaphex 0ec93e7fff (gfx_display) Cleanups 2020-09-28 07:22:52 +02:00
twinaphex 1e61480e0a Get rid of get/set_header_height 2020-09-28 05:06:02 +02:00
twinaphex 03ff504aa8 Remove gfx_display_scissor_end 2020-09-28 04:04:16 +02:00
twinaphex d44ab6facf framebuffer_dirty functions - remove these and set member variables
directly in rgui.c and retroarch.c
2020-09-28 03:49:13 +02:00
twinaphex f38eb84cc7 Move gfx_display_draw_text to retroarch.c and get rid of
video_driver_set_osd_msg
2020-09-28 03:38:16 +02:00
twinaphex 9d6bfabd02 Move reset_list_buffer to gfx_widgets and turn it into a static function 2020-09-28 03:30:22 +02:00
twinaphex c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex e87b44a68c Remove stub functions in null display driver 2020-09-27 00:18:16 +02:00
twinaphex 7225170e97 Cleanups 2020-09-26 23:51:59 +02:00
twinaphex a56673e52d MSVC buildfix 2020-09-26 23:37:03 +02:00
twinaphex b830d15628 (drivers_display) Cleanups 2020-09-26 23:31:12 +02:00
twinaphex e1dbf5dab1 Remove drivers_display viewport - was unused 2020-09-26 22:01:23 +02:00
twinaphex fbe0924d44 Remove some stub functions 2020-09-26 21:40:16 +02:00
twinaphex e428166a05 Remove unused gfx_display_get_framebuffer_pitch 2020-09-26 20:04:55 +02:00