Ville Syrjälä e7a278a329 drm/i915: Account for scale factor when calculating initial phase
To get the initial phase correct we need to account for the scale
factor as well. I forgot this initially and was mostly looking at
heavily upscaled content where the minor difference between -0.5
and the proper initial phase was not readily apparent.

And let's toss in a comment that tries to explain the formula
a little bit.

v2: The initial phase upper limit is 1.5, not 24.0!

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 0a59952b24e2 ("drm/i915: Configure SKL+ scaler initial phase correctly")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029181820.21956-1-ville.syrjala@linux.intel.com
Tested-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Tested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
2018-11-13 17:00:35 +02:00
..
2018-09-09 14:19:18 +02:00
2018-10-04 11:03:34 +10:00
2018-08-17 10:40:09 -07:00
2018-10-02 09:36:56 +03:00
2018-06-22 12:58:08 +10:00
2018-09-28 09:47:31 +10:00
2018-09-27 02:54:54 -04:00
2018-09-27 02:54:54 -04:00
2018-06-28 13:29:07 +10:00
2018-07-13 18:40:28 +02:00
2018-10-04 11:03:34 +10:00
2018-10-04 11:03:34 +10:00
2018-09-09 14:19:18 +02:00