From: Robert Mader <robert.mader@collabora.com>
To: Leandro Ribeiro <leandro.ribeiro@collabora.com>,
louis.chauvet@bootlin.com
Cc: airlied@gmail.com, alex.hung@amd.com, daniel@fooishbar.org,
hamohammed.sa@gmail.com, harry.wentland@amd.com,
maarten.lankhorst@linux.intel.com, melissa.srw@gmail.com,
mripard@kernel.org, pekka.paalanen@collabora.com,
simona@ffwll.ch, tzimmermann@suse.de,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 00/11] drm/vkms: improve color curve LUTs precision
Date: Wed, 4 Nov 2026 10:15:57 +0100 [thread overview]
Message-ID: <4082e72c-dba9-48cc-891e-1e6be5616fb4@collabora.com> (raw)
In-Reply-To: <20260804203351.148521-1-leandro.ribeiro@collabora.com>
Thanks a lot for the series!
I'm using it as part of a branch [1] to test my/our Weston post-blend
color-op pipeline implementation [2] - including additional commits
using the new script to add gamma 2.2 and 2.4 [3] curves. The Weston
tests compare the vkms output against the GL renderer for e.g. NV12
bt709-limited-range bt1886/gamma2.4 content - successfully (i.e. the
results match very closely).
I also went through the commits and didn't spot any more issues. Thus
with the 32bit issues raised by the bot addressed the whole series is:
Reviewed-by: Robert Mader <robert.mader@collabora.com>
Tested-by: Robert Mader <robert.mader@collabora.com>
Best regards,
Robert
---
1: https://gitlab.com/rmader/linux/-/commits/post-blend-2026-11-02
2: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2157
3: For SDR video, see
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/539
On 04.08.26 22:33, Leandro Ribeiro wrote:
> Currently VKMS only supports uniform LUTs. Besides the userspace
> provided LUTs, it also represents color curves with LUTs, as it can't
> simply implement the continuous curve formulas (floating-point would be
> required).
>
> This adds support to represent color curves with non-uniform LUTs,
> improving the precision significantly. It also provides a script
> that was used to create these LUTs.
>
> The optimized LUTs use more samples in regions where the interpolation
> and quantization errors are higher (usually in regions with a steeper
> slope). The LUT generator script compares different strategies and uses
> greedy subdivision, which outperformed the other methods, to generate
> the optimized LUTs for VKMS.
>
> Leandro Ribeiro (11):
> drm/vkms: rename VKMS_LUT_SIZE to VKMS_GAMMA_LUT_SIZE
> drm/vkms: allow color curve LUTs to have different sizes
> drm/vkms: remove TEST_LUT_SIZE
> drm/vkms: remove linear_eotf
> drm/vkms: improve the way in which we access LUT member
> drm/vkms: rename struct vkms_color_lut::base to y
> drm/vkms: rename get_lut_index() to get_uniform_lut_index()
> drm/vkms: add support to non-uniform LUT for internal color curves
> drm/vkms: test sRGB and inverse sRGB LUTs using more samples
> drm/vkms: add script to create optimized LUTs for color curves
> drm/vkms: replace uniform sRGB LUT and its inverse with optimal ones
>
> .../gpu/drm/vkms/scripts/color-curve-lut.py | 561 +++++++
> drivers/gpu/drm/vkms/tests/vkms_color_test.c | 46 +-
> drivers/gpu/drm/vkms/vkms_composer.c | 127 +-
> drivers/gpu/drm/vkms/vkms_composer.h | 2 +-
> drivers/gpu/drm/vkms/vkms_crtc.c | 4 +-
> drivers/gpu/drm/vkms/vkms_drv.c | 2 +-
> drivers/gpu/drm/vkms/vkms_drv.h | 13 +-
> drivers/gpu/drm/vkms/vkms_luts.c | 1469 ++++++++---------
> drivers/gpu/drm/vkms/vkms_luts.h | 3 -
> 9 files changed, 1383 insertions(+), 844 deletions(-)
> create mode 100644 drivers/gpu/drm/vkms/scripts/color-curve-lut.py
>
--
Robert Mader
Consultant Software Developer
Collabora Ltd.
Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK
Registered in England & Wales, no. 5513718
prev parent reply other threads:[~2026-11-04 9:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 20:33 Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 01/11] drm/vkms: rename VKMS_LUT_SIZE to VKMS_GAMMA_LUT_SIZE Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 02/11] drm/vkms: allow color curve LUTs to have different sizes Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 03/11] drm/vkms: remove TEST_LUT_SIZE Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 04/11] drm/vkms: remove linear_eotf Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 05/11] drm/vkms: improve the way in which we access LUT member Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 06/11] drm/vkms: rename struct vkms_color_lut::base to y Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 07/11] drm/vkms: rename get_lut_index() to get_uniform_lut_index() Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 08/11] drm/vkms: add support to non-uniform LUT for internal color curves Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 09/11] drm/vkms: test sRGB and inverse sRGB LUTs using more samples Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 10/11] drm/vkms: add script to create optimized LUTs for color curves Leandro Ribeiro
2026-08-04 20:33 ` [PATCH 11/11] drm/vkms: replace uniform sRGB LUT and its inverse with optimal ones Leandro Ribeiro
2026-11-04 9:15 ` Robert Mader [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4082e72c-dba9-48cc-891e-1e6be5616fb4@collabora.com \
--to=robert.mader@collabora.com \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=daniel@fooishbar.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hamohammed.sa@gmail.com \
--cc=harry.wentland@amd.com \
--cc=leandro.ribeiro@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=louis.chauvet@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=melissa.srw@gmail.com \
--cc=mripard@kernel.org \
--cc=pekka.paalanen@collabora.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®