From 04eb72b5f519c2ed1b13edf843754583b92bf8d6 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 25 Oct 2023 23:40:43 +0100 Subject: [PATCH] drm: [DEBUG] Set patched debug max frame avg luminance != max luminance for debugging --- src/drm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drm.cpp b/src/drm.cpp index c67418ca4f..8d086c0c79 100644 --- a/src/drm.cpp +++ b/src/drm.cpp @@ -670,7 +670,7 @@ static void create_patched_edid( const uint8_t *orig_data, size_t orig_size, drm (1 << HDMI_EOTF_SDR) | (1 << HDMI_EOTF_TRADITIONAL_HDR) | (1 << HDMI_EOTF_ST2084), /* supported eotfs */ 1, /* type 1 */ encode_max_luminance(flMaxPeakLuminance), /* desired content max peak luminance */ - encode_max_luminance(flMaxPeakLuminance), /* desired content max frame avg luminance */ + encode_max_luminance(flMaxPeakLuminance * 0.8f), /* desired content max frame avg luminance */ 0, /* desired content min luminance -- 0 is technically "undefined" */ };