From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: Swati Sharma <swati2.sharma@intel.com>, <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t, v7 7/8] tests/kms_colorop_helper: Cast pixel values to double
Date: Mon, 22 Dec 2025 19:35:06 +0530 [thread overview]
Message-ID: <45f51b80-71cb-4856-b42b-69aa49e65e40@intel.com> (raw)
In-Reply-To: <20251219112606.1330425-8-swati2.sharma@intel.com>
On 12/19/2025 4:56 PM, Swati Sharma wrote:
> Explicitly cast transformed pixel channel values to double before
> scaling by UINT_MAX.
We should mention that we need this to avoid overflows for values
approaching 1.0
Also move this patch before the patches that deals with MAX LUT values.
Otherwise LGTM
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
>
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
> tests/kms_colorop_helper.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/kms_colorop_helper.c b/tests/kms_colorop_helper.c
> index da95ec72d..ffc81f01c 100644
> --- a/tests/kms_colorop_helper.c
> +++ b/tests/kms_colorop_helper.c
> @@ -300,9 +300,9 @@ static void fill_custom_1dlut(igt_display_t *display, kms_colorop_t *colorop)
>
> colorop->transform(&pixel);
>
> - colorop->lut1d->lut[i].red = pixel.r * UINT_MAX;
> - colorop->lut1d->lut[i].green = pixel.g * UINT_MAX;
> - colorop->lut1d->lut[i].blue = pixel.b * UINT_MAX;
> + colorop->lut1d->lut[i].red = (double)pixel.r * UINT_MAX;
> + colorop->lut1d->lut[i].green = (double)pixel.g * UINT_MAX;
> + colorop->lut1d->lut[i].blue = (double)pixel.b * UINT_MAX;
> }
> }
>
next prev parent reply other threads:[~2025-12-22 14:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 11:25 [PATCH i-g-t, v7 0/8] Add plane color pipeline tests for Intel hardware Swati Sharma
2025-12-19 11:26 ` [PATCH i-g-t, v7 2/8] tests/kms_colorop_helper: Add helpers to clear colorops data Swati Sharma
2025-12-22 14:03 ` [PATCH i-g-t,v7 " Borah, Chaitanya Kumar
2025-12-19 11:26 ` [PATCH i-g-t, v7 3/8] tests/kms_color: Add helper to check if pipeline contains CTM colorop Swati Sharma
2025-12-19 11:26 ` [PATCH i-g-t, v7 4/8] tests/kms_color: Add test_plane_colorops() helper to validate plane color operations Swati Sharma
2025-12-22 14:03 ` [PATCH i-g-t,v7 " Borah, Chaitanya Kumar
2025-12-19 11:26 ` [PATCH i-g-t, v7 5/8] tests/kms_color: Add helper for plane color pipeline tests Swati Sharma
2025-12-22 14:03 ` Borah, Chaitanya Kumar
2025-12-19 11:26 ` [PATCH i-g-t, v7 6/8] tests/kms_color: Add Intel plane pipeline tests with LUT1D and CTM Swati Sharma
2025-12-22 14:04 ` [PATCH i-g-t,v7 " Borah, Chaitanya Kumar
2025-12-19 11:26 ` [PATCH i-g-t, v7 7/8] tests/kms_colorop_helper: Cast pixel values to double Swati Sharma
2025-12-22 14:05 ` Borah, Chaitanya Kumar [this message]
2025-12-19 11:26 ` [PATCH i-g-t, v7 8/8] tests/kms_color: Add 3D LUT subtest for green-only output with RGB traversal Swati Sharma
2025-12-23 1:32 ` ✗ i915.CI.BAT: failure for Add plane color pipeline tests for Intel hardware (rev8) Patchwork
2025-12-23 1:34 ` ✓ Xe.CI.BAT: success " Patchwork
2025-12-23 10:32 ` ✗ Xe.CI.Full: failure " Patchwork
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=45f51b80-71cb-4856-b42b-69aa49e65e40@intel.com \
--to=chaitanya.kumar.borah@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=swati2.sharma@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.