]> git.baikalelectronics.ru Git - kernel.git/commit
drm: New function to get luminance range based on static hdr metadata
authorJouni Högander <jouni.hogander@intel.com>
Tue, 19 Jul 2022 09:56:58 +0000 (12:56 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 11 Aug 2022 19:10:04 +0000 (22:10 +0300)
commitc6f8712ef20d035a41a2426df437824cb89ecd78
tree8e2e0fc06901b563b42498bfa0b3b62b4e1d2efd
parenta3a843743434876e0d1fc674af8ba29fd6b037be
drm: New function to get luminance range based on static hdr metadata

Split luminance min/max calculation using static hdr metadata from
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:update_connector_ext_caps
into drm/drm_edid.c and use it during edid parsing. Calculated range is
stored into connector->display_info->luminance_range.

Add new data structure (drm_luminance_range_inf) to store luminance range
calculated using data from EDID's static hdr metadata block. Add this new
struct as a part of drm_display_info struct.

v3: Squashed adding drm_luminance_range_info patch here
v2: Calculate range during edid parsing

Cc: Roman Li <roman.li@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220719095700.14923-2-jouni.hogander@intel.com
drivers/gpu/drm/drm_edid.c
include/drm/drm_connector.h