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-09-01 00:54:02 +0300
committerJoshua Ashton <joshua@froggi.es>2023-09-01 00:54:02 +0300
commitff5507769adb6546a96da99c83e8f455c81afdda (patch)
treeab8ffca964333e635f7bbc513f1e5b6f16ce0653
parent5c56fa0df43cff84b7af3e9c1b3718ed924a8b0f (diff)
[wsi] Add proper values for SDR metadata fallbacks
-rw-r--r--src/wsi/wsi_edid.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wsi/wsi_edid.h b/src/wsi/wsi_edid.h
index 64e17de9..d1af3317 100644
--- a/src/wsi/wsi_edid.h
+++ b/src/wsi/wsi_edid.h
@@ -47,13 +47,13 @@ namespace dxvk::wsi {
// (Spec has 0 as 'undefined', which isn't really useful for an app
// to tonemap against.)
if (metadata.minLuminance == 0.0f)
- metadata.minLuminance = 0.01f;
+ metadata.minLuminance = isHDR ? 0.01f : 0.5f;
if (metadata.maxLuminance == 0.0f)
- metadata.maxLuminance = 1499.0f;
+ metadata.maxLuminance = isHDR ? 1499.0f : 270.0f;
if (metadata.maxFullFrameLuminance == 0.0f)
- metadata.maxFullFrameLuminance = 799.0f;
+ metadata.maxFullFrameLuminance = isHDR ? 799.0f : 270.0f;
// If we have no RedPrimary/GreenPrimary/BluePrimary/WhitePoint due to
// the lack of a monitor exposing the chroma block or the lack of an EDID,