diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2023-10-12 11:57:24 +0200 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2023-10-15 23:57:51 +0000 |
commit | c18119dee1919ce60565efd85f63707ceae38420 (patch) | |
tree | 5973c731f35682e90b052d1e812c1b8a92189edd /drivers/fpga/fpga-mgr.c | |
parent | d243907bb42f6652d88f9f3023d1028a34971465 (diff) |
drm/mediatek: gamma: Improve and simplify HW LUT calculation
Use drm_color_lut_extract() to avoid open-coding the bits reduction
calculations for each color channel and use a struct drm_color_lut
to temporarily store the information instead of an array of u32.
Also, slightly improve the precision of the HW LUT calculation in the
LUT DIFF case by performing the subtractions on the 16-bits values and
doing the 10 bits conversion later.
Reviewed-by: Jason-JH.Lin <[email protected]>
Reviewed-by: Alexandre Mergnat <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions