63 Commits

Author SHA1 Message Date
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
libretroadmin
8976a179df (video_thread_wrapper) For threaded/audio video wrapper we will use
bools instead of flags
2022-11-18 20:42:47 +01:00
LibretroAdmin
2ec2f4719f (video_thread_wrapper) Use flags instead of bools 2022-10-28 19:21:09 +02:00
Cthulhu-throwaway
9e39abcd00 (Threaded Video/video_thread_wrapper.c) Cleaning and optimization 2022-05-18 18:27:54 -03:00
twinaphex
619398bbe4 Backport parts of 73c0760236 2021-11-09 23:12:57 +01:00
Autechre
7b9cbc08d7
Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917)
* Add HDR support

* Attempt to fix Mingw build and Metal builds

* (D3D12) Fix relative header includes

* Add missing hdr_sm5.hlsl.h

* (d3d12_common.c) Some C89 build fixes

* Fix MSVC build

* - Attempt to fix build on mingw/msys unix with dirty hack
- Fix shader compilation of hdr_sm5.hlsl.h on MSVC/Visual Studio -
the define was seen as an error and was causing the first pipeline
to error out
- Make sure we manually set handle of backBuffer to NULL

* Moving the release of the texture above the freeing of desc.srv_heap
and desc.rtv_heap solves the hard crashes on teardown/setup in RA -
it was crashing hard in d3d12_release_texture before

* Add HAVE_D3D12_HDR ifdef - needs to be disabled for WinRT for now
because of several things that are Windows desktop-specific right now
(GetWindowRect)

* Add dirty GUID hack - should work for both mingw/msys on Windows/Linux
as well as MSVC/Visual Studio (hopefully)

* Change HAVE_D3D12_HDR to HAVE_DXGI_HDR

* Move away from camelcase named variables

* Fix RARCH_ERR logs - they need a newline at the end

* d3d12_check_display_hdr_support - make it return a bool on return
and set d3d12->hdr.support and d3d12->hdr.enable outside of the
function

* (DXGI) Remove D3D12 dependencies from dxgi_check_display_hdr_support and
move it to dxgi_common.c instead

* (DXGI) move d3d12_swapchain_color_space over to dxgi_common.c and
rename it dxgi_swapchain_color_space

* (DXGI) move d3d12_set_hdr_metadata to dxgi_common.c and
rename it dxgi_set_hdr_metadata

* (DXGI) dxgi_check_display_hdr_support - better error handling?

* Fix typo

* Remove video_force_resolution

* (D3D12) Address TODO/FIXME

* (D3D12) Backport
c1b6c0bff2
- Fixed resource transition for present when HDR is off
Fixed cel shader displaying all black as blending was enabled when the hdr shader was being applied - turned off blending during this shader

* Move d3d12_hdr_uniform_t to dxgi_common.h and
rename it dxgi_hdr_uniform_t

* (D3D11) Add HDR support

* Add TODO/FIXME notes

* Cache hdr_enable in video_frame_info_t

* Update comment
2021-09-03 06:15:25 +02:00
twinaphex
a7c54f1848 Move video_driver_thread pointer grabbing to retroarch.c 2020-10-05 18:13:53 +02:00
twinaphex
65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
twinaphex
ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
Twinaphex
01397f008a
Revert "Fix issue #6747 black bug" 2019-01-10 22:52:13 +01:00
Nano
f1ba335cb3 Fix issue #2791 black bug 2019-01-09 22:52:45 +01:00
Twinaphex
1aee59f9f4
Revert "Fix issue #2791 black bug" 2018-12-24 03:33:18 +01:00
Nano
770bd52411 Fix issue #2791 black bug 2018-12-23 18:31:21 +01:00
twinaphex
bc0dbffc01 Revert "Change custom_command_method_t returntype to int64_t"
This reverts commit e13efbd40046aac507d27e58a7767dd1f6805530.
2018-11-26 20:30:53 +01:00
twinaphex
e13efbd400 Change custom_command_method_t returntype to int64_t 2018-11-26 17:39:04 +01:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
bf7616cf0e Revert "Move structs to gfx/video_thread_wrapper.h"
This reverts commit 12d0073d501a659c337b8c751f825cb69024c194.
2017-04-23 19:17:52 +02:00
twinaphex
12d0073d50 Move structs to gfx/video_thread_wrapper.h 2017-04-23 18:28:44 +02:00
twinaphex
affb259409 Pass video_driver_is_threaded return value to font driver init/free
functions
2017-01-25 14:47:24 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
e0ff0541a2 Pass video_info pointer to font drivers 2017-01-19 16:30:40 +01:00
twinaphex
9feb430b58 Don't pass video_info_t as pointer 2017-01-16 18:03:00 +01:00
twinaphex
e427a2d2fa Move enums to gfx/video_thread_wrapper.c 2016-09-11 17:42:53 +02:00
twinaphex
88c7976104 Rename CMD_NONE to CMD_VIDEO_NONE 2016-09-11 17:40:26 +02:00
twinaphex
4b63af59a2 video_thread_wrapper.h - get rid of some ifdefs 2016-09-11 17:24:22 +02:00
twinaphex
8fc8ff4ed9 Use retro_common_api.h 2016-06-03 05:43:49 +02:00
twinaphex
7c20f2b868 Change namespace of thread functions 2016-05-10 03:14:23 +02:00
twinaphex
54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex
34dbd35642 Revert "Remove some unnecesary functions"
This reverts commit 1f13f26ba4404b14fae94f9aac4be03bb9b58158.
2015-12-08 12:55:43 +01:00
twinaphex
1f13f26ba4 Remove some unnecesary functions 2015-12-08 11:21:57 +01:00
twinaphex
bae51fb3bd Turn rarch_threaded_video_send_and_wait to static function 2015-12-08 11:17:26 +01:00
twinaphex
1ea3b54411 Move definition of thread_packet to video_thread_wrapper.c 2015-12-08 11:09:09 +01:00
twinaphex
aa6c7a5ed3 Create two new threading command wrapper functions 2015-12-08 11:05:18 +01:00
twinaphex
7f433a36d5 Move rthreads.h header include to video_thread_wrapper.c 2015-12-06 21:35:55 +01:00
twinaphex
9b65988682 Create rarch_threaded_video_send_and_wait 2015-12-06 21:34:39 +01:00
twinaphex
37286ca894 header cleanup 2015-12-06 21:31:20 +01:00
twinaphex
b7f7b1f3b7 video_thread_wrapper.c - cleanups 2015-12-02 01:01:27 +01:00
twinaphex
c33f4b9f83 video_Thread_wrapper - add extern "C" 2015-11-11 20:19:48 +01:00
twinaphex
0bf8a36d50 Fix RGUI fallback - if threaded video wrapper was enabled,
we could not grab an ident resembling 'd3d' or 'gl'
2015-08-17 20:51:12 +02:00
twinaphex
0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
Alcaro
4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Higor Eurípedes
bb2f181386 Remove unprotected access to cmd_data and rewrite message passing mechanism 2015-05-20 17:06:57 -03:00
twinaphex
a9dee4877e Create set_viewport wrapper function - threaded video mode's
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex
bd63de9b3a Replace gl_font_init_first and d3d_font_init_first with common function 2015-04-21 17:33:00 +02:00
twinaphex
66d2172004 Make video_thread_wrapper.h not dependent on GL video font driver 2015-03-28 19:44:03 +01:00
twinaphex
16cce08fa7 Rename threaded_video_resolve to threaded_video_get_ptr 2015-03-22 00:24:47 +01:00
twinaphex
f80e3740aa Implement set_video_mode in video poke interface 2015-02-24 21:57:51 +01:00
twinaphex
13a391c165 Implement get_video_output_prev/get_video_output_next 2015-02-24 21:36:23 +01:00
twinaphex
f9ede9d00a Add get_video_output_size to video driver's poke interface 2015-02-24 20:06:58 +01:00
twinaphex
64446ef497 Rename and move rarch_viewport 2015-02-14 05:52:05 +01:00