[PATCH RESEND v6 04/11] drm/mediatek: gamma: Improve and simplify HW LUT calculation

Alexandre Mergnat amergnat at baylibre.com
Fri Jul 28 06:00:42 PDT 2023


Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

On 27/07/2023 11:46, AngeloGioacchino Del Regno wrote:
> 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.

-- 
Regards,
Alexandre



More information about the linux-arm-kernel mailing list