]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/connector: hdmi: Compute bpc and format automatically
authorMaxime Ripard <mripard@kernel.org>
Mon, 27 May 2024 13:58:04 +0000 (15:58 +0200)
committerMaxime Ripard <mripard@kernel.org>
Tue, 28 May 2024 08:24:36 +0000 (10:24 +0200)
commit26ff1c38fc29ec5eb51c84cfeda1bc3e27de3c13
treea8aa7ad3553e0ac14d70ee724b78bf93a06a4cbf
parenta6cb58a2c13b931743d83404b6ad798c32280586
drm/connector: hdmi: Compute bpc and format automatically

Now that we have all the infrastructure needed, we can add some code
that will, for a given connector state and mode, compute the best output
format and bpc.

The algorithm is equivalent to the one already found in i915 and vc4.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240527-kms-hdmi-connector-state-v15-15-c5af16c3aae2@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/display/drm_hdmi_state_helper.c
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c