mirror of https://github.com/doitsujin/dxvk
Joshua Ashton
5206d97710
Unreal Engine 4 titles use AGS/NVAPI to try and enable HDR globally. They can key this off IDXGIOutput::GetDesc1's ColorSpace being HDR10. Many of these UE4 games statically link against AGS. This is a problem as when UE4 tries to enable HDR via AGS, it does not check if AGSContext, and the display info etc are nullptr unlike the rest of the code using AGS. So we need to special-case UE4 titles to disable reporting a HDR when they are in DX11 mode. The simplest way to do this is to key off the fact that all UE4 titles have an executable ending with "-Win64-Shipping". We check if d3d12.dll is present, to determine what path in UE4 we are on, as there are some games that ship both and support HDR. (eg. The Dark Pictures: House of Ashes, 1281590) Luckily for us, they only load d3d12.dll on the D3D12 render path so we can key off that to force disable HDR only in D3D11. |
||
---|---|---|
.. | ||
dxgi.def | ||
dxgi.sym | ||
dxgi_adapter.cpp | ||
dxgi_adapter.h | ||
dxgi_enums.cpp | ||
dxgi_enums.h | ||
dxgi_factory.cpp | ||
dxgi_factory.h | ||
dxgi_format.cpp | ||
dxgi_format.h | ||
dxgi_include.h | ||
dxgi_interfaces.h | ||
dxgi_main.cpp | ||
dxgi_monitor.cpp | ||
dxgi_monitor.h | ||
dxgi_object.h | ||
dxgi_options.cpp | ||
dxgi_options.h | ||
dxgi_output.cpp | ||
dxgi_output.h | ||
dxgi_surface.cpp | ||
dxgi_surface.h | ||
dxgi_swapchain.cpp | ||
dxgi_swapchain.h | ||
dxgi_swapchain_dispatcher.h | ||
meson.build | ||
version.rc |