Re: [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-30 Thread Daniel Vetter
On Tue, Oct 30, 2018 at 04:18:28PM +0200, Ville Syrjälä wrote: > On Tue, Oct 30, 2018 at 10:35:07AM +0100, Daniel Vetter wrote: > > On Mon, Oct 29, 2018 at 04:00:04PM -0700, Eric Anholt wrote: > > > Ville Syrjala writes: > > > > > > > From: Ville Syrjälä > > > > > > > > Add a function to check w

Re: [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-30 Thread Ville Syrjälä
On Tue, Oct 30, 2018 at 10:35:07AM +0100, Daniel Vetter wrote: > On Mon, Oct 29, 2018 at 04:00:04PM -0700, Eric Anholt wrote: > > Ville Syrjala writes: > > > > > From: Ville Syrjälä > > > > > > Add a function to check whether there is at least one plane that > > > supports a specific format and

Re: [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-30 Thread Daniel Vetter
On Mon, Oct 29, 2018 at 04:00:04PM -0700, Eric Anholt wrote: > Ville Syrjala writes: > > > From: Ville Syrjälä > > > > Add a function to check whether there is at least one plane that > > supports a specific format and modifier combination. Drivers can > > use this to reject unsupported formats/

Re: [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-29 Thread Eric Anholt
Ville Syrjala writes: > From: Ville Syrjälä > > Add a function to check whether there is at least one plane that > supports a specific format and modifier combination. Drivers can > use this to reject unsupported formats/modifiers in .fb_create(). > > v2: Accept anyformat if the driver doesn't d

[PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-29 Thread Ville Syrjala
From: Ville Syrjälä Add a function to check whether there is at least one plane that supports a specific format and modifier combination. Drivers can use this to reject unsupported formats/modifiers in .fb_create(). v2: Accept anyformat if the driver doesn't do planes (Eric) s/planes_have_fo