commit | 62153bdd66f281fcd2318401684a7267d8ecddd9 | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Tue Mar 03 19:33:12 2020 +0200 |
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | Mon Mar 09 22:11:36 2020 +0200 |
tree | 8f510e2d989ad7e49951671f482643062ffd0fb1 | |
parent | 0ff3b23f0c9b85df195a97277963b9a834389b50 [diff] |
drm/i915: Fix readout of PIPEGCMAX PIPEGCMAX is a 11.6 (or 1.16 if you will) value. Ie. it can represent a value of 1.0 when the maximum we can store in the software LUT is 0.ffff. Clamp the value so that it gets saturated to the max the uapi supports. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200303173313.28117-9-ville.syrjala@linux.intel.com Reviewed-by: Swati Sharma <swati2.sharma@intel.com>