commit | d1a93aa7e1507de76c6c71be15931cc4b90111bb | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Wed Jun 06 20:36:44 2018 +0300 |
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | Thu Jun 07 15:05:26 2018 +0300 |
tree | 322efec007ba8d6732a3ee4859d846fd767a54b6 | |
parent | 170195b5e744629c334bc8da8d52ee25e4d4cbe4 [diff] |
lib/igt_fb: Round to nearest when clamping rgb I think round to nearest is maybe more correct here. Also do the clamp with integers as it actually makes the resulting code measurably faster. Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>