RetroArch/gfx
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
..
common Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
display_servers MSVC buildfix 2021-08-24 22:28:13 +03:00
drivers Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
drivers_context Merge pull request #12785 from sonninnos/win32-vulkan-cleanup 2021-08-12 19:23:29 +02:00
drivers_display (Wii U) Display scissor doesn't use inverted coordinates 2021-07-20 18:51:53 +10:00
drivers_font (Metal raster font) Fix severe font driver leaks 2021-08-08 00:42:56 +02:00
drivers_font_renderer (freetype/stb_unicode/bitmapfont) Prevent texture bleed when rendering text at non-integer scales 2021-04-15 17:24:32 +01:00
drivers_renderchain Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
drivers_shader Added a missing include. 2021-05-05 01:52:04 -07:00
include
video_filters Rename HAVE_ARM_NEON_OPTIMIZATIOn to HAVE_ARM_NEON_ASM_OPTIMIZATIONS, 2021-08-21 18:00:59 +02:00
video_layout Prefer using snprintf instead of insecure sprintf 2021-05-18 15:14:08 +02:00
widgets Get rid of gfx_display_draw_texture - use gfx_display_draw_quad instead 2021-08-22 17:57:21 +02:00
font_driver.c Add more PSL1GHT ifdefs 2020-12-27 18:56:00 +01:00
font_driver.h Reorder structs, alignment 2020-08-18 17:16:59 +02:00
gfx_animation.c improve message wrapping with CJK languages 2021-06-03 21:09:35 +09:00
gfx_animation.h Make update_time_callback a part of the animation struct 2020-10-15 08:35:37 +02:00
gfx_display.c Revert "(gfx_display) Make gfx_display_set_fb_size - get rid of the small" 2021-08-26 18:42:43 +02:00
gfx_display.h Revert "(gfx_display) Make gfx_display_set_fb_size - get rid of the small" 2021-08-26 18:42:43 +02:00
gfx_thumbnail.c Don't call anim_get_ptr inside gfx_thumbnail.c 2021-04-08 01:30:42 +02:00
gfx_thumbnail.h Don't call anim_get_ptr inside gfx_thumbnail.c 2021-04-08 01:30:42 +02:00
gfx_thumbnail_path.c Use path_basename_nocompression where we are sure we are not 2021-04-11 17:44:41 +02:00
gfx_thumbnail_path.h Turn function static 2020-10-05 21:54:07 +02:00
gfx_widgets.c Move lots of menu code over to menu/menu_driver.c - moved at least 2021-08-31 00:43:04 +02:00
gfx_widgets.h show challenge indicators 2021-06-03 19:53:17 -06:00
video_coord_array.c
video_coord_array.h reorder structs, alignment 2020-08-15 00:35:15 +02:00
video_crt_switch.c Fixed monitor index corruption on Windows and added correct fractal scalling. only used when required. 2021-07-07 18:06:47 +01:00
video_crt_switch.h Add support for switchres.ini core and directory overrides 2021-06-20 02:31:10 -03:00
video_defines.h Added Aspect Ratio Full 2021-07-07 09:37:36 -04:00
video_display_server.h Cleanups 2020-09-20 17:50:06 +02:00
video_filter.c Add 'Upscale_256x-320x240' video filter 2021-01-31 13:38:40 +00:00
video_filter.h
video_layout.c Revert "Move static functions to top of files" 2020-06-26 18:40:26 +02:00
video_layout.h Reorder structs/alignment 2020-08-25 20:39:06 +02:00
video_shader_parse.c Use path_basename_nocompression where we are sure we are not 2021-04-11 17:44:41 +02:00
video_shader_parse.h Max_Shader_Parameters_Increased_to_1024 2021-07-22 10:20:50 -04:00
video_thread_wrapper.c Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
video_thread_wrapper.h Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00