Skip to content

Commit f8bc116

Browse files
Lawstorant1Naim
authored andcommitted
drm/amd/display: Save HDMI gaming info to edid caps
[Why] We need info about these features in parts of the driver where fishing for drm_connector struct is infeasible. [How] Add three new fields to dc_edid_caps and fill them if connected device is HDMI based on it's EDID Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com>
1 parent c0a2b91 commit f8bc116

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ enum dc_edid_status dm_helpers_parse_edid_caps(
137137
edid_caps->display_name,
138138
AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS);
139139

140-
edid_caps->edid_hdmi = connector->display_info.is_hdmi;
140+
if (connector->display_info.is_hdmi) {
141+
edid_caps->edid_hdmi = true;
142+
edid_caps->allm = connector->display_info.hdmi.allm;
143+
edid_caps->fva = connector->display_info.hdmi.vrr_cap.fva;
144+
edid_caps->hdmi_vrr = connector->display_info.hdmi.vrr_cap.supported;
145+
}
141146

142147
if (edid_caps->edid_hdmi)
143148
populate_hdmi_info_from_connector(&connector->display_info.hdmi, edid_caps);

drivers/gpu/drm/amd/display/dc/dc_types.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,14 @@ struct dc_edid_caps {
210210

211211
uint32_t max_tmds_clk_mhz;
212212

213-
/*HDMI 2.0 caps*/
213+
/* HDMI 2.0 caps */
214214
bool lte_340mcsc_scramble;
215215

216+
/* HDMI 2.1 caps */
217+
bool allm;
218+
bool fva;
219+
bool hdmi_vrr;
220+
216221
bool edid_hdmi;
217222
bool hdr_supported;
218223
bool rr_capable;

0 commit comments

Comments
 (0)