Re: [PATCH 02/14] drm: add helper iterator functions for plane fb_damage_clips blob

2018-09-07 Thread Daniel Vetter
On Thu, Sep 06, 2018 at 09:44:25PM +, Deepak Singh Rawat wrote: > > > > #include > > > > > > /** > > > @@ -75,6 +76,11 @@ > > > * While kernel does not error for overlapped damage clips, it is > > discouraged. > > > */ > > > > > > +static int convert_fixed_to_32(int fixed) > > > +{ > >

RE: [PATCH 02/14] drm: add helper iterator functions for plane fb_damage_clips blob

2018-09-06 Thread Deepak Singh Rawat
> > #include > > > > /** > > @@ -75,6 +76,11 @@ > > * While kernel does not error for overlapped damage clips, it is > discouraged. > > */ > > > > +static int convert_fixed_to_32(int fixed) > > +{ > > + return ((fixed >> 15) & 1) + (fixed >> 16); > > +} > > + > > /** > > * drm_plane_en

Re: [PATCH 02/14] drm: add helper iterator functions for plane fb_damage_clips blob

2018-09-06 Thread Daniel Vetter
On Wed, Sep 05, 2018 at 04:38:49PM -0700, Deepak Rawat wrote: > With fb_damage_clips blob property in drm_plane_state, this patch adds > helper iterator to traverse the damage clips that lie inside plane src. > Iterator will return full plane src as damage in case need full plane > update or damage

[PATCH 02/14] drm: add helper iterator functions for plane fb_damage_clips blob

2018-09-05 Thread Deepak Rawat
With fb_damage_clips blob property in drm_plane_state, this patch adds helper iterator to traverse the damage clips that lie inside plane src. Iterator will return full plane src as damage in case need full plane update or damage is not specified. Signed-off-by: Deepak Rawat --- drivers/gpu/drm/