Re: [RFC PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-04-04 Thread Emil Velikov
On Tue, 2 Apr 2019 at 15:51, Maxime Ripard wrote: > > Hi Emil, > > On Tue, Apr 02, 2019 at 10:43:31AM +0100, Emil Velikov wrote: > > On Tue, 19 Mar 2019 at 21:57, Maxime Ripard > > wrote: > > > drm_format_num_planes() is basically a lookup in the drm_format_info table > > > plus an access to the

Re: [RFC PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-04-02 Thread Maxime Ripard
Hi Emil, On Tue, Apr 02, 2019 at 10:43:31AM +0100, Emil Velikov wrote: > On Tue, 19 Mar 2019 at 21:57, Maxime Ripard wrote: > > drm_format_num_planes() is basically a lookup in the drm_format_info table > > plus an access to the num_planes field of the appropriate entry. > > > > Most drivers are

Re: [RFC PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-04-02 Thread Emil Velikov
Hi Maxime, On Tue, 19 Mar 2019 at 21:57, Maxime Ripard wrote: > > drm_format_num_planes() is basically a lookup in the drm_format_info table > plus an access to the num_planes field of the appropriate entry. > > Most drivers are using this function while having access to the entry > already, whic

Re: [RFC PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-03-20 Thread Paul Kocialkowski
Hi, On Tue, 2019-03-19 at 22:57 +0100, Maxime Ripard wrote: > drm_format_num_planes() is basically a lookup in the drm_format_info table > plus an access to the num_planes field of the appropriate entry. > > Most drivers are using this function while having access to the entry > already, which me

[RFC PATCH 01/20] drm: Remove users of drm_format_num_planes

2019-03-19 Thread Maxime Ripard
drm_format_num_planes() is basically a lookup in the drm_format_info table plus an access to the num_planes field of the appropriate entry. Most drivers are using this function while having access to the entry already, which means that we will perform an unnecessary lookup. Removing the call to dr