Re: [Intel-gfx] [PATCH 1/2] drm/rect: Add midpoint to scale calculation functions

2018-04-24 Thread Ville Syrjälä
On Tue, Apr 24, 2018 at 05:11:37PM +0200, Maarten Lankhorst wrote: > Op 24-04-18 om 17:21 schreef Ville Syrjälä: > > On Tue, Apr 24, 2018 at 01:36:32PM +0200, Maarten Lankhorst wrote: > >> When calculating limits we want to be as pessimistic as possible, > >> so we have to explicitly say whether we

Re: [Intel-gfx] [PATCH 1/2] drm/rect: Add midpoint to scale calculation functions

2018-04-24 Thread Maarten Lankhorst
Op 24-04-18 om 17:21 schreef Ville Syrjälä: > On Tue, Apr 24, 2018 at 01:36:32PM +0200, Maarten Lankhorst wrote: >> When calculating limits we want to be as pessimistic as possible, >> so we have to explicitly say whether we want to round up or down >> to accurately calculate whether we are below m

Re: [Intel-gfx] [PATCH 1/2] drm/rect: Add midpoint to scale calculation functions

2018-04-24 Thread Ville Syrjälä
On Tue, Apr 24, 2018 at 01:36:32PM +0200, Maarten Lankhorst wrote: > When calculating limits we want to be as pessimistic as possible, > so we have to explicitly say whether we want to round up or down > to accurately calculate whether we are below min_scale or above > max_scale. > > Signed-off-by

[Intel-gfx] [PATCH 1/2] drm/rect: Add midpoint to scale calculation functions

2018-04-24 Thread Maarten Lankhorst
When calculating limits we want to be as pessimistic as possible, so we have to explicitly say whether we want to round up or down to accurately calculate whether we are below min_scale or above max_scale. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_atomic_helper.c | 4 +-- drivers