aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2023-10-13 16:14:02 +0300
committerVille Syrjälä <[email protected]>2023-11-23 15:11:47 +0200
commitdeac453244d309ad7a94d0501eb5e0f9d8d1f1df (patch)
tree58814c152945dfdffa00860c671c85171c56af7c /tools/perf/scripts/python
parent5d76c8163f09cfee7dbc1870a1154c2ca443528b (diff)
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ä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Chaitanya Kumar Borah <[email protected]> Reviewed-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions