Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2023-08-26 10:24:09 +0300
committerJoshua Ashton <joshua@froggi.es>2023-08-26 10:24:09 +0300
commit856cee8298ebc20dcca8dc22d5d93ab66a09c1b5 (patch)
tree2ed4b541c28a9621593df04c2ee3e9368b6304a7
parent02db89ac30291629f30ca59999cee7748f764b90 (diff)
[dxgi] Set BitsPerColor to 10bpc-10
For two reasons: 1) Some apps will only enable or attempt to enable HDR if BitsPerColor is >= 10. 2) Encouraging apps to create 10-bit swapchains for use in hardware dithering on Gamescope/Steam Deck and to have more precision thru scanout color transforms
-rw-r--r--src/dxgi/dxgi_output.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp
index 0be8ee3f..56cc5ff1 100644
--- a/src/dxgi/dxgi_output.cpp
+++ b/src/dxgi/dxgi_output.cpp
@@ -221,7 +221,7 @@ namespace dxvk {
pDesc->AttachedToDesktop = 1;
pDesc->Rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
pDesc->Monitor = m_monitor;
- pDesc->BitsPerColor = 8;
+ pDesc->BitsPerColor = 10;
// This should only return DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
// (HDR) if the user has the HDR setting enabled in Windows.
// Games can still punt into HDR mode by using CheckColorSpaceSupport