Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-14 Thread Dmitry Baryshkov
On Fri, Mar 14, 2025 at 02:47:53PM +0100, Maxime Ripard wrote: > On Tue, Mar 11, 2025 at 09:46:39PM +0200, Dmitry Baryshkov wrote: > > On Tue, Mar 11, 2025 at 04:55:17PM +0100, Maxime Ripard wrote: > > > Hi, > > > > > > I think the first thing we need to address is that we will need to > > > diffe

Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-14 Thread Maxime Ripard
On Tue, Mar 11, 2025 at 08:59:00PM +0200, Cristian Ciocaltea wrote: > >> +static int > >> +hdmi_compute_config(const struct drm_connector *connector, > >> + struct drm_connector_state *conn_state, > >> + const struct drm_display_mode *mode) > >> +{ > >> + unsigned int max

Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-14 Thread Maxime Ripard
On Tue, Mar 11, 2025 at 09:46:39PM +0200, Dmitry Baryshkov wrote: > On Tue, Mar 11, 2025 at 04:55:17PM +0100, Maxime Ripard wrote: > > Hi, > > > > I think the first thing we need to address is that we will need to > > differentiate between HDMI 1.4 devices and HDMI 2.0. > > > > It applies to YUV4

Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-11 Thread Dmitry Baryshkov
On Tue, Mar 11, 2025 at 04:55:17PM +0100, Maxime Ripard wrote: > Hi, > > I think the first thing we need to address is that we will need to > differentiate between HDMI 1.4 devices and HDMI 2.0. > > It applies to YUV420, which is HDMI 2.0-only, and I guess your patches > are good enough if you co

Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-11 Thread Cristian Ciocaltea
Hi Maxime, On 3/11/25 5:55 PM, Maxime Ripard wrote: > Hi, > > I think the first thing we need to address is that we will need to > differentiate between HDMI 1.4 devices and HDMI 2.0. > > It applies to YUV420, which is HDMI 2.0-only, and I guess your patches > are good enough if you consider YUV

Re: [PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-11 Thread Maxime Ripard
Hi, I think the first thing we need to address is that we will need to differentiate between HDMI 1.4 devices and HDMI 2.0. It applies to YUV420, which is HDMI 2.0-only, and I guess your patches are good enough if you consider YUV420 support only, but scrambler setup for example is a thing we wan

[PATCH v2 4/7] drm/connector: hdmi: Use YUV420 output format as an RGB fallback

2025-03-11 Thread Cristian Ciocaltea
Try to make use of YUV420 when computing the best output format and RGB cannot be supported for any of the available color depths. Signed-off-by: Cristian Ciocaltea --- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 69 + 1 file changed, 35 insertions(+), 34 deletions(