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 5/8] tests/kms_color: Add helper for plane color pipeline tests
Date: Mon, 22 Dec 2025 19:33:58 +0530 [thread overview]
Message-ID: <e7443c32-93f2-4e5b-a79c-bd28ace656cc@intel.com> (raw)
In-Reply-To: <20251219112606.1330425-6-swati2.sharma@intel.com>
On 12/19/2025 4:56 PM, Swati Sharma wrote:
> Add a helper to run plane color pipeline tests across
> all pipes and outputs on primary plane.
>
> TODO: Extend the test to multiple planes (HDR & SDR)
>
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> ---
> tests/kms_color.c | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> diff --git a/tests/kms_color.c b/tests/kms_color.c
> index c3c064d53..85c7d89d6 100644
> --- a/tests/kms_color.c
> +++ b/tests/kms_color.c
> @@ -816,6 +816,10 @@ static void test_setup(data_t *data, enum pipe p)
> data->primary->pipe->pipe,
> IGT_PIPE_CRC_SOURCE_AUTO);
>
> + igt_display_require_output_on_pipe(&data->display, p);
> + data->output = igt_get_single_output_for_pipe(&data->display, p);
> + igt_require(data->output);
> +
As I understand this was done to avoid going through all pipe and output
combinations for the plane subtests. It should then be within the helper
below (within for_each_pipe) instead of adding it to the test_setup
shared by all subtests.
With that,
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> igt_display_reset(&data->display);
> }
>
> @@ -909,6 +913,40 @@ run_ctm_tests_for_pipe(data_t *data, enum pipe p,
> test_cleanup(data);
> }
>
> +__maybe_unused
> +static void run_plane_color_tests(data_t *data,
> + const color_t *fb_colors,
> + const color_t *exp_colors,
> + kms_colorop_t *colorops[])
> +{
> + enum pipe pipe;
> +
> + data->color_depth = 8;
> + data->drm_format = DRM_FORMAT_XRGB8888;
> +
> + for_each_pipe(&data->display, pipe) {
> + test_setup(data, pipe);
> +
> + data->mode = igt_output_get_mode(data->output);
> +
> + if (!pipe_output_combo_valid(data, pipe)){
> + test_cleanup(data);
> + continue;
> + }
> +
> + /* TODO: extend the test to multiple planes (HDR & SDR) */
> + if (!igt_plane_has_prop(data->primary, IGT_PLANE_COLOR_PIPELINE))
> + continue;
> +
> + igt_dynamic_f("pipe-%s-%s",
> + kmstest_pipe_name(pipe),
> + igt_output_name(data->output))
> + igt_assert(test_plane_colorops(data, fb_colors, exp_colors, colorops));
> + }
> +
> + test_cleanup(data);
> +}
> +
> static void
> run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
> {
next prev parent reply other threads:[~2025-12-22 14:04 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 [this message]
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
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=e7443c32-93f2-4e5b-a79c-bd28ace656cc@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.