1372 Commits

Author SHA1 Message Date
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
Autechre
dbb74ba5ab
Merge pull request #12823 from markwkidd/input-drivers
input_driver refactor
2021-08-24 18:45:20 +02:00
jdgleaver
b0c5362da6 (Qt) Fix segfault when accessing Video Options menu on non-Windows platforms 2021-08-23 12:40:46 +01:00
Mark W. Kidd
5f834a8cb3 input_driver refactor 2021-08-19 20:02:39 -04:00
Autechre
ae327a769b
Revert "input refactoring: create input_driver.c" 2021-08-18 18:45:53 +02:00
Autechre
a66b1b3e48
Merge pull request #12703 from markwkidd/input-drivers
input refactoring: create input_driver.c
2021-08-18 18:17:43 +02:00
jdgleaver
0e98b4ddea Add environment callback for enabling core option menu visibility updates without toggling Quick Menu 2021-08-18 16:08:26 +01:00
Tatsuya79
bf8f527143
QT: windowed settings update 2021-08-17 15:41:49 +02:00
Mark W. Kidd
5a8920c862 input_driver refactor 2021-08-17 08:56:29 -04:00
jdgleaver
fe1f311a35 Add core option category support 2021-08-06 15:33:47 +01:00
Autechre
ed3412c004
Merge pull request #12618 from markwkidd/input-remapping
consolidate and comment input_remapping.h
2021-07-08 14:22:51 +02:00
HyperspaceMadness
d14c4d2883 Added Aspect Ratio Full
Fixes

Fixes

Moved ASPECT_RATIO_FULL to end of list, added TODO

Fixed Full Order

Fixed UI Visibility
2021-07-07 09:37:36 -04:00
Mark W. Kidd
b17dd28ff2 consolidate and comment input_remapping.h 2021-07-06 16:13:43 -04:00
jdgleaver
d1f7d8af0d (Qt) Fix default core detection when playlist file name does not match 'db_name' 2021-06-29 16:51:20 +01:00
toshixm
4fab84ca9e improve message wrapping with CJK languages 2021-06-03 21:09:35 +09:00
jdgleaver
8e54b4cec9 (Show Inputs on Overlay) DISABLE_MENU=1 buildfix + Qt settings update 2021-05-26 18:15:23 +01:00
twinaphex
7a2115670a Fix relative path includes 2021-05-19 15:41:40 +02:00
twinaphex
35543ecd91 Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
jdgleaver
f4511f6fa4 (core_info) Performance optimisations + code clean-ups/refactors 2021-04-26 14:30:31 +01:00
twinaphex
ab877c429f (Qt) Use string append() where possible 2021-04-10 23:57:31 +02:00
twinaphex
ea9f3f13ca (Apple OSX) Swallow 'escape' key being pressed - would previously make the game
go from fullscreen to windowed
2021-04-07 00:48:21 +02:00
twinaphex
ed0c9ef1dc Buildfix 2021-03-24 02:39:57 +01:00
twinaphex
71b4a4558c (DISABLE_MENU) Add another conditional 2021-03-24 02:10:35 +01:00
twinaphex
118ff58e6b Add more conditionals for --disable-menu 2021-03-24 01:44:30 +01:00
twinaphex
95f5df358a Fix --disable-menu 2021-03-24 01:24:49 +01:00
twinaphex
48f9a5fbc0 (Qt) Silence sign comparison warnings 2021-03-22 20:20:33 +01:00
twinaphex
d8d034bacb (menu_displaylist_build_list) Pass settings pointer around 2021-03-21 16:16:41 +01:00
twinaphex
d940c10afe (Qt) Combine qt/options/generic.cpp and qt/options/nongeneric.cpp 2021-03-10 09:41:49 +01:00
twinaphex
a60e7ad42a (Qt) Merge ui_qt_themes.h into ui_qt.cpp 2021-03-08 18:15:50 +01:00
twinaphex
6802e41db5 (Qt) Merge ui_qt_load_core_window.cpp into ui_qt.cpp - further
binary size reduction
2021-03-08 18:02:49 +01:00
twinaphex
25a0c903bc (Qt) Cleanup 2021-03-08 17:58:51 +01:00
twinaphex
fd5d1804c5 Header cleanups 2021-03-08 17:54:52 +01:00
twinaphex
f9eb53cff1 (Qt) Combine non-generic options into qt/options/nongeneric.cpp -
all these Qt files being combined now led to a nearly 1MB size reduction
in retroarch's binary
2021-03-08 17:47:36 +01:00
twinaphex
8fe8782497 (Qt) Combine qt download files into one - further binary size
reduction
2021-03-08 17:38:03 +01:00
twinaphex
af1d9f7041 (Qt) Combine filedropwidgets.cpp and settingswidgets.cpp into
qt_widgets.cpp - further binary size reduction
2021-03-08 17:32:56 +01:00
twinaphex
7fb09d1602 (Qt) Combine shaderparamsdialog.cpp and qt_dialogs.cpp - further binary
size reduction
2021-03-08 17:24:47 +01:00
twinaphex
469e2b7778 (Qt) Combine dialog files into one - makes binary smaller too 2021-03-08 17:13:54 +01:00
twinaphex
69eff40e0d Cleanup 2021-03-08 16:35:55 +01:00
twinaphex
0b06eea846 (ui_cocoa.m) Cleanups - add fall-throughs 2021-03-08 15:19:26 +01:00
twinaphex
e140c9f8ee Cleanups 2021-03-08 15:11:28 +01:00
twinaphex
b0b81406ad Cut down on HAVE_COCOA_METAL/HAVE_COCOA ifdef 2021-03-08 04:09:43 +01:00
twinaphex
ee77cd7288 Move cocoa_defines.h to defines/ 2021-03-08 03:58:41 +01:00
twinaphex
b83596fcd4 (Qt) Combine all Qt files into one (ui_qt.cpp) 2021-03-08 00:56:55 +01:00
twinaphex
ea3e9ee1c6 Buildfix 2021-03-08 00:33:31 +01:00
twinaphex
01c163a2fa (Cocoa) Combine Cocoa files into one 2021-03-08 00:28:21 +01:00
twinaphex
2675afe45d Combine ui/drivers/win32 files into one (ui/drivers/ui_win32.c) 2021-03-08 00:20:29 +01:00
jdgleaver
110e318b71 Add support for saving per-directory core options and deleting core option overrides 2021-02-25 10:54:22 +00:00
Tatsuya79
b1f6fa4a2a remove updateretroarch.cpp 2021-02-11 17:49:21 +01:00
jdgleaver
d81bdcddd0 When remembering last selected shader preset/shader pass directories, also remember selected files 2021-02-09 13:14:00 +00:00
Tatsuya79
502d3b3514
qt: fix mouse cursor limited by window range on F5 press 2021-02-04 17:54:05 +01:00