]> git.dujemihanovic.xyz Git - linux.git/commit
drm/edid: Use the pre-parsed VICs
authorJani Nikula <jani.nikula@intel.com>
Wed, 4 Jan 2023 10:05:19 +0000 (12:05 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Jan 2023 08:53:28 +0000 (10:53 +0200)
commit6a40a75f71b997f2248664021f28af0dc7796d18
tree20cb8fc2f8bfe9ea28c730cfb9b5383e7c44227d
parentc3292ab5fbd7045f019418b2ce1977891419ad28
drm/edid: Use the pre-parsed VICs

Now that we have all the VICs in info->vics, use them to simplify access
based on VIC index, i.e. on the order of VICs in the EDID, and avoid
passing CTA VDB pointers around.

This also fixes the highly unlikely scenarios of a) multiple HDMI VSDBs,
and b) HDMI VSDB 3D modes using VIC indexes that span across multiple
CTA VDBs, and the combination of the two.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/30f1a97193171e70ec1c26c4b685d8930799b9a6.1672826282.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c