summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/display
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2023-10-13 16:14:02 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2023-11-23 16:11:47 +0300
commitdeac453244d309ad7a94d0501eb5e0f9d8d1f1df (patch)
tree58814c152945dfdffa00860c671c85171c56af7c /drivers/gpu/drm/display
parent5d76c8163f09cfee7dbc1870a1154c2ca443528b (diff)
downloadlinux-deac453244d309ad7a94d0501eb5e0f9d8d1f1df.tar.xz
drm/i915: Fix glk+ degamma LUT conversions
The current implementation of change_lut_val_precision() is just a convoluted way of shifting by 8. Implement the proper rounding by just using drm_color_lut_extract() and intel_color_lut_pack() like everyone else does. And as the uapi can't handle >=1.0 values but the hardware can we need to clamp the results appropriately in the readout path. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231013131402.24072-5-ville.syrjala@linux.intel.com Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/display')
0 files changed, 0 insertions, 0 deletions