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

2023-05-06 Thread kernel test robot
esktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20230506123549.101727-5-angelogioacchino.delregno%40collabora.com patch subject: [PATCH v3 04/11] drm/mediatek: gamma: Improve and simplify HW LUT calculation config: arm-allmodconfig (https://download.01.org/0day-

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

2023-05-06 Thread AngeloGioacchino Del Regno
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