Skip to content

Commit 2e04d9e

Browse files
Lawstorant1Naim
authored andcommitted
drm/amd/display: Trigger ALLM if it's available
[Why] ALLM automatically puts TVs into low latency modes (gaming modes) which we basically always want for PC use, be it gaming, or using precise inputs like mice and keyboards. [How] Read the ALLM info from HDMI caps and use it to determine if ALLM should be indicated in HDMI Forum vsif. Additionally, make sure VIC modes are translated in case of ALLM active as VIC cannot be used in conjunction with hf-vsif. I learned this the hard way... Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com>
1 parent 5b28c08 commit 2e04d9e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,10 @@ void mod_build_hf_vsif_infopacket(const struct dc_stream_state *stream,
541541

542542
info_packet->valid = false;
543543

544-
format = stream->timing.timing_3d_format;
545-
if (stream->view_format == VIEW_3D_FORMAT_NONE)
546-
format = TIMING_3D_FORMAT_NONE;
544+
allm = stream->link->local_sink->edid_caps.allm;
545+
format = stream->view_format == VIEW_3D_FORMAT_NONE ?
546+
TIMING_3D_FORMAT_NONE :
547+
stream->timing.timing_3d_format;
547548
stereo = format != TIMING_3D_FORMAT_NONE;
548549
hdmi_vic_mode = is_hdmi_vic_mode(stream);
549550

0 commit comments

Comments
 (0)