On 2025-02-25 06:18, Louis Chauvet wrote: > Le 20/12/2024 à 05:33, Alex Hung a écrit : >> From: Harry Wentland <harry.wentl...@amd.com> >> (snip) >> + { 0xfbfb, 0xfbfb, 0xfbfb, 0 }, >> + { 0xfcfc, 0xfcfc, 0xfcfc, 0 }, >> + { 0xfdfd, 0xfdfd, 0xfdfd, 0 }, >> + { 0xfefe, 0xfefe, 0xfefe, 0 }, >> + { 0xffff, 0xffff, 0xffff, 0 }, >> +}; >> + >> +const struct vkms_color_lut linear_eotf = { >> + .base = linear_array, >> + .lut_length = LUT_SIZE, >> + .channel_value2index_ratio = 0xff00ffll >> +}; >> + > > Can you add a comment to describe the values here? > Something that could help if we suspect an error in the values of the table, > for example: > > This LUT table contains values from <spec/iso/whatever>, mapped linearly from > 0.0..1.0 to 0x0..0xFFFF. > The tables were generated with a simple LUT generator that's based on skia's TF code. You can find it here: https://gitlab.freedesktop.org/hwentland/lutgen I'll add a comment at the top of vkms_luts.c to that regard. Harry
- [V7 11/45] drm/colorop: Add atomic state print for drm_colo... Alex Hung
- [V7 12/45] drm/plane: Add COLOR PIPELINE property Alex Hung
- [V7 13/45] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLO... Alex Hung
- [V7 14/45] drm/vkms: Add enumerated 1D curve colorop Alex Hung
- Re: [V7 14/45] drm/vkms: Add enumerated 1D curve color... Louis Chauvet
- Re: [V7 14/45] drm/vkms: Add enumerated 1D curve c... Harry Wentland
- [V7 15/45] drm/vkms: Add kunit tests for linear and sRGB LU... Alex Hung
- Re: [V7 15/45] drm/vkms: Add kunit tests for linear an... Louis Chauvet
- Re: [V7 15/45] drm/vkms: Add kunit tests for linea... Harry Wentland
- [V7 16/45] drm/colorop: Add 3x4 CTM type Alex Hung
- Re: [V7 16/45] drm/colorop: Add 3x4 CTM type Simon Ser
- Re: [V7 16/45] drm/colorop: Add 3x4 CTM type Louis Chauvet
- [V7 17/45] drm/vkms: Use s32 for internal color pipeline pr... Alex Hung
- [V7 18/45] drm/vkms: add 3x4 matrix in color pipeline Alex Hung
- [V7 19/45] drm/tests: Add a few tests around drm_fixed.h Alex Hung